Browse code

*** empty log message ***

Jan Janak authored on 29/04/2002 14:54:16
Showing 1 changed files
... ...
@@ -34,6 +34,14 @@
34 34
 #define  translate_pointer( _new_buf , _org_buf , _p) \
35 35
 	( (_p)?(_new_buf + (_p-_org_buf)):(0) )
36 36
 
37
+#define via_len(_via) \
38
+	((_via)->bsize-((_via)->name.s-\
39
+		((_via)->hdr.s+(_via)->hdr.len)))
40
+
41
+#define via_s(_via,_p_msg) \
42
+	translate_pointer((_p_msg)->orig,(_p_msg)->buf,(_via)->name.s)
43
+
44
+
37 45
 
38 46
 
39 47
 /* converts a str to an u. short, returns the u. short and sets *err on