Commit 0f5c5cfc authored by Lev Walkin's avatar Lev Walkin

oops; not a pointer

parent 9f7adb6b
...@@ -488,7 +488,7 @@ structure: ...@@ -488,7 +488,7 @@ structure:
<BLOCKQUOTE><PRE> <BLOCKQUOTE><PRE>
Rectangle_t&nbsp;*rect&nbsp;=&nbsp;...; Rectangle_t&nbsp;*rect&nbsp;=&nbsp;...;
&nbsp; &nbsp;
asn_DEF_Rectangle-&gt;free_struct(&amp;asn_DEF_Rectangle, asn_DEF_Rectangle.free_struct(&amp;asn_DEF_Rectangle,
&nbsp;&nbsp;&nbsp;&nbsp;rect,&nbsp;0); &nbsp;&nbsp;&nbsp;&nbsp;rect,&nbsp;0);
</PRE> </PRE>
</BLOCKQUOTE> </BLOCKQUOTE>
...@@ -603,7 +603,7 @@ simple_deserializer(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbs ...@@ -603,7 +603,7 @@ simple_deserializer(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbs
&nbsp;&nbsp;&nbsp;&nbsp;Rectangle_t&nbsp;*rect&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Note&nbsp;this&nbsp;0!&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;Rectangle_t&nbsp;*rect&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Note&nbsp;this&nbsp;0!&nbsp;*/
&nbsp;&nbsp;&nbsp;&nbsp;asn_dec_rval_t&nbsp;rval; &nbsp;&nbsp;&nbsp;&nbsp;asn_dec_rval_t&nbsp;rval;
&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;rval&nbsp;=&nbsp;<B>asn_DEF_Rectangle-&gt;ber_decoder</B>(0, &nbsp;&nbsp;&nbsp;&nbsp;rval&nbsp;=&nbsp;<B>asn_DEF_Rectangle.ber_decoder</B>(0,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(void&nbsp;**)&amp;rect, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(void&nbsp;**)&amp;rect,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buffer,&nbsp;buf_size, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buffer,&nbsp;buf_size,
...@@ -613,7 +613,7 @@ simple_deserializer(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbs ...@@ -613,7 +613,7 @@ simple_deserializer(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbs
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;rect;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Decoding&nbsp;succeeded&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;rect;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Decoding&nbsp;succeeded&nbsp;*/
&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Free&nbsp;partially&nbsp;decoded&nbsp;rect&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Free&nbsp;partially&nbsp;decoded&nbsp;rect&nbsp;*/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;asn_DEF_Rectangle-&gt;free_struct( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;asn_DEF_Rectangle.free_struct(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;0); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;0);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;
&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;}
...@@ -645,7 +645,7 @@ rval&nbsp;=&nbsp;ber_decode(0,&nbsp;&amp;asn_DEF_Rectangle,&nbsp;(void&nbsp;**)& ...@@ -645,7 +645,7 @@ rval&nbsp;=&nbsp;ber_decode(0,&nbsp;&amp;asn_DEF_Rectangle,&nbsp;(void&nbsp;**)&
&nbsp;&nbsp;&nbsp;&nbsp;buffer,&nbsp;buf_size); &nbsp;&nbsp;&nbsp;&nbsp;buffer,&nbsp;buf_size);
</PRE> </PRE>
</BLOCKQUOTE> </BLOCKQUOTE>
Note that the initial (asn_DEF_Rectangle-&gt;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. is gone, and also the last argument (0) is no longer necessary.
<P> <P>
...@@ -815,7 +815,7 @@ XML_to_Rectangle(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbsp;{ ...@@ -815,7 +815,7 @@ XML_to_Rectangle(const&nbsp;void&nbsp;*buffer,&nbsp;size_t&nbsp;buf_size)&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;rect;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Decoding&nbsp;succeeded&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;rect;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Decoding&nbsp;succeeded&nbsp;*/
&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Free&nbsp;partially&nbsp;decoded&nbsp;rect&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Free&nbsp;partially&nbsp;decoded&nbsp;rect&nbsp;*/
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;asn_DEF_Rectangle-&gt;free_struct( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;asn_DEF_Rectangle.free_struct(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;0); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;0);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;
&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;}
...@@ -946,7 +946,7 @@ struct&nbsp;my_figure&nbsp;{ ...@@ -946,7 +946,7 @@ struct&nbsp;my_figure&nbsp;{
&nbsp;*&nbsp;Freeing&nbsp;the&nbsp;Rectangle_t &nbsp;*&nbsp;Freeing&nbsp;the&nbsp;Rectangle_t
&nbsp;*&nbsp;without&nbsp;freeing&nbsp;the&nbsp;mf-&gt;rect&nbsp;area &nbsp;*&nbsp;without&nbsp;freeing&nbsp;the&nbsp;mf-&gt;rect&nbsp;area
&nbsp;*/ &nbsp;*/
asn_DEF_Rectangle-&gt;free_struct( asn_DEF_Rectangle.free_struct(
&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;&amp;mf-&gt;rect,&nbsp;<B>1</B>&nbsp;<B>/*&nbsp;!free&nbsp;*/</B>); &nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;&amp;mf-&gt;rect,&nbsp;<B>1</B>&nbsp;<B>/*&nbsp;!free&nbsp;*/</B>);
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;
...@@ -956,7 +956,7 @@ Rectangle_t&nbsp;*rect&nbsp;=&nbsp;<B>...</B>; ...@@ -956,7 +956,7 @@ Rectangle_t&nbsp;*rect&nbsp;=&nbsp;<B>...</B>;
&nbsp;*&nbsp;Freeing&nbsp;the&nbsp;Rectangle_t &nbsp;*&nbsp;Freeing&nbsp;the&nbsp;Rectangle_t
&nbsp;*&nbsp;and&nbsp;freeing&nbsp;the&nbsp;rect&nbsp;pointer &nbsp;*&nbsp;and&nbsp;freeing&nbsp;the&nbsp;rect&nbsp;pointer
&nbsp;*/ &nbsp;*/
asn_DEF_Rectangle-&gt;free_struct( asn_DEF_Rectangle.free_struct(
&nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;<B>0</B>&nbsp;<B>/*&nbsp;free&nbsp;the&nbsp;pointer&nbsp;too&nbsp;*/</B>); &nbsp;&nbsp;&nbsp;&nbsp;&amp;asn_DEF_Rectangle,&nbsp;rect,&nbsp;<B>0</B>&nbsp;<B>/*&nbsp;free&nbsp;the&nbsp;pointer&nbsp;too&nbsp;*/</B>);
</PRE> </PRE>
</BLOCKQUOTE> </BLOCKQUOTE>
...@@ -1295,7 +1295,7 @@ by placing the following snippet of code <I>before</I> encoding and/or ...@@ -1295,7 +1295,7 @@ by placing the following snippet of code <I>before</I> encoding and/or
&nbsp;<FONT SIZE="-1">&nbsp;</FONT> &nbsp;<FONT SIZE="-1">&nbsp;</FONT>
<FONT SIZE="-1">/*&nbsp;...&nbsp;here&nbsp;may&nbsp;go&nbsp;Rectangle&nbsp;decoding&nbsp;code&nbsp;...&nbsp;*/</FONT> <FONT SIZE="-1">/*&nbsp;...&nbsp;here&nbsp;may&nbsp;go&nbsp;Rectangle&nbsp;decoding&nbsp;code&nbsp;...&nbsp;*/</FONT>
&nbsp; &nbsp;
<FONT SIZE="-1">ret&nbsp;=&nbsp;asn_check_constraints(asn_DEF_Rectangle,</FONT> <FONT SIZE="-1">ret&nbsp;=&nbsp;asn_check_constraints(&amp;asn_DEF_Rectangle,</FONT>
&nbsp;<FONT SIZE="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rectangle,&nbsp;errbuf,&nbsp;&amp;errlen);</FONT> &nbsp;<FONT SIZE="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rectangle,&nbsp;errbuf,&nbsp;&amp;errlen);</FONT>
<FONT SIZE="-1">/*&nbsp;assert(errlen&nbsp;&lt;&nbsp;sizeof(errbuf));&nbsp;//&nbsp;you&nbsp;may&nbsp;rely&nbsp;on&nbsp;that&nbsp;*/</FONT> <FONT SIZE="-1">/*&nbsp;assert(errlen&nbsp;&lt;&nbsp;sizeof(errbuf));&nbsp;//&nbsp;you&nbsp;may&nbsp;rely&nbsp;on&nbsp;that&nbsp;*/</FONT>
<FONT SIZE="-1">if(ret)&nbsp;{</FONT> <FONT SIZE="-1">if(ret)&nbsp;{</FONT>
......
...@@ -71,7 +71,7 @@ status Open ...@@ -71,7 +71,7 @@ status Open
\backslash \backslash
lhead{This document describes lhead{This document describes
\backslash \backslash
href{http://lionet.info/asn1c}{asn1c-0.9.17}} href{http://lionet.info/asn1c}{asn1c-0.9.18}}
\layout Standard \layout Standard
\backslash \backslash
...@@ -1104,7 +1104,7 @@ Rectangle_t *rect = ...; ...@@ -1104,7 +1104,7 @@ Rectangle_t *rect = ...;
\layout LyX-Code \layout LyX-Code
asn_DEF_Rectangle->free_struct(&asn_DEF_Rectangle, asn_DEF_Rectangle.free_struct(&asn_DEF_Rectangle,
\layout LyX-Code \layout LyX-Code
rect, 0); rect, 0);
...@@ -1303,7 +1303,7 @@ simple_deserializer(const void *buffer, size_t buf_size) { ...@@ -1303,7 +1303,7 @@ simple_deserializer(const void *buffer, size_t buf_size) {
rval = rval =
\series bold \series bold
asn_DEF_Rectangle->ber_decoder asn_DEF_Rectangle.ber_decoder
\series default \series default
(0, (0,
\layout LyX-Code \layout LyX-Code
...@@ -1339,7 +1339,7 @@ asn_DEF_Rectangle->ber_decoder ...@@ -1339,7 +1339,7 @@ asn_DEF_Rectangle->ber_decoder
/* Free partially decoded rect */ /* Free partially decoded rect */
\layout LyX-Code \layout LyX-Code
asn_DEF_Rectangle->free_struct( asn_DEF_Rectangle.free_struct(
\layout LyX-Code \layout LyX-Code
&asn_DEF_Rectangle, rect, 0); &asn_DEF_Rectangle, rect, 0);
...@@ -1395,7 +1395,7 @@ rval = ber_decode(0, &asn_DEF_Rectangle, (void **)&rect, ...@@ -1395,7 +1395,7 @@ rval = ber_decode(0, &asn_DEF_Rectangle, (void **)&rect,
buffer, buf_size); buffer, buf_size);
\layout Standard \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. and also the last argument (0) is no longer necessary.
\layout Standard \layout Standard
...@@ -1737,7 +1737,7 @@ XML_to_Rectangle(const void *buffer, size_t buf_size) { ...@@ -1737,7 +1737,7 @@ XML_to_Rectangle(const void *buffer, size_t buf_size) {
/* Free partially decoded rect */ /* Free partially decoded rect */
\layout LyX-Code \layout LyX-Code
asn_DEF_Rectangle->free_struct( asn_DEF_Rectangle.free_struct(
\layout LyX-Code \layout LyX-Code
&asn_DEF_Rectangle, rect, 0); &asn_DEF_Rectangle, rect, 0);
...@@ -1920,7 +1920,7 @@ struct my_figure { ...@@ -1920,7 +1920,7 @@ struct my_figure {
*/ */
\layout LyX-Code \layout LyX-Code
asn_DEF_Rectangle->free_struct( asn_DEF_Rectangle.free_struct(
\layout LyX-Code \layout LyX-Code
&asn_DEF_Rectangle, &mf->rect, &asn_DEF_Rectangle, &mf->rect,
...@@ -1965,7 +1965,7 @@ Rectangle_t *rect = ...@@ -1965,7 +1965,7 @@ Rectangle_t *rect =
*/ */
\layout LyX-Code \layout LyX-Code
asn_DEF_Rectangle->free_struct( asn_DEF_Rectangle.free_struct(
\layout LyX-Code \layout LyX-Code
&asn_DEF_Rectangle, rect, &asn_DEF_Rectangle, rect,
...@@ -3109,7 +3109,7 @@ size_t errlen = sizeof(errbuf); /* Size of the buffer */ ...@@ -3109,7 +3109,7 @@ size_t errlen = sizeof(errbuf); /* Size of the buffer */
\size small \size small
ret = asn_check_constraints(asn_DEF_Rectangle, ret = asn_check_constraints(&asn_DEF_Rectangle,
\layout LyX-Code \layout LyX-Code
......
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment