diff options
author | Andi Gutmans <andi@php.net> | 2001-08-30 15:31:35 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-08-30 15:31:35 +0000 |
commit | 560606d210ca4ca3ab8815cea6a370179a6f8bc8 (patch) | |
tree | 15ef958ebce164c2b0acca52f176b33f7854df4d | |
parent | 0fdc143d9e709d3e8961c26c4e82c0804b633d01 (diff) | |
download | php-git-560606d210ca4ca3ab8815cea6a370179a6f8bc8.tar.gz |
- Get rid of warning and C++ comments
-rw-r--r-- | Zend/zend_compile.c | 15 | ||||
-rw-r--r-- | Zend/zend_compile.h | 2 | ||||
-rw-r--r-- | Zend/zend_execute.c | 4 |
3 files changed, 11 insertions, 10 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 7e13063159..8f393377e4 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -925,8 +925,9 @@ void zend_do_end_function_call(znode *function_name, znode *result, znode *argum *result = opline->result; SET_UNUSED(opline->op2); - // Check how much this is really needed - //opline->op2.u.constant.value.lval = is_method; + /* Check how much this is really needed + opline->op2.u.constant.value.lval = is_method; + */ if (CG(throw_list) != NULL) { long op_number = get_next_op_number(CG(active_op_array))-1; zend_llist_add_element(CG(throw_list), &op_number); @@ -1108,17 +1109,17 @@ void zend_do_try(znode *try_token CLS_DC) try_token->throw_list = (void *) CG(throw_list); CG(throw_list) = (zend_llist *) emalloc(sizeof(zend_llist)); zend_llist_init(CG(throw_list), sizeof(long), NULL, 0); - // Initialize try backpatch list used to backpatch throw, do_fcall + /* Initialize try backpatch list used to backpatch throw, do_fcall */ } static void throw_list_applier(long *opline_num, long *catch_opline) { zend_op *opline; - CLS_FETCH(); // Pass this by argument + CLS_FETCH(); /* Pass this by argument */ opline = &CG(active_op_array)->opcodes[*opline_num]; - // Backpatch the opline of the catch statement + /* Backpatch the opline of the catch statement */ switch (opline->opcode) { case ZEND_DO_FCALL: case ZEND_DO_FCALL_BY_NAME: @@ -1141,7 +1142,7 @@ void zend_do_begin_catch(znode *try_token, znode *catch_var CLS_DC) opline->op1 = *catch_var; SET_UNUSED(opline->op2); - zend_llist_apply_with_argument(CG(throw_list), throw_list_applier, &catch_op_number); + zend_llist_apply_with_argument(CG(throw_list), (llist_apply_with_arg_func_t) throw_list_applier, &catch_op_number); zend_llist_destroy(CG(throw_list)); efree(CG(throw_list)); CG(throw_list) = (void *) try_token->throw_list; @@ -1860,7 +1861,7 @@ void zend_do_shell_exec(znode *result, znode *cmd TSRMLS_DC) opline->extended_value = ZEND_DO_FCALL; SET_UNUSED(opline->op2); - // FIXME: exception support not added to this op2 + /* FIXME: exception support not added to this op2 */ opline = get_next_op(CG(active_op_array) TSRMLS_CC); opline->opcode = ZEND_DO_FCALL; opline->result.u.var = get_temporary_variable(CG(active_op_array)); diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 658dfed51e..84ad618af0 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -48,7 +48,7 @@ typedef struct _zend_op_array zend_op_array; typedef struct _znode { int op_type; - zend_llist *throw_list; // Try and save this space later on + zend_llist *throw_list; /* Try and save this space later on */ union { zval constant; diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5a6ea6023e..828b697c0a 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1730,7 +1730,7 @@ do_fcall_common: value = get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R); - // Not sure if a complete copy is what we want here + /* Not sure if a complete copy is what we want here */ MAKE_STD_ZVAL(exception); *exception = *value; if (!EG(free_op1)) { @@ -1748,7 +1748,7 @@ do_fcall_common: } NEXT_OPCODE(); case ZEND_CATCH: - // Check if this is really an exception, if not, jump over code + /* Check if this is really an exception, if not, jump over code */ if (EG(exception) == NULL) { opline = &op_array->opcodes[opline->op2.u.opline_num]; continue; |