Changeset 8
- Timestamp:
- 05/13/2006 03:19:43 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
config.m4 (modified) (2 diffs)
-
disassembler.c (modified) (1 diff)
-
opcode_spec.c (modified) (2 diffs)
-
utils.c (modified) (2 diffs)
-
xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.m4
r1 r8 8 8 if test "$PHP_$3" = "yes"; then 9 9 xcache_sources="$xcache_sources $1.c" 10 HAVE_$3=1 10 11 AC_DEFINE([HAVE_$3], 1, [Define for XCACHE: $4]) 12 else 13 HAVE_$3= 11 14 fi 12 15 ])dnl … … 57 60 PHP_SUBST([XCACHE_INDENT]) 58 61 62 dnl $ac_srcdir etc require PHP_NEW_EXTENSION 59 63 XCACHE_PROC_SOURCES=`ls $ac_srcdir/processor/*.m4` 60 64 PHP_SUBST([XCACHE_PROC_SOURCES]) 65 66 AC_MSG_CHECKING(if you have opcode_spec_def.h for xcache) 67 if test -e "$ac_srcdir/opcode_spec_def.h" ; then 68 AC_DEFINE([HAVE_XCACHE_OPCODE_SPEC_DEF], 1, [Define if you have opcode_spec_def.h for xcache]) 69 AC_MSG_RESULT(yes) 70 else 71 dnl check for features depend on opcode_spec_def.h 72 AC_MSG_RESULT(no) 73 define([ERROR], [ 74 AC_MSG_ERROR([cannot build with $1, $ac_srcdir/opcode_spec_def.h required]) 75 ]) 76 if test "$HAVE_XCACHE_DISASSEMBLER" = "1" ; then 77 ERROR(disassembler) 78 fi 79 undefine([ERROR]) 80 fi 61 81 fi -
trunk/disassembler.c
r1 r8 6 6 #define return_value dst 7 7 8 #ifndef HAVE_XCACHE_OPCODE_SPEC_DEF 9 #error disassembler cannot be built without xcache/opcode_spec_def.h 10 #endif 8 11 static void xc_dasm(zval *dst, zend_op_array *op_array TSRMLS_DC) /* {{{ */ 9 12 { -
trunk/opcode_spec.c
r1 r8 3 3 #include "const_string.h" 4 4 5 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 5 6 /* {{{ opcode_spec */ 6 7 #define OPSPEC(ext, op1, op2, res) { OPSPEC_##ext, OPSPEC_##op1, OPSPEC_##op2, OPSPEC_##res }, … … 24 25 } 25 26 /* }}} */ 27 #endif 26 28 /* {{{ op_spec */ 27 29 -
trunk/utils.c
r1 r8 198 198 /* }}} */ 199 199 200 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 200 201 static void xc_fix_opcode_ex_znode(int tofix, xc_op_spec_t spec, znode *znode, int type TSRMLS_DC) /* {{{ */ 201 202 { … … 262 263 } 263 264 /* }}} */ 265 #endif 264 266 265 267 void xc_install_function(char *filename, zend_function *func, zend_uchar type, char *key, uint len TSRMLS_DC) /* {{{ */ -
trunk/xcache.c
r1 r8 1506 1506 } 1507 1507 /* }}} */ 1508 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 1508 1509 /* {{{ proto string xcache_get_opcode_spec(int opcode) */ 1509 1510 PHP_FUNCTION(xcache_get_opcode_spec) … … 1529 1530 } 1530 1531 /* }}} */ 1532 #endif 1531 1533 /* {{{ proto mixed xcache_get_special_value(zval value) */ 1532 1534 PHP_FUNCTION(xcache_get_special_value) … … 1601 1603 PHP_FE(xcache_get_data_type, NULL) 1602 1604 PHP_FE(xcache_get_opcode, NULL) 1605 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 1603 1606 PHP_FE(xcache_get_opcode_spec, NULL) 1607 #endif 1604 1608 PHP_FE(xcache_is_autoglobal, NULL) 1605 1609 PHP_FE(xcache_inc, NULL)

