Skip to content

Commit

Permalink
converter-sample renamed into converter-example
Browse files Browse the repository at this point in the history
  • Loading branch information
vlm committed Sep 27, 2017
1 parent ad77591 commit 15b26e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Added LTE RRC example (Bi-Ruei, Chiu).
* Added IEEE 1609.2 example.
* Added SAE J2735 example.
* converter-sample.c renamed into converter-example.c
* CVE-2017-12966 verified not present.
* Fix incomplete (failed) CHOICE XER decoding memory leak.
(Severity: medium; Security impact: medium)
Expand Down
Binary file modified doc/asn1c-usage.pdf
Binary file not shown.
13 changes: 7 additions & 6 deletions doc/docsrc/asn1c-usage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,16 @@ \section{Recognizing compiler output}
decoders and other useful routines. There will be quite a few of them, some
of them are not even always necessary, but the overall amount of code
after compilation will be rather small anyway.
\item A \emph{converter-sample.c} file containing the \emph{int main()} function with a fully functioning decoder. It can convert a given PDU between BER, XER and possibly OER and PER (if -gen-OER or -gen-PER options to asn1c were in effect). At some point you will want to replace this file with your own file containing the \emph{int main()} function.
\item A \emph{Makefile.am.sample} file mentioning all the files created
at the earlier steps. This file is suitable for either automake suite
or the plain `make` utility. Just rename it into \emph{Makefile}.
\item A \emph{converter-example.c} file containing the \emph{int main()} function with a fully functioning decoder. It can convert a given PDU between BER, XER and possibly OER and PER (if -gen-OER or -gen-PER options to asn1c were in effect). At some point you will want to replace this file with your own file containing the \emph{int main()} function.
\item A \emph{Makefile.am.libasncodecs} file mentioning all the files created
at the earlier steps. The accompanying \emph{Makefile.am.example} file is
suitable for either automake suite or the plain `make` utility.
Just rename it into \emph{Makefile}.
\end{itemize}
It is possible to compile everything with just a couple of instructions:
\begin{bash}
asn1c -pdu=%\emph{Rectangle}% *.asn1
make -f Makefile.am.sample # If you use `make`
make -f Makefile.am.example # If you use `make`
\end{bash}
or
\begin{bash}
Expand All @@ -220,7 +221,7 @@ \section{Recognizing compiler output}
\end{bash}
Refer to the Chapter \ref{cha:Step-by-step-examples} for a sample
\emph{int main()} function if you want some custom logic and not satisfied
with the supplied \emph{converter-sample.c}.
with the supplied \emph{converter-example.c}.

\clearpage{}
\section{\label{sec:Command-line-options}Command line options}
Expand Down
2 changes: 1 addition & 1 deletion tests/tests-c-compiler/check-assembly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ compiled-module: ${asn_module} ${abs_top_builddir}/asn1c/asn1c
-S ${abs_top_srcdir}/skeletons \\
-Wdebug-compiler \\
${AFLAGS} ${asn_module}
rm -f converter-sample.c
rm -f converter-example.c
@touch compiled-module
TARGETS
Expand Down

0 comments on commit 15b26e6

Please sign in to comment.