/[bison]/bison/src/files.c
ViewVC logotype

Diff of /bison/src/files.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by akim, Fri Jun 14 17:36:24 2002 UTC revision 1.74 by akim, Tue Jun 18 12:39:54 2002 UTC
# Line 384  compute_base_names (void) Line 384  compute_base_names (void)
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'. */

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26