From: cuz Date: Thu, 2 Dec 2004 22:26:17 +0000 (+0000) Subject: Small improvement X-Git-Tag: V2.12.0~513 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48a7d56619ea92883bc52c36e5c6eebfebb5a031;p=cc65 Small improvement git-svn-id: svn://svn.cc65.org/cc65/trunk@3323 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 4d4ff3706..8998bfd62 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -437,7 +437,7 @@ and the one defined by the ISO standard: conventions (see below). This means, that you may not mix pointers to those functions with pointers to user written functions.

- + There may be some more minor differences, I'm currently not aware off. The biggest problem is the missing float data type. With this limitation in @@ -552,9 +552,9 @@ This cc65 version has some extensions to the ISO C standard.

cc65 implements flexible array struct members as defined in the C99 ISO - standard. As an extension, these fields may be initialized. There are - several exceptions, however (which is probably the reason why the - standard does not define this feature, because it is highly + standard. As an extension, these fields may be initialized. There are + several exceptions, however (which is probably the reason why the + standard does not define this feature, because it is highly unorthogonal). Flexible array members cannot be initialized... @@ -652,7 +652,7 @@ The compiler defines several macros at startup: __CC65_STD__ - This macro is defined to one of the following depending on the command line option: int foo; int bar () { return 1; } - __asm__ ("lda _foo"); /* DON'T DO THAT! */ + __asm__ ("lda _foo"); /* DON'T DO THAT! */ ... - __asm__ ("jsr _bar"); /* DON'T DO THAT EITHER! */ + __asm__ ("jsr _bar"); /* DON'T DO THAT EITHER! */

may stop working if the way, the compiler generates these names is changed in -a future version. Instead use the format specifiers from the table above. +a future version. Instead use the format specifiers from the table above: + + + __asm__ ("lda %v", foo); /* OK */ + ... + __asm__ ("jsr %v", bar); /* OK */ +