[svn:parrot] r44012 - trunk/compilers/pirc/src

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Feb 16 11:13:04 UTC 2010


Author: bacek
Date: Tue Feb 16 11:13:03 2010
New Revision: 44012
URL: https://trac.parrot.org/parrot/changeset/44012

Log:
PIRC: Really use headerizer

Modified:
   trunk/compilers/pirc/src/pirpcc.c
   trunk/compilers/pirc/src/pirsymbol.c
   trunk/compilers/pirc/src/pirsymbol.h

Modified: trunk/compilers/pirc/src/pirpcc.c
==============================================================================
--- trunk/compilers/pirc/src/pirpcc.c	Tue Feb 16 11:12:39 2010	(r44011)
+++ trunk/compilers/pirc/src/pirpcc.c	Tue Feb 16 11:13:03 2010	(r44012)
@@ -122,9 +122,10 @@
 
 static void targets_to_operands(
     ARGIN(lexer_state * const lexer),
-    target * const targets,
+    ARGIN(target * const targets),
     unsigned num_targets)
-        __attribute__nonnull__(1);
+        __attribute__nonnull__(1)
+        __attribute__nonnull__(2);
 
 #define ASSERT_ARGS_add_alias_operand __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(lexer) \
@@ -170,7 +171,8 @@
     , PARROT_ASSERT_ARG(instr) \
     , PARROT_ASSERT_ARG(label))
 #define ASSERT_ARGS_targets_to_operands __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
-       PARROT_ASSERT_ARG(lexer))
+       PARROT_ASSERT_ARG(lexer) \
+    , PARROT_ASSERT_ARG(targets))
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
 /* HEADERIZER END: static */
 
@@ -389,7 +391,8 @@
 
 */
 static void
-targets_to_operands(ARGIN(lexer_state * const lexer), target * const targets, unsigned num_targets)
+targets_to_operands(ARGIN(lexer_state * const lexer),
+        ARGIN(target * const targets), unsigned num_targets)
 {
     ASSERT_ARGS(targets_to_operands)
 

Modified: trunk/compilers/pirc/src/pirsymbol.c
==============================================================================
--- trunk/compilers/pirc/src/pirsymbol.c	Tue Feb 16 11:12:39 2010	(r44011)
+++ trunk/compilers/pirc/src/pirsymbol.c	Tue Feb 16 11:13:03 2010	(r44012)
@@ -168,7 +168,7 @@
 */
 void
 assign_vanilla_register(ARGIN(lexer_state * const lexer),
-        ARGMOD(symbol * const sym))
+        ARGIN(symbol * const sym))
 {
     sym->info.color    = next_register(lexer, sym->info.type);
     /* fprintf(stderr, "assigning vanilla reg %d to symbol %s\n", sym->info.color,

Modified: trunk/compilers/pirc/src/pirsymbol.h
==============================================================================
--- trunk/compilers/pirc/src/pirsymbol.h	Tue Feb 16 11:12:39 2010	(r44011)
+++ trunk/compilers/pirc/src/pirsymbol.h	Tue Feb 16 11:13:03 2010	(r44012)
@@ -80,10 +80,9 @@
 
 void assign_vanilla_register(
     ARGIN(lexer_state * const lexer),
-    ARGMOD(symbol * const sym))
+    ARGIN(symbol * const sym))
         __attribute__nonnull__(1)
-        __attribute__nonnull__(2)
-        FUNC_MODIFIES(* const sym);
+        __attribute__nonnull__(2);
 
 void check_unused_symbols(ARGIN(lexer_state * const lexer))
         __attribute__nonnull__(1);


More information about the parrot-commits mailing list