[svn:parrot] r47037 - in branches/ns_func_cleanup: compilers/imcc compilers/pirc/src docs include/parrot src

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Thu May 27 00:23:52 UTC 2010


Author: whiteknight
Date: Thu May 27 00:23:51 2010
New Revision: 47037
URL: https://trac.parrot.org/parrot/changeset/47037

Log:
Parrot_store_sub_in_namespace -> Parrot_ns_store_sub

Modified:
   branches/ns_func_cleanup/compilers/imcc/pbc.c
   branches/ns_func_cleanup/compilers/pirc/src/bcgen.c
   branches/ns_func_cleanup/docs/embed.pod
   branches/ns_func_cleanup/include/parrot/global.h
   branches/ns_func_cleanup/src/global.c
   branches/ns_func_cleanup/src/packfile.c
   branches/ns_func_cleanup/src/thread.c

Modified: branches/ns_func_cleanup/compilers/imcc/pbc.c
==============================================================================
--- branches/ns_func_cleanup/compilers/imcc/pbc.c	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/compilers/imcc/pbc.c	Thu May 27 00:23:51 2010	(r47037)
@@ -1497,7 +1497,7 @@
     else
         sub->ns_entry_name = sub->name;
 
-    Parrot_store_sub_in_namespace(interp, sub_pmc);
+    Parrot_ns_store_sub(interp, sub_pmc);
 
     if (sub->outer_sub)
         PMC_get_sub(interp, sub->outer_sub, outer_sub);

Modified: branches/ns_func_cleanup/compilers/pirc/src/bcgen.c
==============================================================================
--- branches/ns_func_cleanup/compilers/pirc/src/bcgen.c	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/compilers/pirc/src/bcgen.c	Thu May 27 00:23:51 2010	(r47037)
@@ -1271,7 +1271,7 @@
      * XXX must this be done always? (this w.r.t. the recent discussion about :vtable/:method
      * and being :anon etc.
      */
-    Parrot_store_sub_in_namespace(bc->interp, sub_pmc);
+    Parrot_ns_store_sub(bc->interp, sub_pmc);
     subconst_index = add_pmc_const(bc, sub_pmc);
 
     /* Add a new fixup entry in the fixup table for this sub. */

Modified: branches/ns_func_cleanup/docs/embed.pod
==============================================================================
--- branches/ns_func_cleanup/docs/embed.pod	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/docs/embed.pod	Thu May 27 00:23:51 2010	(r47037)
@@ -1537,7 +1537,7 @@
 
 =item C<Parrot_store_global_s>
 
-=item C<Parrot_store_sub_in_namespace>
+=item C<Parrot_ns_store_sub>
 
 =item C<Parrot_str_boolean>
 

Modified: branches/ns_func_cleanup/include/parrot/global.h
==============================================================================
--- branches/ns_func_cleanup/include/parrot/global.h	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/include/parrot/global.h	Thu May 27 00:23:51 2010	(r47037)
@@ -140,7 +140,7 @@
         __attribute__nonnull__(1);
 
 PARROT_EXPORT
-void Parrot_store_sub_in_namespace(PARROT_INTERP, ARGIN(PMC *sub_pmc))
+void Parrot_ns_store_sub(PARROT_INTERP, ARGIN(PMC *sub_pmc))
         __attribute__nonnull__(1)
         __attribute__nonnull__(2);
 
@@ -187,7 +187,7 @@
        PARROT_ASSERT_ARG(interp))
 #define ASSERT_ARGS_Parrot_store_global_s __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(interp))
-#define ASSERT_ARGS_Parrot_store_sub_in_namespace __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+#define ASSERT_ARGS_Parrot_ns_store_sub __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(interp) \
     , PARROT_ASSERT_ARG(sub_pmc))
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */

Modified: branches/ns_func_cleanup/src/global.c
==============================================================================
--- branches/ns_func_cleanup/src/global.c	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/src/global.c	Thu May 27 00:23:51 2010	(r47037)
@@ -777,7 +777,7 @@
 
 /*
 
-=item C<void Parrot_store_sub_in_namespace(PARROT_INTERP, PMC *sub_pmc)>
+=item C<void Parrot_ns_store_sub(PARROT_INTERP, PMC *sub_pmc)>
 
 Adds the PMC C<sub> into the current namespace. Adds the sub to a multi of the
 same name if it's defined as a multi.
@@ -788,9 +788,9 @@
 
 PARROT_EXPORT
 void
-Parrot_store_sub_in_namespace(PARROT_INTERP, ARGIN(PMC *sub_pmc))
+Parrot_ns_store_sub(PARROT_INTERP, ARGIN(PMC *sub_pmc))
 {
-    ASSERT_ARGS(Parrot_store_sub_in_namespace)
+    ASSERT_ARGS(Parrot_ns_store_sub)
     const INTVAL cur_id = Parrot_pcc_get_HLL(interp, CURRENT_CONTEXT(interp));
 
     PMC        *ns;

Modified: branches/ns_func_cleanup/src/packfile.c
==============================================================================
--- branches/ns_func_cleanup/src/packfile.c	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/src/packfile.c	Thu May 27 00:23:51 2010	(r47037)
@@ -3129,7 +3129,7 @@
         /* Vtable overrides and methods were already cloned, so don't reclone them. */
         if (new_sub->vtable_index == -1
         && !(old_sub->comp_flags   &  SUB_COMP_FLAG_METHOD))
-            Parrot_store_sub_in_namespace(interp, new_sub_pmc);
+            Parrot_ns_store_sub(interp, new_sub_pmc);
 
         ret->u.key = new_sub_pmc;
 
@@ -3990,7 +3990,7 @@
     /* finally place the sub into some namespace stash
      * XXX place this code in Sub.thaw ?  */
     if (VTABLE_isa(interp, pmc, _sub))
-        Parrot_store_sub_in_namespace(interp, pmc);
+        Parrot_ns_store_sub(interp, pmc);
 
     /* restore code */
     interp->code = cs_save;

Modified: branches/ns_func_cleanup/src/thread.c
==============================================================================
--- branches/ns_func_cleanup/src/thread.c	Thu May 27 00:10:17 2010	(r47036)
+++ branches/ns_func_cleanup/src/thread.c	Thu May 27 00:23:51 2010	(r47037)
@@ -197,7 +197,7 @@
         /* Skip vtable overrides and methods. */
         if (ret_val_sub->vtable_index == -1
                 && !(ret_val_sub->comp_flags & SUB_COMP_FLAG_METHOD)) {
-            Parrot_store_sub_in_namespace(interp, ret_val);
+            Parrot_ns_store_sub(interp, ret_val);
         }
     }
     else {


More information about the parrot-commits mailing list