summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2015-04-28 13:58:28 +0000
committerXuefer <xuefer@gmail.com>2015-04-28 13:58:28 +0000
commit65daa90a820edde9922044d8d434c01874924f41 (patch)
treefb966e525ed3d35eaafedd3f0b955b41265caee9 /processor
parent25691273b3768d0d08d3169efac913042c4d955e (diff)
downloadxcache-65daa90a820edde9922044d8d434c01874924f41.tar.gz
xcache-65daa90a820edde9922044d8d434c01874924f41.zip
disable warning, only eanble it for debugging
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1594 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/processor.m417
1 files changed, 9 insertions, 8 deletions
diff --git a/processor/processor.m4 b/processor/processor.m4
index 786ddf4..e94d5a2 100644
--- a/processor/processor.m4
+++ b/processor/processor.m4
@@ -663,15 +663,16 @@ define(`UNION_znode_op', `dnl {{{
IFDASM(`{
zval *zv;
zval *srczv;
- if (SRC(`$1.constant') >= dasm->active_op_array_src->last_literal) {
- fprintf(stderr, "opcode %s $1 want literal %d\n", xc_get_opcode(SRC(`opcode')), SRC(`$1.constant'));
- break;
+ PROCESS(zend_uint, $1.var)
+ if (SRC(`$1.constant') < dasm->active_op_array_src->last_literal) {
+ srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
+ ALLOC_ZVAL(zv);
+ MAKE_COPY_ZVAL(&srczv, zv);
+ add_assoc_zval_ex(DST(), XCACHE_STRS("$1.constant"), zv);
+ }
+ else {
+ dnl fprintf(stderr, "opcode %s $1 want literal %d\n", xc_get_opcode(SRC(`opcode')), SRC(`$1.constant'));
}
- srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
- ALLOC_ZVAL(zv);
- MAKE_COPY_ZVAL(&srczv, zv);
- add_assoc_zval_ex(DST(), XCACHE_STRS("$1.constant"), zv);
- add_assoc_long_ex(DST(), XCACHE_STRS("$1.var"), SRC(`$1.constant'));
}
', `
IFCOPY(`