More explicit use of "const", "extern", and "static", particularly to

limit the scope of many local variables and functions.
This commit is contained in:
Jesse Thilo
2000-07-04 03:29:02 +00:00
parent 27821bff0f
commit 4a120d45e6
20 changed files with 345 additions and 298 deletions

View File

@@ -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