summaryrefslogtreecommitdiff
path: root/sys/man/1/2c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2018-12-01 11:28:26 +0000
committeraiju <devnull@localhost>2018-12-01 11:28:26 +0000
commit75f5332c9dce891845e57b188efad28d7530d8ae (patch)
tree03d82fe79a9f9d446a8a52094fef85def892a375 /sys/man/1/2c
parentad7316e87cd0444908caa74a5dfd4cf6168c5472 (diff)
2c(1): document some differences with ANSI C
Diffstat (limited to 'sys/man/1/2c')
-rw-r--r--sys/man/1/2c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/man/1/2c b/sys/man/1/2c
index 8e7dde1b6..d6bdeace1 100644
--- a/sys/man/1/2c
+++ b/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