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

petdance at svn.parrot.org petdance at svn.parrot.org
Wed Mar 24 15:35:18 UTC 2010


Author: petdance
Date: Wed Mar 24 15:35:17 2010
New Revision: 45150
URL: https://trac.parrot.org/parrot/changeset/45150

Log:
fixing some consts

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

Modified: trunk/compilers/pirc/src/pirsymbol.c
==============================================================================
--- trunk/compilers/pirc/src/pirsymbol.c	Wed Mar 24 13:31:21 2010	(r45149)
+++ trunk/compilers/pirc/src/pirsymbol.c	Wed Mar 24 15:35:17 2010	(r45150)
@@ -386,7 +386,7 @@
 
 /*
 
-=item C<symbol * find_symbol(lexer_state *lexer, const const * name)>
+=item C<symbol * find_symbol(lexer_state *lexer, const char *name)>
 
 Return the node for the symbol or NULL if the symbol
 is not defined. If an attempt is made to find a symbol,
@@ -399,7 +399,7 @@
 PARROT_WARN_UNUSED_RESULT
 PARROT_CAN_RETURN_NULL
 symbol *
-find_symbol(ARGMOD(lexer_state *lexer), ARGIN(const const * name))
+find_symbol(ARGMOD(lexer_state *lexer), ARGIN(const char *name))
 {
     ASSERT_ARGS(find_symbol)
     hashtable    *table    = &CURRENT_SUB(lexer)->symbols;
@@ -439,7 +439,7 @@
 
 /*
 
-=item C<static pir_reg * new_pir_reg(lexer_state * const lexer, pir_type type,
+=item C<static pir_reg * new_pir_reg(lexer_state *lexer, pir_type type,
 int regno)>
 
 Create a new PIR register node representing PIR/symbolic register
@@ -451,7 +451,7 @@
 PARROT_WARN_UNUSED_RESULT
 PARROT_CANNOT_RETURN_NULL
 static pir_reg *
-new_pir_reg(ARGIN(lexer_state * const lexer), pir_type type, int regno)
+new_pir_reg(ARGMOD(lexer_state *lexer), pir_type type, int regno)
 {
     ASSERT_ARGS(new_pir_reg)
     pir_reg *r = pir_mem_allocate_zeroed_typed(lexer, pir_reg);

Modified: trunk/compilers/pirc/src/pirsymbol.h
==============================================================================
--- trunk/compilers/pirc/src/pirsymbol.h	Wed Mar 24 13:31:21 2010	(r45149)
+++ trunk/compilers/pirc/src/pirsymbol.h	Wed Mar 24 15:35:17 2010	(r45150)
@@ -130,7 +130,7 @@
 
 PARROT_WARN_UNUSED_RESULT
 PARROT_CAN_RETURN_NULL
-symbol * find_symbol(ARGMOD(lexer_state *lexer), ARGIN(const const * name))
+symbol * find_symbol(ARGMOD(lexer_state *lexer), ARGIN(const char *name))
         __attribute__nonnull__(1)
         __attribute__nonnull__(2)
         FUNC_MODIFIES(*lexer);


More information about the parrot-commits mailing list