Permalink
Browse files

fixing some consts

git-svn-id: https://svn.parrot.org/parrot/trunk@45150 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent f116191 commit 96d580c8173b4975eeaafeb6f5e7956e21ce0abd @petdance petdance committed Mar 24, 2010
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/pirsymbol.c
  2. +1 −1 src/pirsymbol.h
View
@@ -386,7 +386,7 @@ check_unused_symbols(ARGIN(lexer_state * const lexer))
/*
-=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 @@ allocate a PASM register for it.
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 @@ find_symbol(ARGMOD(lexer_state *lexer), ARGIN(const const * name))
/*
-=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 @@ identified by C<regno> and of type C<type>.
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);
View
@@ -130,7 +130,7 @@ pir_reg * find_register(
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);

0 comments on commit 96d580c

Please sign in to comment.