21 |
#ifndef FILES_H_ |
#ifndef FILES_H_ |
22 |
# define FILES_H_ |
# define FILES_H_ |
23 |
|
|
24 |
# include "struniq.h" |
# include "uniqstr.h" |
25 |
|
|
26 |
/* File name specified with -o for the output file, or 0 if no -o. */ |
/* File name specified with -o for the output file, or 0 if no -o. */ |
27 |
extern char *spec_outfile; |
extern char *spec_outfile; |
55 |
/* The file name as given on the command line. |
/* The file name as given on the command line. |
56 |
Not named "input_file" because Flex uses this name for an argument, |
Not named "input_file" because Flex uses this name for an argument, |
57 |
and therefore GCC warns about a name clash. */ |
and therefore GCC warns about a name clash. */ |
58 |
extern struniq_t grammar_file; |
extern uniqstr grammar_file; |
59 |
|
|
60 |
/* The current file name. Might change with %include, or with #line. */ |
/* The current file name. Might change with %include, or with #line. */ |
61 |
extern struniq_t current_file; |
extern uniqstr current_file; |
62 |
|
|
63 |
void compute_output_file_names (void); |
void compute_output_file_names (void); |
64 |
|
|
65 |
FILE *xfopen (const char *name, const char *mode); |
FILE *xfopen (const char *name, const char *mode); |
66 |
void xfclose (FILE *ptr); |
void xfclose (FILE *ptr); |
67 |
|
|
|
/* Is SUFFIX ending STRING? */ |
|
|
int strsuffix (const char* string, const char* suffix); |
|
|
|
|
|
/* Return a newly allocated string composed of the concatenation of |
|
|
STRING1, and STRING2. */ |
|
|
char* stringappend (const char* string1, const char* string2); |
|
|
|
|
68 |
/* Prefix used to generate output file names. */ |
/* Prefix used to generate output file names. */ |
69 |
extern char *short_base_name; |
extern char *short_base_name; |
70 |
|
|