Skip to content
This repository
Browse code

Change context accessors to return Parrot_Signature

  • Loading branch information...
commit afc58c19a4a380a30417e485946ded676461596d 1 parent 6026a31
Vasily Chekalkin authored March 29, 2012
5  include/parrot/context.h
@@ -187,7 +187,8 @@ UINTVAL Parrot_pcc_get_recursion_depth_func(PARROT_INTERP,
187 187
 PARROT_EXPORT
188 188
 PARROT_PURE_FUNCTION
189 189
 PARROT_CAN_RETURN_NULL
190  
-PMC* Parrot_pcc_get_signature_func(PARROT_INTERP, ARGIN(const PMC *ctx))
  190
+Parrot_Signature* Parrot_pcc_get_signature_func(PARROT_INTERP,
  191
+    ARGIN(const PMC *ctx))
191 192
         __attribute__nonnull__(2);
192 193
 
193 194
 PARROT_EXPORT
@@ -290,7 +291,7 @@ UINTVAL Parrot_pcc_set_recursion_depth_func(PARROT_INTERP,
290 291
 PARROT_EXPORT
291 292
 void Parrot_pcc_set_signature_func(PARROT_INTERP,
292 293
     ARGIN(PMC *ctx),
293  
-    ARGIN_NULLOK(PMC *sig_object))
  294
+    ARGIN_NULLOK(Parrot_Signature *sig))
294 295
         __attribute__nonnull__(1)
295 296
         __attribute__nonnull__(2);
296 297
 
15  src/call/context_accessors.c
@@ -429,10 +429,11 @@ Parrot_pcc_set_continuation_func(PARROT_INTERP, ARGIN(PMC *ctx), ARGIN_NULLOK(PM
429 429
 
430 430
 /*
431 431
 
432  
-=item C<PMC* Parrot_pcc_get_signature_func(PARROT_INTERP, const PMC *ctx)>
  432
+=item C<Parrot_Signature* Parrot_pcc_get_signature_func(PARROT_INTERP, const PMC
  433
+*ctx)>
433 434
 
434  
-=item C<void Parrot_pcc_set_signature_func(PARROT_INTERP, PMC *ctx, PMC
435  
-*sig_object)>
  435
+=item C<void Parrot_pcc_set_signature_func(PARROT_INTERP, PMC *ctx,
  436
+Parrot_Signature *sig)>
436 437
 
437 438
 Get/set call signature object of Context (in sub/method call).
438 439
 
@@ -443,22 +444,22 @@ Get/set call signature object of Context (in sub/method call).
443 444
 PARROT_EXPORT
444 445
 PARROT_PURE_FUNCTION
445 446
 PARROT_CAN_RETURN_NULL
446  
-PMC*
  447
+Parrot_Signature*
447 448
 Parrot_pcc_get_signature_func(SHIM_INTERP, ARGIN(const PMC *ctx))
448 449
 {
449 450
     ASSERT_ARGS(Parrot_pcc_get_signature_func)
450 451
     PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext);
451  
-    return CONTEXT_STRUCT(ctx)->current_sig;
  452
+    return CONTEXT_STRUCT(ctx)->signature;
452 453
 }
453 454
 
454 455
 PARROT_EXPORT
455 456
 void
456  
-Parrot_pcc_set_signature_func(PARROT_INTERP, ARGIN(PMC *ctx), ARGIN_NULLOK(PMC *sig_object))
  457
+Parrot_pcc_set_signature_func(PARROT_INTERP, ARGIN(PMC *ctx), ARGIN_NULLOK(Parrot_Signature *sig))
457 458
 {
458 459
     ASSERT_ARGS(Parrot_pcc_set_signature_func)
459 460
     PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext);
460 461
     PARROT_GC_WRITE_BARRIER(interp, ctx);
461  
-    CONTEXT_STRUCT(ctx)->current_sig = sig_object;
  462
+    CONTEXT_STRUCT(ctx)->signature = sig_object;
462 463
 }
463 464
 
464 465
 /*

0 notes on commit afc58c1

Please sign in to comment.
Something went wrong with that request. Please try again.