Author: petdance
Date: Sat Jun 16 23:28:05 2007
New Revision: 19056

Modified:
   trunk/include/parrot/library.h
   trunk/include/parrot/string_funcs.h
   trunk/src/mmd.c
   trunk/src/string.c

Log:
fixed some headerizer flags

Modified: trunk/include/parrot/library.h
==============================================================================
--- trunk/include/parrot/library.h      (original)
+++ trunk/include/parrot/library.h      Sat Jun 16 23:28:05 2007
@@ -33,13 +33,37 @@
     PARROT_LIB_PATH_SIZE
 } enum_lib_paths;
 
-PARROT_API char* Parrot_locate_runtime_file(Interp *, const char *file_name,
-        enum_runtime_ft);
-PARROT_API STRING* Parrot_locate_runtime_file_str(Interp *, STRING *file_name,
-        enum_runtime_ft);
+/* HEADERIZER BEGIN: src/library.c */
+
+PARROT_API char* Parrot_get_runtime_prefix( Interp *interp /*NN*/,
+    STRING **prefix_str /*NULLOK*/ )
+        __attribute__nonnull__(1);
+
+PARROT_API char* Parrot_locate_runtime_file( Interp *interp /*NN*/,
+    const char *file_name /*NN*/,
+    enum_runtime_ft type )
+        __attribute__nonnull__(1)
+        __attribute__nonnull__(2)
+        __attribute__warn_unused_result__;
+
+PARROT_API STRING* Parrot_locate_runtime_file_str( Interp *interp /*NN*/,
+    STRING *file /*NN*/,
+    enum_runtime_ft type )
+        __attribute__nonnull__(1)
+        __attribute__nonnull__(2);
+
+void parrot_init_library_paths( Interp *interp /*NN*/ )
+        __attribute__nonnull__(1);
+
+STRING * parrot_split_path_ext( Interp* interp /*NN*/,
+    STRING *in,
+    STRING **wo_ext,
+    STRING **ext )
+        __attribute__nonnull__(1);
+
+/* HEADERIZER END: src/library.c */
+
 
-PARROT_API char* Parrot_get_runtime_prefix(Interp *, STRING **prefix);
-void parrot_init_library_paths(Interp *);
 STRING * parrot_split_path_ext(Interp* , STRING *in,
         STRING **wo_ext, STRING **ext);
 

Modified: trunk/include/parrot/string_funcs.h
==============================================================================
--- trunk/include/parrot/string_funcs.h (original)
+++ trunk/include/parrot/string_funcs.h Sat Jun 16 23:28:05 2007
@@ -79,9 +79,10 @@
 PARROT_API void Parrot_unmake_COW( Interp *interp, STRING *s /*NN*/ )
         __attribute__nonnull__(2);
 
-PARROT_API STRING * string_append( Interp *interp,
+PARROT_API STRING * string_append( Interp *interp /*NN*/,
     STRING *a /*NULLOK*/,
-    STRING *b /*NULLOK*/ );
+    STRING *b /*NULLOK*/ )
+        __attribute__nonnull__(1);
 
 PARROT_API STRING * string_bitwise_and( Interp *interp /*NN*/,
     STRING *s1 /*NULLOK*/,
@@ -142,7 +143,9 @@
     STRING *b /*NULLOK*/,
     UINTVAL Uflags );
 
-PARROT_API STRING * string_copy( Interp *interp, STRING *s /*NULLOK*/ );
+PARROT_API STRING * string_copy( Interp *interp /*NN*/, STRING *s /*NULLOK*/ )
+        __attribute__nonnull__(1);
+
 PARROT_API void string_cstring_free( char *p /*NULLOK*/ );
 PARROT_API void string_deinit( Interp *interp /*NN*/ )
         __attribute__nonnull__(1);

Modified: trunk/src/mmd.c
==============================================================================
--- trunk/src/mmd.c     (original)
+++ trunk/src/mmd.c     Sat Jun 16 23:28:05 2007
@@ -244,7 +244,6 @@
 PMC*
 mmd_dispatch_p_ppp(Interp *interp,
         PMC *left /*NN*/, PMC *right /*NN*/, PMC *dest, INTVAL func_nr)
-    /* WARN_UNUSED */
 {
     mmd_f_p_ppp real_function;
     int is_pmc;
@@ -273,7 +272,6 @@
 PMC*
 mmd_dispatch_p_pip(Interp *interp /*NN*/,
         PMC *left /*NN*/, INTVAL right, PMC *dest, INTVAL func_nr)
-    /* WARN_UNUSED */
 {
     int is_pmc;
 
@@ -307,7 +305,6 @@
 PMC*
 mmd_dispatch_p_pnp(Interp *interp /*NN*/,
         PMC *left /*NN*/, FLOATVAL right, PMC *dest, INTVAL func_nr)
-    /* WARN_UNUSED */
 {
     mmd_f_p_pnp real_function;
     int is_pmc;
@@ -336,7 +333,6 @@
 PMC*
 mmd_dispatch_p_psp(Interp *interp /*NN*/,
         PMC *left /*NN*/, STRING *right, PMC *dest, INTVAL func_nr)
-    /* WARN_UNUSED */
 {
     mmd_f_p_psp real_function;
     int is_pmc;

Modified: trunk/src/string.c
==============================================================================
--- trunk/src/string.c  (original)
+++ trunk/src/string.c  Sat Jun 16 23:28:05 2007
@@ -411,7 +411,7 @@
 
 PARROT_API
 STRING *
-string_append(Interp *interp, STRING *a /*NULLOK*/, STRING *b /*NULLOK*/)
+string_append(Interp *interp /*NN*/, STRING *a /*NULLOK*/, STRING *b 
/*NULLOK*/)
 {
     UINTVAL a_capacity;
     UINTVAL total_length;
@@ -830,7 +830,7 @@
 
 PARROT_API
 STRING *
-string_copy(Interp *interp, STRING *s /*NULLOK*/)
+string_copy(Interp *interp /*NN*/, STRING *s /*NULLOK*/)
 {
     return Parrot_make_COW_reference(interp, s);
 }

Reply via email to