Update dependencies
This commit is contained in:
7
vendor/modernc.org/cc/v3/scanner.go
generated
vendored
7
vendor/modernc.org/cc/v3/scanner.go
generated
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user