[BACK]Return to patch-yacc_output.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / caml-light / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / caml-light / patches / patch-yacc_output.c (download)

Revision 1.1, Sat Oct 20 22:11:30 2012 UTC (7 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4

Return without value iff the function has a return type of void.

$NetBSD: patch-yacc_output.c,v 1.1 2012/10/20 22:11:30 joerg Exp $

--- yacc/output.c.orig	2012-10-20 13:08:10.000000000 +0000
+++ yacc/output.c
@@ -16,6 +16,9 @@ static short *check;
 static int lowzero;
 static int high;
 
+static void output_trailing_text(void);
+static void output_stored_text(void);
+static void save_column(int symbol, int default_state);
 
 output()
 {
@@ -323,9 +326,7 @@ int symbol;
 
 
 
-save_column(symbol, default_state)
-int symbol;
-int default_state;
+static void save_column(int symbol, int default_state)
 {
     register int i;
     register int m;
@@ -726,7 +727,7 @@ output_transl()
   fprintf(code_file, "    0|];;\n\n");
 }
 
-output_stored_text()
+static void output_stored_text(void)
 {
     register int c;
     register FILE *in, *out;
@@ -757,7 +758,7 @@ output_debug()
 {
 }
 
-output_trailing_text()
+void output_trailing_text()
 {
     register int c, last;
     register FILE *in, *out;
@@ -814,7 +815,7 @@ output_trailing_text()
 }
 
 
-copy_file(file, file_name)
+void copy_file(file, file_name)
      FILE ** file;
      char * file_name;
 {