From b749e98992aeed9c66dc7f4260ed690f4a249a85 Mon Sep 17 00:00:00 2001 From: borutr Date: Sat, 13 Jan 2007 22:10:53 +0000 Subject: [PATCH] * doc/sdccman.lyx: fixed format errors git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4570 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++ debugger/mcs51/acinclude.m4 | 6 +- doc/sdccman.lyx | 123 ++++++++++++++++++++---------------- 3 files changed, 77 insertions(+), 56 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce4d8b92..b29b6453 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-01-13 Borut Razem + + * doc/sdccman.lyx: fixed format errors + 2007-01-10 Borut Razem * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895: diff --git a/debugger/mcs51/acinclude.m4 b/debugger/mcs51/acinclude.m4 index f4cbe90a..c7383220 100644 --- a/debugger/mcs51/acinclude.m4 +++ b/debugger/mcs51/acinclude.m4 @@ -1,4 +1,8 @@ -dnl This macro will check for the presence of the readline library. +dnl Borut Razem +dnl +dnl This macro checks for the presence of the readline library. +dnl It works also in cross-compilation environment. +dnl dnl To get it into the aclocal.m4 dnl file, do this: dnl aclocal -I . --verbose dnl diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index 20b26c19..889d4b69 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -6146,9 +6146,8 @@ Pedentic parse numbers so that situations like 0xfe-LO_B(3) are parsed properly \end_inset -\emph on +\emph on Note: this functionality is not in conformance with standard! - \layout List \added_space_bottom bigskip \labelwidthstring 00.00.0000 @@ -16914,53 +16913,58 @@ The preprocessor SDCPP \layout Itemize -\series bold +\series bold pedantic_parse_number -\series default +\series default \begin_inset LatexCommand \index{\#pragma pedantic\_parse\_number} -\end_inset +\end_inset (+ | -) - Pedantic parse numbers so that situations like 0xfe-LO_B(3) are parsed properly and the macro LO_B(3) gets expanded. Default is off. Below is an example on how to use this pragma. -\emph on +\emph on Note: this functionality is not in conformance with standard! - \layout Verse -\family typewriter +\family typewriter #pragma pedantic_parse_number + \begin_inset LatexCommand \index{\#pragma pedantic\_parse\_number} -\end_inset +\end_inset + +\newline \newline -\newline #define LO_B(x) ((x) & 0xff) -\newline -\newline +\newline + +\newline unsigned char foo(void) -\newline -\InsetSpace ~ -\InsetSpace ~ -\InsetSpace ~ +\newline +{ +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ unsigned char c=0xfe-LO_B(3); -\newline -\newline -\InsetSpace ~ -\InsetSpace ~ -\InsetSpace ~ +\newline +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ return c; -\newline +\newline } -\newline +\newline + +\family default \layout Itemize @@ -17040,67 +17044,76 @@ void foo (void) \layout Itemize -\series bold +\series bold sdcc_hash -\series default +\series default \begin_inset LatexCommand \index{\#pragma sdcc\_hash} -\end_inset +\end_inset (+ | -) - Allow "naked" hash in macro definition, for example: \newline -\family typewriter + +\family typewriter #define DIR_LO(x) #(x & 0xff) -\family default +\family default + \newline Default is off. Below is an example on how to use this pragma. \layout Verse -\family typewriter +\family typewriter #pragma preproc_asm + -\newline +\newline #pragma sdcc_hash + \begin_inset LatexCommand \index{\#pragma sdcc\_hash} -\end_inset +\end_inset -\newline -\newline +\newline + +\newline #define ROMCALL(x) -\backslash -\newline -\InsetSpace ~ -\InsetSpace ~ -\InsetSpace ~ +\backslash + +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ mov R6_B3, #(x & 0xff) -\backslash -\newline -\InsetSpace ~ -\InsetSpace ~ -\InsetSpace ~ +\backslash + +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ mov R7_B3, #((x >> 8) & 0xff) -\backslash -\newline -\InsetSpace ~ -\InsetSpace ~ -\InsetSpace ~ +\backslash + +\newline +\SpecialChar ~ +\SpecialChar ~ +\SpecialChar ~ lcall __romcall -\newline -\newline +\newline + +\newline ... -\newline +\newline _asm -\newline +\newline ROMCALL(72) -\newline +\newline _endasm; -\newline +\newline ... -\newline +\newline + +\family default \layout Standard -- 2.47.2