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

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Feb 16 10:38:43 UTC 2010


Author: bacek
Date: Tue Feb 16 10:38:43 2010
New Revision: 44003
URL: https://trac.parrot.org/parrot/changeset/44003

Log:
Really use headerizer

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

Modified: trunk/compilers/pirc/src/pircompiler.c
==============================================================================
--- trunk/compilers/pirc/src/pircompiler.c	Tue Feb 16 10:38:22 2010	(r44002)
+++ trunk/compilers/pirc/src/pircompiler.c	Tue Feb 16 10:38:43 2010	(r44003)
@@ -205,7 +205,7 @@
 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 @@
 
 */
 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);

Modified: trunk/compilers/pirc/src/pircompiler.h
==============================================================================
--- trunk/compilers/pirc/src/pircompiler.h	Tue Feb 16 10:38:22 2010	(r44002)
+++ trunk/compilers/pirc/src/pircompiler.h	Tue Feb 16 10:38:43 2010	(r44003)
@@ -202,7 +202,7 @@
 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 @@
         __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 @@
        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. */


More information about the parrot-commits mailing list