]> granicus.if.org Git - php/commitdiff
export zend_vm_set_opcode_handler
authorStanislav Malyshev <stas@php.net>
Wed, 22 Jun 2005 12:24:25 +0000 (12:24 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 22 Jun 2005 12:24:25 +0000 (12:24 +0000)
Zend/zend_vm.h
Zend/zend_vm_execute.h
Zend/zend_vm_gen.php

index b205903a858fd14e9c8cdc7ba722ae2b7d611305..7c6b9b6c9215cda8be5c9aadafc542b8f7825090 100644 (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)
 
index 2aa154982c62d475a653dd5d2d18020c6d9969e8..d0779b978cd84780713ef54a310d651f9c69c0cd 100644 (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);
 }
index a395ee05d6d3902671dce43a8f57bbccd66aa44e..a65153b5eb4dbfe4a65c1e8bfc774e2e03098b53 100644 (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");