Accomodate ANSI C compiler better

This commit is contained in:
ceriel
1991-11-13 17:07:30 +00:00
parent 9ae0501736
commit 2ac0b945f5
2 changed files with 25 additions and 1 deletions

View File

@@ -225,6 +225,12 @@ lang_opt(str)
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;
@@ -236,6 +242,10 @@ lang_opt(str)
}
break;
case 'w': /* disable warnings */
if (! ansi_c) {
append(&COMP_FLAGS, str);
return 1;
}
if (str[2]) {
str[1] = '-';
append(&COMP_FLAGS, &str[1]);