[svn:parrot] r39248 - trunk/src/runcore
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat May 30 01:09:06 UTC 2009
Author: chromatic
Date: Sat May 30 01:09:06 2009
New Revision: 39248
URL: https://trac.parrot.org/parrot/changeset/39248
Log:
[src] Annotated runcore functions to pass c_arg_assert.t coding standards test.
Modified:
trunk/src/runcore/main.c
Modified: trunk/src/runcore/main.c
==============================================================================
--- trunk/src/runcore/main.c Sat May 30 01:08:37 2009 (r39247)
+++ trunk/src/runcore/main.c Sat May 30 01:09:06 2009 (r39248)
@@ -300,6 +300,7 @@
void
do_prederef(void **pc_prederef, PARROT_INTERP, int type)
{
+ ASSERT_ARGS(do_prederef)
const size_t offset = pc_prederef - interp->code->prederef.code;
opcode_t * const pc = ((opcode_t *)interp->code->base.data) + offset;
const op_info_t *opinfo;
@@ -620,6 +621,7 @@
void
exec_init_prederef(PARROT_INTERP, void *prederef_arena)
{
+ ASSERT_ARGS(exec_init_prederef)
load_prederef(interp, PARROT_CGP_CORE);
if (!interp->code->prederef.code) {
@@ -648,6 +650,7 @@
void *
init_jit(PARROT_INTERP, SHIM(opcode_t *pc))
{
+ ASSERT_ARGS(init_jit)
#if JIT_CAPABLE
opcode_t *code_start;
UINTVAL code_size; /* in opcodes */
@@ -695,7 +698,9 @@
void
prepare_for_run(PARROT_INTERP)
{
+ ASSERT_ARGS(prepare_for_run)
void *ignored;
+
switch (interp->run_core) {
case PARROT_JIT_CORE:
ignored = init_jit(interp, interp->code->base.data);
@@ -892,6 +897,7 @@
void
runops_int(PARROT_INTERP, size_t offset)
{
+ ASSERT_ARGS(runops_int)
opcode_t *(*core) (PARROT_INTERP, opcode_t *) = NULL;
/* setup event function ptrs */
@@ -1009,6 +1015,7 @@
void
Parrot_setup_event_func_ptrs(PARROT_INTERP)
{
+ ASSERT_ARGS(Parrot_setup_event_func_ptrs)
const size_t n = interp->op_count;
const oplib_init_f init_func = get_core_op_lib_init(interp, interp->run_core);
op_lib_t * const lib = init_func(1);
@@ -1081,6 +1088,7 @@
void
dynop_register(PARROT_INTERP, PMC *lib_pmc)
{
+ ASSERT_ARGS(dynop_register)
op_lib_t *lib, *core;
oplib_init_f init_func;
op_func_t *new_func_table, *new_evc_func_table;
@@ -1371,6 +1379,7 @@
void
disable_event_checking(PARROT_INTERP)
{
+ ASSERT_ARGS(disable_event_checking)
/* restore func table */
PARROT_ASSERT(interp->save_func_table);
notify_func_table(interp, interp->save_func_table, 0);
@@ -1396,6 +1405,7 @@
void
enable_event_checking(PARROT_INTERP)
{
+ ASSERT_ARGS(enable_event_checking)
/* put table in place */
notify_func_table(interp, interp->evc_func_table, 1);
}
More information about the parrot-commits
mailing list