Commit 15b26e6d authored by Lev Walkin's avatar Lev Walkin

converter-sample renamed into converter-example

parent ad775916
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Added LTE RRC example (Bi-Ruei, Chiu). * Added LTE RRC example (Bi-Ruei, Chiu).
* Added IEEE 1609.2 example. * Added IEEE 1609.2 example.
* Added SAE J2735 example. * Added SAE J2735 example.
* converter-sample.c renamed into converter-example.c
* CVE-2017-12966 verified not present. * CVE-2017-12966 verified not present.
* Fix incomplete (failed) CHOICE XER decoding memory leak. * Fix incomplete (failed) CHOICE XER decoding memory leak.
(Severity: medium; Security impact: medium) (Severity: medium; Security impact: medium)
......
No preview for this file type
...@@ -203,15 +203,16 @@ RectangleTest ASN.1 module defined in the beginning of this document). ...@@ -203,15 +203,16 @@ RectangleTest ASN.1 module defined in the beginning of this document).
decoders and other useful routines. There will be quite a few of them, some 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 of them are not even always necessary, but the overall amount of code
after compilation will be rather small anyway. 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{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.sample} file mentioning all the files created \item A \emph{Makefile.am.libasncodecs} file mentioning all the files created
at the earlier steps. This file is suitable for either automake suite at the earlier steps. The accompanying \emph{Makefile.am.example} file is
or the plain `make` utility. Just rename it into \emph{Makefile}. suitable for either automake suite or the plain `make` utility.
Just rename it into \emph{Makefile}.
\end{itemize} \end{itemize}
It is possible to compile everything with just a couple of instructions: It is possible to compile everything with just a couple of instructions:
\begin{bash} \begin{bash}
asn1c -pdu=%\emph{Rectangle}% *.asn1 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} \end{bash}
or or
\begin{bash} \begin{bash}
...@@ -220,7 +221,7 @@ cc -I. -DPDU=%\emph{Rectangle}% -o rectangle.exe *.c # ... or like this ...@@ -220,7 +221,7 @@ cc -I. -DPDU=%\emph{Rectangle}% -o rectangle.exe *.c # ... or like this
\end{bash} \end{bash}
Refer to the Chapter \ref{cha:Step-by-step-examples} for a sample 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 \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{} \clearpage{}
\section{\label{sec:Command-line-options}Command line options} \section{\label{sec:Command-line-options}Command line options}
......
...@@ -110,7 +110,7 @@ compiled-module: ${asn_module} ${abs_top_builddir}/asn1c/asn1c ...@@ -110,7 +110,7 @@ compiled-module: ${asn_module} ${abs_top_builddir}/asn1c/asn1c
-S ${abs_top_srcdir}/skeletons \\ -S ${abs_top_srcdir}/skeletons \\
-Wdebug-compiler \\ -Wdebug-compiler \\
${AFLAGS} ${asn_module} ${AFLAGS} ${asn_module}
rm -f converter-sample.c rm -f converter-example.c
@touch compiled-module @touch compiled-module
TARGETS TARGETS
......
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