[svn:parrot] r44009 - trunk/compilers/pirc/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Feb 16 11:11:53 UTC 2010
Author: bacek
Date: Tue Feb 16 11:11:52 2010
New Revision: 44009
URL: https://trac.parrot.org/parrot/changeset/44009
Log:
PIRC: Really use headerizer
Modified:
trunk/compilers/pirc/src/pirregalloc.c
trunk/compilers/pirc/src/pirregalloc.h
Modified: trunk/compilers/pirc/src/pirregalloc.c
==============================================================================
--- trunk/compilers/pirc/src/pirregalloc.c Tue Feb 16 11:11:31 2010 (r44008)
+++ trunk/compilers/pirc/src/pirregalloc.c Tue Feb 16 11:11:52 2010 (r44009)
@@ -71,7 +71,7 @@
lsr->r[i] = 1;
}
-/* HEADERIZER HFILE: none */
+/* HEADERIZER HFILE: compilers/pirc/src/pirregalloc.h */
/* HEADERIZER BEGIN: static */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
Modified: trunk/compilers/pirc/src/pirregalloc.h
==============================================================================
--- trunk/compilers/pirc/src/pirregalloc.h Tue Feb 16 11:11:31 2010 (r44008)
+++ trunk/compilers/pirc/src/pirregalloc.h Tue Feb 16 11:11:52 2010 (r44009)
@@ -84,13 +84,41 @@
} lsr_allocator;
-lsr_allocator *new_linear_scan_register_allocator(struct lexer_state *lexer);
+/* HEADERIZER BEGIN: compilers/pirc/src/pirregalloc.c */
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
-void destroy_linear_scan_register_allocator(lsr_allocator *lsr);
-
-live_interval * new_live_interval(lsr_allocator * const lsr, unsigned firstuse, pir_type type);
-
-void linear_scan_register_allocation(lsr_allocator * const lsr);
+void destroy_linear_scan_register_allocator(ARGMOD(lsr_allocator *lsr))
+ __attribute__nonnull__(1)
+ FUNC_MODIFIES(*lsr);
+
+void linear_scan_register_allocation(ARGIN(lsr_allocator * const lsr))
+ __attribute__nonnull__(1);
+
+PARROT_CAN_RETURN_NULL
+lsr_allocator * new_linear_scan_register_allocator(
+ ARGIN_NULLOK(struct lexer_state *lexer));
+
+PARROT_CAN_RETURN_NULL
+PARROT_MALLOC
+PARROT_WARN_UNUSED_RESULT
+live_interval * new_live_interval(
+ ARGIN(lsr_allocator * const lsr),
+ unsigned firstuse_location,
+ pir_type type)
+ __attribute__nonnull__(1);
+
+#define ASSERT_ARGS_destroy_linear_scan_register_allocator \
+ __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(lsr))
+#define ASSERT_ARGS_linear_scan_register_allocation \
+ __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(lsr))
+#define ASSERT_ARGS_new_linear_scan_register_allocator \
+ __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#define ASSERT_ARGS_new_live_interval __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(lsr))
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
+/* HEADERIZER END: compilers/pirc/src/pirregalloc.c */
#endif /* PARROT_PIR_PIRREGALLOC_H_GUARD */
More information about the parrot-commits
mailing list