Permalink
Browse files

Really use headerizer

git-svn-id: https://svn.parrot.org/parrot/trunk@44003 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
bacek committed Feb 16, 2010
1 parent 5954a97 commit 6f165d1ed29795340b1c82f2e623aecb4246be4f
Showing with 14 additions and 7 deletions.
  1. +5 −2 src/pircompiler.c
  2. +9 −5 src/pircompiler.h
View
@@ -205,7 +205,7 @@ PARROT_MALLOC
PARROT_CANNOT_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
lexer_state *
-new_lexer(PARROT_INTERP, NULLOK(char * const filename), int flags)
+new_lexer(PARROT_INTERP, ARGIN_NULLOK(char * const filename), int flags)
{
lexer_state *lexer = mem_allocate_zeroed_typed(lexer_state);
lexer->filename = filename;
@@ -437,7 +437,10 @@ C<vfprintf()>.
*/
void
-pirwarning(lexer_state * const lexer, int lineno, char const * const message, ...)
+pirwarning(ARGIN(lexer_state * const lexer),
+ int lineno,
+ ARGIN(char const * const message),
+ ...)
{
va_list arg_ptr;
fprintf(stderr, "warning (line %d): ", lineno);
View
@@ -202,7 +202,7 @@ PARROT_MALLOC
PARROT_CANNOT_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
lexer_state * new_lexer(PARROT_INTERP,
- NULLOK(char * const filename),
+ ARGIN_NULLOK(char * const filename),
int flags)
__attribute__nonnull__(1);
@@ -221,10 +221,12 @@ void * pir_mem_allocate_zeroed(
__attribute__nonnull__(1);
void pirwarning(
- lexer_state * const lexer,
+ ARGIN(lexer_state * const lexer),
int lineno,
- char const * const message,
- ...);
+ ARGIN(char const * const message),
+ ...)
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(3);
void release_resources(ARGIN(lexer_state *lexer))
__attribute__nonnull__(1);
@@ -246,7 +248,9 @@ void release_resources(ARGIN(lexer_state *lexer))
PARROT_ASSERT_ARG(lexer))
#define ASSERT_ARGS_pir_mem_allocate_zeroed __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(lexer))
-#define ASSERT_ARGS_pirwarning __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#define ASSERT_ARGS_pirwarning __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(lexer) \
+ , PARROT_ASSERT_ARG(message))
#define ASSERT_ARGS_release_resources __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(lexer))
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */

0 comments on commit 6f165d1

Please sign in to comment.