diff options
author | Ori Bernstein <ori@eigenstate.org> | 2019-06-18 22:47:15 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2019-06-18 22:47:15 -0700 |
commit | 94fb8869dfba9e09afa9f64a37302dc444393766 (patch) | |
tree | e371cdf1ec1f66fc71ac66f36185169e6528b7ca /sys/src/cmd/pcc.c | |
parent | ff344562dbefe0e53adc900b6e7cd962ae555e94 (diff) |
Always turn on the -+ flag in cpp
C99 comments have been the default in compilers for something like 20 years
now. This means we don't need to remember to turn it on when porting software,
and gets rid of cryptic errors about unterminated character constants when
someone writes something like:
// Didn't need to...
We still accept the flag to avoid breaking mkfiles, but we do nothing with it.
This also removes the documentation, since the option does nothing now.
Diffstat (limited to 'sys/src/cmd/pcc.c')
-rw-r--r-- | sys/src/cmd/pcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/pcc.c b/sys/src/cmd/pcc.c index 6c733ed12..35663edb3 100644 --- a/sys/src/cmd/pcc.c +++ b/sys/src/cmd/pcc.c @@ -65,7 +65,7 @@ main(int argc, char *argv[]) while(argc > 0) { ARGBEGIN { case '+': - append(&cpp, smprint("-%c", ARGC())); + /* No-op for compatibility */ break; case 'c': cflag = 1; |