Changeset 1006
- Timestamp:
- 07/19/2012 05:11:16 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 8 modified
-
config.m4 (modified) (1 diff)
-
config.w32 (modified) (5 diffs)
-
devel/run (modified) (1 diff)
-
mod_cacher/htdocs (modified) (1 prop)
-
mod_coverager/htdocs (modified) (1 prop)
-
mod_coverager/xc_coverager.c (modified) (1 diff)
-
util/xc_trace.h (modified) (1 diff)
-
xcache/xc_utils.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.m4
r1004 r1006 24 24 fi 25 25 26 xcache_sources=" \ 27 util/xc_stack.c \ 28 util/xc_trace.c \ 29 xcache.c \ 30 xcache/xc_const_string.c \ 31 xcache/xc_compatibility.c \ 32 xcache/xc_lock.c \ 33 xcache/xc_mem.c \ 34 xcache/xc_opcode_spec.c \ 35 xcache/xc_processor.c \ 36 xcache/xc_sandbox.c \ 37 xcache/xc_shm.c \ 38 xcache/xc_shm_mmap.c \ 39 xcache/xc_utils.c \ 40 " 26 xcache_sources="xcache.c" 27 for i in \ 28 xc_stack.c \ 29 xc_trace.c \ 30 ; do 31 xcache_sources="$xcache_sources util/$i" 32 done 33 for i in \ 34 xc_const_string.c \ 35 xc_compatibility.c \ 36 xc_lock.c \ 37 xc_mem.c \ 38 xc_opcode_spec.c \ 39 xc_processor.c \ 40 xc_sandbox.c \ 41 xc_shm.c \ 42 xc_shm_mmap.c \ 43 xc_utils.c \ 44 ; do 45 xcache_sources="$xcache_sources xcache/$i" 46 done 41 47 XCACHE_MODULES="cacher" 42 48 XCACHE_MODULE([optimizer], [optimizer ], [XCACHE_OPTIMIZER], [(N/A)]) -
trunk/config.w32
r1004 r1006 5 5 6 6 if (PHP_XCACHE != "no") { 7 EXTENSION("xcache", "xcache.c", null, "/I " + configure_module_dirname); 7 8 // {{{ check for xcache-constant 8 9 ARG_ENABLE("xcache-constant", "XCache: Handle new constants made by php compiler (e.g.: for __halt_compiler)", "yes"); … … 12 13 // }}} 13 14 14 var xcache_sources = " \ 15 util/xc_stack.c \ 16 util/xc_trace.c \ 17 xcache.c \ 18 xcache/xc_const_string.c \ 19 xcache/xc_compatibility.c \ 20 xcache/xc_lock.c \ 21 xcache/xc_mem.c \ 22 xcache/xc_opcode_spec.c \ 23 xcache/xc_processor.c \ 24 xcache/xc_sandbox.c \ 25 xcache/xc_shm.c \ 26 xcache/xc_shm_mmap.c \ 27 xcache/xc_utils.c \ 28 "; 15 ADD_SOURCES(configure_module_dirname + "/util", " \ 16 xc_stack.c \ 17 xc_trace.c \ 18 ", "xcache"); 19 20 ADD_SOURCES(configure_module_dirname + "/xcache", " \ 21 xc_const_string.c \ 22 xc_compatibility.c \ 23 xc_lock.c \ 24 xc_mem.c \ 25 xc_opcode_spec.c \ 26 xc_processor.c \ 27 xc_sandbox.c \ 28 xc_shm.c \ 29 xc_shm_mmap.c \ 30 xc_utils.c \ 31 ", "xcache"); 32 29 33 // {{{ add sources on enabled 30 34 ARG_ENABLE("xcache-optimizer", "(N/A)", "no"); … … 45 49 var withval = eval("PHP_XCACHE_" + uname); 46 50 if (withval != "no") { 47 xcache_sources += " mod_" + name + "/xc_" + name + ".c";51 ADD_SOURCES(configure_module_dirname + "/mod_" + name, "xc_" + name + ".c", "xcache"); 48 52 XCACHE_MODULES += " " + name; 49 53 STDOUT.WriteLine("Enabling XCache Module: " + name); … … 80 84 if (PHP_XCACHE_TEST != "no") { 81 85 ADD_FLAG("XCACHE_ENABLE_TEST", "-DXCACHE_ENABLE_TEST"); 82 xcache_sources += " xcache/xc_malloc.c";86 ADD_SOURCES(configure_module_dirname + "/xcache", "xc_malloc.c", "xcache"); 83 87 AC_DEFINE("HAVE_XCACHE_TEST", 1, "Define to enable XCache self test"); 84 88 } … … 93 97 } 94 98 // }}} 95 // {{{ create extension 96 EXTENSION("xcache", xcache_sources); 99 // {{{ get ccrule 97 100 var srcdir = configure_module_dirname; 98 101 // it's a bit harder to get builddir -
trunk/devel/run
r1003 r1006 87 87 --enable-xcache-decoder \ 88 88 --enable-xcache-disassembler \ 89 --enable-xcache-coverager \ 89 90 --enable-xcache-test --enable-xcache-constant \ 90 91 && make clean all -
trunk/mod_cacher/htdocs
-
Property
svn:ignore set
to
config.php
-
Property
svn:ignore set
to
-
trunk/mod_coverager/htdocs
-
Property
svn:ignore set
to
config.php
-
Property
svn:ignore set
to
-
trunk/mod_coverager/xc_coverager.c
r1003 r1006 13 13 #include <fcntl.h> 14 14 15 #include "stack.h" 15 #include "util/xc_stack.h" 16 #include "util/xc_trace.h" 16 17 #include "xcache_globals.h" 17 #include "coverager.h" 18 #include "utils.h" 18 #include "xc_coverager.h" 19 #include "xcache/xc_utils.h" 20 19 21 typedef HashTable *coverager_t; 20 22 #define PCOV_HEADER_MAGIC 0x564f4350 -
trunk/util/xc_trace.h
r984 r1006 5 5 #pragma once 6 6 #endif // _MSC_VER > 1000 7 8 #ifdef ZEND_WIN32 9 # ifndef inline 10 # ifdef ZEND_WIN32_FORCE_INLINE 11 # define inline __forceinline 12 # else 13 # define inline 14 # endif 15 # endif 16 #endif 7 17 8 18 #ifdef XCACHE_DEBUG -
trunk/xcache/xc_utils.h
r996 r1006 1 1 #include "php.h" 2 #include " xcache.h"2 #include "../xcache.h" 3 3 4 4 typedef struct {

