Fix more "no previous declaration" warnings
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Aug 2005 04:35:40 +0000 (04:35 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Aug 2005 04:35:40 +0000 (04:35 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15172 f5534014-38df-0310-8fa8-9805f1628bb7

tools/lemon/lemon.c

index bad29912c79a74fa86936495b9ce4ec2e38d3819..8b050637d42da170bd2bcfc88c43df288e7e1ad9 100644 (file)
@@ -53,7 +53,7 @@ extern int access(const char *, int);
 #endif
 
 /* #define PRIVATE static */
 #endif
 
 /* #define PRIVATE static */
-#define PRIVATE
+#define PRIVATE static
 
 #ifdef TEST
 #define MAXRHS 5       /* Set low to exercise exception code */
 
 #ifdef TEST
 #define MAXRHS 5       /* Set low to exercise exception code */
@@ -2434,7 +2434,7 @@ void Reprint(struct lemon *lemp)
   }
 }
 
   }
 }
 
-void ConfigPrint(FILE *fp, struct config *cfp)
+PRIVATE void ConfigPrint(FILE *fp, struct config *cfp)
 {
   struct rule *rp;
   int i;
 {
   struct rule *rp;
   int i;
@@ -2480,7 +2480,7 @@ PRIVATE void PlinkPrint(FILE *out, struct plink *plp, char *tag)
 /* Print an action to the given file descriptor.  Return FALSE if
 ** nothing was actually printed.
 */
 /* Print an action to the given file descriptor.  Return FALSE if
 ** nothing was actually printed.
 */
-int PrintAction(struct action *ap, FILE *fp, int indent){
+PRIVATE int PrintAction(struct action *ap, FILE *fp, int indent){
   int result = 1;
   switch( ap->type ){
     case SHIFT:
   int result = 1;
   switch( ap->type ){
     case SHIFT:
@@ -2703,7 +2703,7 @@ PRIVATE void tplt_print(FILE *out, struct lemon *lemp, char *str,
 ** The following routine emits code for the destructor for the
 ** symbol sp
 */
 ** The following routine emits code for the destructor for the
 ** symbol sp
 */
-void emit_destructor_code(FILE *out, struct symbol *sp, struct lemon *lemp,
+PRIVATE void emit_destructor_code(FILE *out, struct symbol *sp, struct lemon *lemp,
     int *lineno)
 {
  char *cp;
     int *lineno)
 {
  char *cp;
@@ -2735,7 +2735,7 @@ void emit_destructor_code(FILE *out, struct symbol *sp, struct lemon *lemp,
 /*
 ** Return TRUE (non-zero) if the given symbol has a distructor.
 */
 /*
 ** Return TRUE (non-zero) if the given symbol has a distructor.
 */
-int has_destructor(struct symbol *sp, struct lemon *lemp)
+PRIVATE int has_destructor(struct symbol *sp, struct lemon *lemp)
 {
   int ret;
   if( sp->type==TERMINAL ){
 {
   int ret;
   if( sp->type==TERMINAL ){
@@ -2831,7 +2831,7 @@ PRIVATE void emit_code(FILE *out, struct rule *rp, struct lemon *lemp,
 ** union, also set the ".dtnum" field of every terminal and nonterminal
 ** symbol.
 */
 ** union, also set the ".dtnum" field of every terminal and nonterminal
 ** symbol.
 */
-void print_stack_union(
+PRIVATE void print_stack_union(
     FILE *out,              /* The output stream */
     struct lemon *lemp,     /* The main info structure for this parser */
     int *plineno,           /* Pointer to the line number */
     FILE *out,              /* The output stream */
     struct lemon *lemp,     /* The main info structure for this parser */
     int *plineno,           /* Pointer to the line number */