Author: kjs
Date: Wed Mar 28 01:20:53 2007
New Revision: 17810

Modified:
   trunk/compilers/pirc/src/pirparser.c

Log:
compilers/pirc:
* moved string_value() to prevent need of prototype

Modified: trunk/compilers/pirc/src/pirparser.c
==============================================================================
--- trunk/compilers/pirc/src/pirparser.c        (original)
+++ trunk/compilers/pirc/src/pirparser.c        Wed Mar 28 01:20:53 2007
@@ -300,6 +300,22 @@
 
 /*
 
+=item string_value()
+
+  string_value -> SREG | PASM_SREG | stringconstant
+
+=cut
+
+*/
+static void
+string_value(parser_state *p) {
+    /* also allow string registers */
+    if (p->curtoken == T_SREG || p->curtoken == T_PASM_SREG) next(p);
+    else stringconstant(p);
+}
+
+/*
+
 =item method()
 
   method -> IDENTIFIER | stringconstant
@@ -1350,21 +1366,7 @@
     match(p, T_NEWLINE);
 }
 
-/*
-
-=item string_value()
-
-  string_value -> SREG | PASM_SREG | stringconstant
-
-=cut
 
-*/
-static void
-string_value(parser_state *p) {
-    /* also allow string registers */
-    if (p->curtoken == T_SREG || p->curtoken == T_PASM_SREG) next(p);
-    else stringconstant(p);
-}
 
 /*
 

Reply via email to