[svn:parrot] r45616 - in trunk: config/gen include/parrot
petdance at svn.parrot.org
petdance at svn.parrot.org
Mon Apr 12 21:56:54 UTC 2010
Author: petdance
Date: Mon Apr 12 21:56:53 2010
New Revision: 45616
URL: https://trac.parrot.org/parrot/changeset/45616
Log:
move function declarations into a proper header file.
Modified:
trunk/config/gen/core_pmcs.pm
trunk/include/parrot/global_setup.h
Modified: trunk/config/gen/core_pmcs.pm
==============================================================================
--- trunk/config/gen/core_pmcs.pm Mon Apr 12 21:39:11 2010 (r45615)
+++ trunk/config/gen/core_pmcs.pm Mon Apr 12 21:56:53 2010 (r45616)
@@ -103,6 +103,8 @@
/* HEADERIZER STOP */
#include "parrot/parrot.h"
+#include "parrot/global_setup.h"
+
END_C
@@ -110,15 +112,6 @@
print {$OUT} <<'END_C';
-/* This isn't strictly true, but the headerizer should not bother */
-
-void Parrot_register_core_pmcs(PARROT_INTERP, ARGIN(PMC *registry))
- __attribute__nonnull__(1)
- __attribute__nonnull__(2);
-
-extern void Parrot_initialize_core_pmcs(PARROT_INTERP, int pass)
- __attribute__nonnull__(1);
-
void Parrot_initialize_core_pmcs(PARROT_INTERP, int pass)
{
/* first the PMC with the highest enum
Modified: trunk/include/parrot/global_setup.h
==============================================================================
--- trunk/include/parrot/global_setup.h Mon Apr 12 21:39:11 2010 (r45615)
+++ trunk/include/parrot/global_setup.h Mon Apr 12 21:56:53 2010 (r45616)
@@ -17,6 +17,13 @@
#include "parrot/config.h"
#include "parrot/interpreter.h"
+void Parrot_register_core_pmcs(PARROT_INTERP, ARGIN(PMC *registry))
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(2);
+
+void Parrot_initialize_core_pmcs(PARROT_INTERP, int pass)
+ __attribute__nonnull__(1);
+
/* HEADERIZER BEGIN: src/global_setup.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
More information about the parrot-commits
mailing list