Author: mdiep
Date: Fri Mar 2 14:40:59 2007
New Revision: 17284
Modified:
trunk/include/parrot/interpreter.h
trunk/src/inter_call.c
trunk/src/register.c
Log:
[core]: Move some macros that are only used in one file out of interpreter.h
Modified: trunk/include/parrot/interpreter.h
==============================================================================
--- trunk/include/parrot/interpreter.h (original)
+++ trunk/include/parrot/interpreter.h Fri Mar 2 14:40:59 2007
@@ -241,19 +241,6 @@
size_t pred_offset;
} parrot_context_t;
-#define SAVE_OFF_REGS(orig, next, save) \
- save.bp = orig.bp;\
- save.bp_ps = orig.bp_ps;\
- orig.bp = next.bp;\
- orig.bp_ps = next.bp_ps;
-
-#define RESTORE_REGS(orig, save) \
- orig.bp = save.bp;\
- orig.bp_ps = save.bp_ps;
-
-#define ALIGNED_CTX_SIZE (((sizeof (struct Parrot_Context) + NUMVAL_SIZE - 1) \
- / NUMVAL_SIZE) * NUMVAL_SIZE )
-
struct _Thread_data; /* in thread.h */
struct _Caches; /* caches .h */
Modified: trunk/src/inter_call.c
==============================================================================
--- trunk/src/inter_call.c (original)
+++ trunk/src/inter_call.c Fri Mar 2 14:40:59 2007
@@ -26,6 +26,16 @@
#include "inter_call.str"
+#define SAVE_OFF_REGS(orig, next, save) \
+ save.bp = orig.bp;\
+ save.bp_ps = orig.bp_ps;\
+ orig.bp = next.bp;\
+ orig.bp_ps = next.bp_ps;
+
+#define RESTORE_REGS(orig, save) \
+ orig.bp = save.bp;\
+ orig.bp_ps = save.bp_ps;
+
static int next_arg(Interp *, struct call_state_item *st);
static void next_arg_sig(Interp *interp, struct call_state_item *st);
Modified: trunk/src/register.c
==============================================================================
--- trunk/src/register.c (original)
+++ trunk/src/register.c Fri Mar 2 14:40:59 2007
@@ -72,6 +72,9 @@
#define CTX_ALLOC_SIZE 0x20000
+#define ALIGNED_CTX_SIZE (((sizeof (struct Parrot_Context) + NUMVAL_SIZE - 1) \
+ / NUMVAL_SIZE) * NUMVAL_SIZE )
+
/*
=item C<static void new_context_mem(Interp *, context_mem *ctx_mem)>