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

@@ -30,8 +30,13 @@ Boston, MA 02111-1307, USA. */
#include "types.h"
#include "gram.h"
void set_derives PARAMS((void));
void free_derives PARAMS((void));
extern void set_derives PARAMS((void));
extern void free_derives PARAMS((void));
#if DEBUG
static void print_derives PARAMS((void));
extern char **tags;
#endif
short **derives;
@@ -95,14 +100,12 @@ free_derives (void)
#ifdef DEBUG
void
static void
print_derives (void)
{
register int i;
register short *sp;
extern char **tags;
printf(_("\n\n\nDERIVES\n\n"));
for (i = ntokens; i < nsyms; i++)