384 |
else |
else |
385 |
{ |
{ |
386 |
/* Otherwise, the short base name is computed from the input |
/* Otherwise, the short base name is computed from the input |
387 |
grammar: `foo.yy' => `foo'. */ |
grammar: `foo/bar.yy' => `bar'. */ |
388 |
filename_split (infile, &base, &tab, &ext); |
filename_split (infile, &base, &tab, &ext); |
389 |
short_base_name = |
short_base_name = |
390 |
xstrndup (infile, |
xstrndup (base, |
391 |
(strlen (infile) - (ext ? strlen (ext) : 0))); |
(strlen (base) - (ext ? strlen (ext) : 0))); |
392 |
} |
} |
393 |
|
|
394 |
/* In these cases, always append `.tab'. */ |
/* In these cases, always append `.tab'. */ |