.TH AFCC 1
.SH NAME
-afcc \- fast ACK compatible ANSI C compiler
+afcc \- fast ACK compatible C compiler
.SH SYNOPSIS
.B afcc
[
.B \-v
]
[
+.B \-ansi
+]
+[
+.B \-R
+]
+[
.B \-vn
]
[ \fB\-D\fIname\fR ]
option.
.SH OPTIONS
.LP
+.IP \fB\-ansi\fP
+Use the ANSI C compiler instead of the K&R one. This flag must be first,
+and must also be used when linking through
+.I afcc
+or
+.I ack.
+.IP \fB\-R\fP
+test for more compatibility with Kernighan & Ritchie C [1].
.IP \fB\-c\fP
.br
Suppress the loading phase of the compilation, and force an object module to
char *str;
{
switch(str[1]) {
+ case 'R':
+ if (! ansi_c) {
+ append(&COMP_FLAGS, str);
+ return 1;
+ }
+ break;
case '-': /* debug options */
append(&COMP_FLAGS, str);
return 1;
}
break;
case 'w': /* disable warnings */
+ if (! ansi_c) {
+ append(&COMP_FLAGS, str);
+ return 1;
+ }
if (str[2]) {
str[1] = '-';
append(&COMP_FLAGS, &str[1]);