export zend_vm_set_opcode_handler

This commit is contained in:
Stanislav Malyshev 2005-06-22 12:24:25 +00:00
parent 1c68938c60
commit d66e7cb27c
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@
#define ZEND_VM_H
ZEND_API void zend_vm_use_old_executor();
void zend_vm_set_opcode_handler(zend_op* opcode);
ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
#define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)

View File

@ -117,7 +117,7 @@ static int ZEND_INIT_STRING_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
ZEND_VM_NEXT_OPCODE();
}
static int zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS)
int zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS)
{
zend_op *opline = EX(opline);
zval **original_return_value;
@ -29517,7 +29517,7 @@ static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, zend_op* o
return zend_opcode_handlers[opcode * 25 + zend_vm_decode[op->op1.op_type] * 5 + zend_vm_decode[op->op2.op_type]];
}
void zend_vm_set_opcode_handler(zend_op* op)
ZEND_API void zend_vm_set_opcode_handler(zend_op* op)
{
op->handler = zend_vm_get_opcode_handler(zend_user_opcodes[op->opcode], op);
}

View File

@ -1088,7 +1088,7 @@ function gen_vm($def, $skel) {
out($f, "}\n\n");
// Generate zend_vm_get_opcode_handler() function
out($f, "void zend_vm_set_opcode_handler(zend_op* op)\n");
out($f, "ZEND_API void zend_vm_set_opcode_handler(zend_op* op)\n");
out($f, "{\n");
out($f, "\top->handler = zend_vm_get_opcode_handler(zend_user_opcodes[op->opcode], op);\n");
out($f, "}\n\n");