2c(1): document some differences with ANSI C
This commit is contained in:
parent
ad7316e87c
commit
75f5332c9d
1 changed files with 15 additions and 0 deletions
15
sys/man/1/2c
15
sys/man/1/2c
|
@ -404,6 +404,21 @@ will turn into in-line bit operations,
|
|||
as is done for shorter
|
||||
.I unsigned
|
||||
expressions).
|
||||
.PP
|
||||
Other differences with ANSI C include
|
||||
.TF \|
|
||||
.PD
|
||||
.TP
|
||||
\-
|
||||
The compilers use the original "unsigned preserving", rather than ANSI C "value preserving" rules, which means that, e.g.,
|
||||
.B "unsigned char"
|
||||
gets promoted to
|
||||
.B "unsigned int"
|
||||
rather than
|
||||
.BR "int" .
|
||||
.TP
|
||||
\-
|
||||
Parameters in macros are substituted inside of strings.
|
||||
.SH EXAMPLE
|
||||
For the 68020, produce a program
|
||||
.B prog
|
||||
|
|
Loading…
Reference in a new issue