Update dependencies

This commit is contained in:
TwinProduction
2021-10-03 22:15:20 -04:00
parent 2d3fe9795f
commit 154bc7dbc6
1204 changed files with 373532 additions and 50576 deletions

View File

@ -744,7 +744,8 @@ func (s *scanner) parseLine(toks []token3) *ppLineDirective {
return &ppLineDirective{toks: toks}
default:
toks := s.scanLineToEOL(toks)
r := &ppLineDirective{toks: toks}
last := toks[len(toks)-1]
r := &ppLineDirective{toks: toks, nextPos: int(last.pos) + len(last.src.String())}
toks = toks[:len(toks)-1] // sans new-line
toks = ltrim3(toks)
toks = toks[1:] // Skip '#'
@ -1177,10 +1178,6 @@ func (c *ppCache) getFile(ctx *context, name string, sys bool, doNotCache bool)
size := int(fi.Size())
if !filepath.IsAbs(name) { // Never cache relative paths
if isTesting {
panic(internalError())
}
f, err := ctx.openFile(name, sys)
if err != nil {
return nil, err