Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
2e554fca
Commit
2e554fca
authored
Oct 26, 2014
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some english fixes
parent
47a6ae6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
doc/docsrc/asn1c-usage.tex
doc/docsrc/asn1c-usage.tex
+5
-7
No files found.
doc/docsrc/asn1c-usage.tex
View file @
2e554fca
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment