mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
More explicit use of "const", "extern", and "static", particularly to
limit the scope of many local variables and functions.
This commit is contained in:
@@ -37,8 +37,10 @@ extern int fixed_outfiles;/* for -y */
|
||||
extern char *program_name;
|
||||
|
||||
extern void warns PARAMS((char *, char *)); /* main.c */
|
||||
static void usage PARAMS((FILE *));
|
||||
extern void getargs PARAMS((int argc, char *[]));
|
||||
|
||||
struct option longopts[] =
|
||||
static struct option longopts[] =
|
||||
{
|
||||
{"debug", 0, &debugflag, 1},
|
||||
{"defines", 0, &definesflag, 1},
|
||||
@@ -61,7 +63,7 @@ struct option longopts[] =
|
||||
/*---------------------------.
|
||||
| Display the help message. |
|
||||
`---------------------------*/
|
||||
void
|
||||
static void
|
||||
usage (FILE *stream)
|
||||
{
|
||||
/* Some efforts were made to ease the translators' task, please
|
||||
|
||||
Reference in New Issue
Block a user