[svn:parrot] r40899 - in branches/context_pmc3: include/parrot src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Mon Aug 31 22:52:03 UTC 2009
Author: bacek
Date: Mon Aug 31 22:52:02 2009
New Revision: 40899
URL: https://trac.parrot.org/parrot/changeset/40899
Log:
Run headerizer
Modified:
branches/context_pmc3/include/parrot/register.h
branches/context_pmc3/src/gc/alloc_register.c
Modified: branches/context_pmc3/include/parrot/register.h
==============================================================================
--- branches/context_pmc3/include/parrot/register.h Mon Aug 31 22:49:22 2009 (r40898)
+++ branches/context_pmc3/include/parrot/register.h Mon Aug 31 22:52:02 2009 (r40899)
@@ -117,6 +117,14 @@
__attribute__nonnull__(2);
PARROT_EXPORT
+void Parrot_pcc_set_regs_used(PARROT_INTERP,
+ ARGIN(PMC *ctx),
+ int type,
+ INTVAL num)
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(2);
+
+PARROT_EXPORT
void Parrot_pop_context(PARROT_INTERP)
__attribute__nonnull__(1);
@@ -170,6 +178,9 @@
#define ASSERT_ARGS_Parrot_pcc_get_STRING_reg __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(ctx)
+#define ASSERT_ARGS_Parrot_pcc_set_regs_used __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+ PARROT_ASSERT_ARG(interp) \
+ || PARROT_ASSERT_ARG(ctx)
#define ASSERT_ARGS_Parrot_pop_context __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp)
#define ASSERT_ARGS_Parrot_push_context __attribute__unused__ int _ASSERT_ARGS_CHECK = \
Modified: branches/context_pmc3/src/gc/alloc_register.c
==============================================================================
--- branches/context_pmc3/src/gc/alloc_register.c Mon Aug 31 22:49:22 2009 (r40898)
+++ branches/context_pmc3/src/gc/alloc_register.c Mon Aug 31 22:52:02 2009 (r40899)
@@ -631,7 +631,8 @@
/*
-=item C<int Parrot_pcc_set_regs_used(PARROT_INTERP, PMC *ctx, int type)>
+=item C<void Parrot_pcc_set_regs_used(PARROT_INTERP, PMC *ctx, int type, INTVAL
+num)>
Set number of used registers of particular type.
@@ -642,7 +643,7 @@
void
Parrot_pcc_set_regs_used(PARROT_INTERP, ARGIN(PMC *ctx), int type, INTVAL num)
{
- ASSERT_ARGS(Parrot_pcc_get_regs_used)
+ ASSERT_ARGS(Parrot_pcc_set_regs_used)
Parrot_pcc_get_context_struct(interp, ctx)->n_regs_used[type] = num;
}
More information about the parrot-commits
mailing list