+2007-01-13 Borut Razem <borut.razem AT siol.net>
+
+ * doc/sdccman.lyx: fixed format errors
+
2007-01-10 Borut Razem <borut.razem AT siol.net>
* src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
-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
\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
\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
\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