summaryrefslogtreecommitdiff
path: root/src/derives.c
diff options
context:
space:
mode:
authorJesse Thilo <jthilo@gnu.org>2000-07-04 03:29:02 +0000
committerJesse Thilo <jthilo@gnu.org>2000-07-04 03:29:02 +0000
commit4a120d45e6a181ced2f24f2f6d23e2faa9fbd778 (patch)
treee1811991fcad51f7fb39d4ae357b6a18f2cd1417 /src/derives.c
parent27821bff0ff9f96e2e12036a16aee8481ef400d7 (diff)
downloadbison-4a120d45e6a181ced2f24f2f6d23e2faa9fbd778.tar.gz
More explicit use of "const", "extern", and "static", particularly to
limit the scope of many local variables and functions.
Diffstat (limited to 'src/derives.c')
-rw-r--r--src/derives.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/derives.c b/src/derives.c
index 6002b88f..fabd1ef1 100644
--- a/src/derives.c
+++ b/src/derives.c
@@ -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++)