diff options
author | Lev Walkin <vlm@lionet.info> | 2014-10-26 19:21:58 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2014-10-26 19:21:58 -0700 |
commit | 2e554fca7cb0a5c7d7e1050e16c5672cdcacb975 (patch) | |
tree | e2b3f387ed4acf673680c47defc8dbcfea5f1ddd | |
parent | 47a6ae6b79526c0182826c8bb15dd45dd4e34e11 (diff) |
some english fixes
-rw-r--r-- | doc/docsrc/asn1c-usage.tex | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/docsrc/asn1c-usage.tex b/doc/docsrc/asn1c-usage.tex index 40a9d34a..60acf930 100644 --- a/doc/docsrc/asn1c-usage.tex +++ b/doc/docsrc/asn1c-usage.tex @@ -888,12 +888,10 @@ END main() routine shown in the Section~\ref{sec:A-Rectangle-Decoder}) by placing the following snippet of code \emph{before} encoding and/or \emph{after} decoding the Rectangle type% -\footnote{Placing the constraint checking code \emph{before} encoding helps -to make sure you know the data is correct and within constraints before +\footnote{Placing the constraint checking code \emph{before encoding} helps +to make sure the data is correct and within constraints before sharing the data with anyone else. - -Placing the constraint checking code \emph{after} decoding, but before -any further action depending on the decoded data, helps to make sure +Placing the constraint checking code \emph{after decoding} helps to make sure the application got the valid contents before making use of it.% }: @@ -902,7 +900,7 @@ int ret; /* Return value */ char errbuf[128]; /* Buffer for error message */ size_t errlen = sizeof(errbuf); /* Size of the buffer */ -/* ... here may go Rectangle %\emph{decoding}% code ... */ +/* ... here goes the Rectangle %\emph{decoding}% code ... */ ret = asn_check_constraints(&asn_DEF_Rectangle, rectangle, errbuf, &errlen); /* assert(errlen < sizeof(errbuf)); // you may rely on that */ @@ -913,7 +911,7 @@ if(ret) { /* exit(...); // Replace with appropriate action */ } -/* ... here may go Rectangle %\emph{encoding}% code ... */ +/* ... here goes the Rectangle %\emph{encoding}% code ... */ \end{codesample} \item Compile the resulting C code as shown in the previous chapters. \item Try to test the constraints checking code by assigning integer value |