diff options
-rw-r--r-- | doc/asn1c-usage.html | 16 | ||||
-rw-r--r-- | doc/asn1c-usage.lyx | 18 | ||||
-rw-r--r-- | doc/asn1c-usage.pdf | bin | 132123 -> 132090 bytes |
3 files changed, 17 insertions, 17 deletions
diff --git a/doc/asn1c-usage.html b/doc/asn1c-usage.html index 03bfd4bf..106ebba0 100644 --- a/doc/asn1c-usage.html +++ b/doc/asn1c-usage.html @@ -488,7 +488,7 @@ structure: <BLOCKQUOTE><PRE> Rectangle_t *rect = ...; -asn_DEF_Rectangle->free_struct(&asn_DEF_Rectangle, +asn_DEF_Rectangle.free_struct(&asn_DEF_Rectangle, rect, 0); </PRE> </BLOCKQUOTE> @@ -603,7 +603,7 @@ simple_deserializer(const void *buffer, size_t buf_size)&nbs Rectangle_t *rect = 0; /* Note this 0! */ asn_dec_rval_t rval; - rval = <B>asn_DEF_Rectangle->ber_decoder</B>(0, + rval = <B>asn_DEF_Rectangle.ber_decoder</B>(0, &asn_DEF_Rectangle, (void **)&rect, buffer, buf_size, @@ -613,7 +613,7 @@ simple_deserializer(const void *buffer, size_t buf_size)&nbs return rect; /* Decoding succeeded */ } else { /* Free partially decoded rect */ - asn_DEF_Rectangle->free_struct( + asn_DEF_Rectangle.free_struct( &asn_DEF_Rectangle, rect, 0); return 0; } @@ -645,7 +645,7 @@ rval = ber_decode(0, &asn_DEF_Rectangle, (void **)& buffer, buf_size); </PRE> </BLOCKQUOTE> -Note that the initial (asn_DEF_Rectangle->ber_decoder) reference +Note that the initial (asn_DEF_Rectangle.ber_decoder) reference is gone, and also the last argument (0) is no longer necessary. <P> @@ -815,7 +815,7 @@ XML_to_Rectangle(const void *buffer, size_t buf_size) { return rect; /* Decoding succeeded */ } else { /* Free partially decoded rect */ - asn_DEF_Rectangle->free_struct( + asn_DEF_Rectangle.free_struct( &asn_DEF_Rectangle, rect, 0); return 0; } @@ -946,7 +946,7 @@ struct my_figure { * Freeing the Rectangle_t * without freeing the mf->rect area */ -asn_DEF_Rectangle->free_struct( +asn_DEF_Rectangle.free_struct( &asn_DEF_Rectangle, &mf->rect, <B>1</B> <B>/* !free */</B>); @@ -956,7 +956,7 @@ Rectangle_t *rect = <B>...</B>; * Freeing the Rectangle_t * and freeing the rect pointer */ -asn_DEF_Rectangle->free_struct( +asn_DEF_Rectangle.free_struct( &asn_DEF_Rectangle, rect, <B>0</B> <B>/* free the pointer too */</B>); </PRE> </BLOCKQUOTE> @@ -1295,7 +1295,7 @@ by placing the following snippet of code <I>before</I> encoding and/or <FONT SIZE="-1"> </FONT> <FONT SIZE="-1">/* ... here may go Rectangle decoding code ... */</FONT> -<FONT SIZE="-1">ret = asn_check_constraints(asn_DEF_Rectangle,</FONT> +<FONT SIZE="-1">ret = asn_check_constraints(&asn_DEF_Rectangle,</FONT> <FONT SIZE="-1"> rectangle, errbuf, &errlen);</FONT> <FONT SIZE="-1">/* assert(errlen < sizeof(errbuf)); // you may rely on that */</FONT> <FONT SIZE="-1">if(ret) {</FONT> diff --git a/doc/asn1c-usage.lyx b/doc/asn1c-usage.lyx index 4e9750ff..3c6ed97b 100644 --- a/doc/asn1c-usage.lyx +++ b/doc/asn1c-usage.lyx @@ -71,7 +71,7 @@ status Open \backslash lhead{This document describes \backslash -href{http://lionet.info/asn1c}{asn1c-0.9.17}} +href{http://lionet.info/asn1c}{asn1c-0.9.18}} \layout Standard \backslash @@ -1104,7 +1104,7 @@ Rectangle_t *rect = ...; \layout LyX-Code -asn_DEF_Rectangle->free_struct(&asn_DEF_Rectangle, +asn_DEF_Rectangle.free_struct(&asn_DEF_Rectangle, \layout LyX-Code rect, 0); @@ -1303,7 +1303,7 @@ simple_deserializer(const void *buffer, size_t buf_size) { rval = \series bold -asn_DEF_Rectangle->ber_decoder +asn_DEF_Rectangle.ber_decoder \series default (0, \layout LyX-Code @@ -1339,7 +1339,7 @@ asn_DEF_Rectangle->ber_decoder /* Free partially decoded rect */ \layout LyX-Code - asn_DEF_Rectangle->free_struct( + asn_DEF_Rectangle.free_struct( \layout LyX-Code &asn_DEF_Rectangle, rect, 0); @@ -1395,7 +1395,7 @@ rval = ber_decode(0, &asn_DEF_Rectangle, (void **)&rect, buffer, buf_size); \layout Standard -Note that the initial (asn_DEF_Rectangle->ber_decoder) reference is gone, +Note that the initial (asn_DEF_Rectangle.ber_decoder) reference is gone, and also the last argument (0) is no longer necessary. \layout Standard @@ -1737,7 +1737,7 @@ XML_to_Rectangle(const void *buffer, size_t buf_size) { /* Free partially decoded rect */ \layout LyX-Code - asn_DEF_Rectangle->free_struct( + asn_DEF_Rectangle.free_struct( \layout LyX-Code &asn_DEF_Rectangle, rect, 0); @@ -1920,7 +1920,7 @@ struct my_figure { */ \layout LyX-Code -asn_DEF_Rectangle->free_struct( +asn_DEF_Rectangle.free_struct( \layout LyX-Code &asn_DEF_Rectangle, &mf->rect, @@ -1965,7 +1965,7 @@ Rectangle_t *rect = */ \layout LyX-Code -asn_DEF_Rectangle->free_struct( +asn_DEF_Rectangle.free_struct( \layout LyX-Code &asn_DEF_Rectangle, rect, @@ -3109,7 +3109,7 @@ size_t errlen = sizeof(errbuf); /* Size of the buffer */ \size small -ret = asn_check_constraints(asn_DEF_Rectangle, +ret = asn_check_constraints(&asn_DEF_Rectangle, \layout LyX-Code diff --git a/doc/asn1c-usage.pdf b/doc/asn1c-usage.pdf Binary files differindex bd3f3f62..6efd7e2e 100644 --- a/doc/asn1c-usage.pdf +++ b/doc/asn1c-usage.pdf |