]> granicus.if.org Git - php/commitdiff
Restrict scope of inline functions to compile unit
authorSascha Schumann <sas@php.net>
Fri, 15 Aug 2003 21:02:35 +0000 (21:02 +0000)
committerSascha Schumann <sas@php.net>
Fri, 15 Aug 2003 21:02:35 +0000 (21:02 +0000)
Submitted by: Jason Greene <jason@inetgurus.net>

Zend/zend_execute.c
Zend/zend_object_handlers.c

index b24e8ab106ba148e8e8fd4eefeaf9fe3c679bb9e..80f064e968e6f708220adcd11198c317ed715528 100644 (file)
@@ -1562,7 +1562,7 @@ static inline int zend_binary_assign_op_obj_helper(int (*binary_op)(zval *result
 }
 
 
-inline int zend_binary_assign_op_helper(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
+static inline int zend_binary_assign_op_helper(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 {
        zval **var_ptr;
        zval *value;
@@ -1722,7 +1722,7 @@ int zend_post_dec_obj_handler(ZEND_OPCODE_HANDLER_ARGS)
 }
 
 
-inline int zend_incdec_op_helper(void *incdec_op_arg, ZEND_OPCODE_HANDLER_ARGS)
+static inline int zend_incdec_op_helper(void *incdec_op_arg, ZEND_OPCODE_HANDLER_ARGS)
 {
        zval **var_ptr = get_zval_ptr_ptr(&EX(opline)->op1, EX(Ts), BP_VAR_RW);
        int (*incdec_op)(zval *op1) = incdec_op_arg;
@@ -2779,7 +2779,7 @@ int zend_send_val_handler(ZEND_OPCODE_HANDLER_ARGS)
 }
 
 
-inline int zend_send_by_var_helper(ZEND_OPCODE_HANDLER_ARGS)
+static inline int zend_send_by_var_helper(ZEND_OPCODE_HANDLER_ARGS)
 {
        zval *varptr;
        varptr = get_zval_ptr(&EX(opline)->op1, EX(Ts), &EG(free_op1), BP_VAR_R);
@@ -2934,7 +2934,7 @@ int zend_bool_handler(ZEND_OPCODE_HANDLER_ARGS)
 }
 
 
-inline int zend_brk_cont_helper(ZEND_OPCODE_HANDLER_ARGS)
+static inline int zend_brk_cont_helper(ZEND_OPCODE_HANDLER_ARGS)
 {
        zval *nest_levels_zval = get_zval_ptr(&EX(opline)->op2, EX(Ts), &EG(free_op2), BP_VAR_R);
        zval tmp;
@@ -3152,7 +3152,7 @@ int zend_fetch_constant_handler(ZEND_OPCODE_HANDLER_ARGS)
 }
 
 
-inline int zend_init_add_array_helper(ZEND_OPCODE_HANDLER_ARGS)
+static inline int zend_init_add_array_helper(ZEND_OPCODE_HANDLER_ARGS)
 {
        zval *array_ptr = &EX_T(EX(opline)->result.u.var).tmp_var;
        zval *expr_ptr, **expr_ptr_ptr = NULL;
index 4d1589ace9c332384b19ceb2111fc7b00f7bdad9..521efa9cea0869cf50af76851a9852c67edae6c5 100644 (file)
@@ -154,7 +154,7 @@ static int zend_std_call_setter(zval *object, zval *member, zval *value TSRMLS_D
 }
 
 
-inline int zend_verify_property_access(zend_property_info *property_info, zend_class_entry *ce TSRMLS_DC)
+static inline int zend_verify_property_access(zend_property_info *property_info, zend_class_entry *ce TSRMLS_DC)
 {
        switch (property_info->flags & ZEND_ACC_PPP_MASK) {
                case ZEND_ACC_PUBLIC: