diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-17 18:28:05 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-17 18:28:05 -0700 |
commit | 23ac1f4f98accc3bb84e81be264d8408be372028 (patch) | |
tree | d3876d6d5ce73c9f0669ec3f0c04c3a7524ec91e /sys/cmd/cc/pp.c | |
parent | 9ec5bed6a7d715ffa69851569485a685dd69db2e (diff) |
fix: bugs associated to map reallocating
Diffstat (limited to 'sys/cmd/cc/pp.c')
-rw-r--r-- | sys/cmd/cc/pp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cmd/cc/pp.c b/sys/cmd/cc/pp.c index abef3c6..d1a5d83 100644 --- a/sys/cmd/cc/pp.c +++ b/sys/cmd/cc/pp.c @@ -466,11 +466,11 @@ ppinc(Lexer *lx) } } if (i == C.inc.len) { - errorat(lx->pos, "could not find included file '%s' on given search paths", s); + errorat(lx->pos, "could not find file '%s' on standard include search path", s); goto Bad; } - io = makeio(lx->buf); + io = openio(lx->buf); if (io != nil) { pushio(lx, io); } @@ -494,7 +494,7 @@ ppprag(Lexer *lx) errorat(lx->pos, "failed to parse pragma identifier"); goto Bad; } - if (strcmp(s, "once")) { + if (strcmp(s, "once") == 0) { lx->io->kind |= IOonce; return 0; } |