Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PIRC: Really use headerizer

git-svn-id: https://svn.parrot.org/parrot/trunk@44012 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
commit f6b034b8dacd5e07558163cb1f6b3cb782f98758 1 parent 7531ab5
@bacek bacek authored
Showing with 10 additions and 8 deletions.
  1. +7 −4 src/pirpcc.c
  2. +1 −1  src/pirsymbol.c
  3. +2 −3 src/pirsymbol.h
View
11 src/pirpcc.c
@@ -122,9 +122,10 @@ static void save_global_reference(
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 @@ static void targets_to_operands(
, 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 @@ with value "answer".
*/
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)
View
2  src/pirsymbol.c
@@ -168,7 +168,7 @@ Assign a new register to symbol C<sym>, and create a new live interval for C<sym
*/
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,
View
5 src/pirsymbol.h
@@ -80,10 +80,9 @@ extern const int valuetype_pirtype_clut[10];
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);
Please sign in to comment.
Something went wrong with that request. Please try again.