[svn:parrot] r42107 - branches/context_unify/src/call

bacek at svn.parrot.org bacek at svn.parrot.org
Mon Oct 26 11:06:49 UTC 2009


Author: bacek
Date: Mon Oct 26 11:06:49 2009
New Revision: 42107
URL: https://trac.parrot.org/parrot/changeset/42107

Log:
Initialise new fields in Parrot_alloc_context.

Modified:
   branches/context_unify/src/call/context.c

Modified: branches/context_unify/src/call/context.c
==============================================================================
--- branches/context_unify/src/call/context.c	Mon Oct 26 11:06:27 2009	(r42106)
+++ branches/context_unify/src/call/context.c	Mon Oct 26 11:06:49 2009	(r42107)
@@ -277,7 +277,6 @@
                            ? NULL
                            : get_context_struct_fast(interp, pmcold);
 
-    ctx->current_results   = NULL;
     ctx->results_signature = NULL;
     ctx->lex_pad           = PMCNULL;
     ctx->outer_ctx         = NULL;
@@ -288,6 +287,14 @@
     ctx->pred_offset       = 0;
     ctx->current_sig       = PMCNULL;
     ctx->current_sub       = PMCNULL;
+    ctx->positionals       = NULL;
+    ctx->results           = PMCNULL;
+    ctx->type_tuple        = PMCNULL;
+    ctx->short_sig         = NULL;
+    ctx->arg_flags         = PMCNULL;
+    ctx->return_flags      = PMCNULL;
+    ctx->hash              = NULL;
+    ctx->num_positionals   = 0;
 
     if (old) {
         /* some items should better be COW copied */


More information about the parrot-commits mailing list