Changeset 982 for trunk/xcache.c


Ignore:
Timestamp:
2012-07-17T10:35:45+02:00 (21 months ago)
Author:
moo
Message:

move files to subdirs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r979 r982  
    2727#include "ext/date/php_date.h" 
    2828#endif 
    29 #include "optimizer.h" 
    30 #include "coverager.h" 
    31 #include "disassembler.h" 
    32 #include "align.h" 
    33 #include "stack.h" 
     29#include "submodules/xc_optimizer.h" 
     30#include "submodules/xc_coverager.h" 
     31#include "submodules/xc_disassembler.h" 
    3432#include "xcache_globals.h" 
    35 #include "processor.h" 
    36 #include "const_string.h" 
    37 #include "opcode_spec.h" 
    38 #include "utils.h" 
     33#include "xc_processor.h" 
     34#include "xc_const_string.h" 
     35#include "xc_opcode_spec.h" 
     36#include "xc_utils.h" 
     37#include "util/xc_align.h" 
     38#include "util/xc_stack.h" 
     39#include "util/xc_vector.h" 
     40#include "util/xc_trace.h" 
    3941 
    4042#define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + (time_t) (pentry)->ttl) 
     
    7274static zend_bool xc_disable_on_crash = 0; 
    7375 
    74 static xc_hash_t xc_php_hcache = { 0 }; 
    75 static xc_hash_t xc_php_hentry = { 0 }; 
    76 static xc_hash_t xc_var_hcache = { 0 }; 
    77 static xc_hash_t xc_var_hentry = { 0 }; 
     76static xc_hash_t xc_php_hcache = { 0, 0, 0 }; 
     77static xc_hash_t xc_php_hentry = { 0, 0, 0 }; 
     78static xc_hash_t xc_var_hcache = { 0, 0, 0 }; 
     79static xc_hash_t xc_var_hentry = { 0, 0, 0 }; 
    7880 
    7981static zend_ulong xc_php_ttl    = 0; 
     
    114116#endif 
    115117ZEND_DLEXPORT zend_extension zend_extension_entry; 
    116 ZEND_DECLARE_MODULE_GLOBALS(xcache); 
     118ZEND_DECLARE_MODULE_GLOBALS(xcache) 
    117119 
    118120typedef enum { XC_TYPE_PHP, XC_TYPE_VAR } xc_entry_type_t; 
     
    32713273} 
    32723274/* }}} */ 
    3273 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 
    32743275/* {{{ proto string xcache_get_opcode_spec(int opcode) */ 
    32753276PHP_FUNCTION(xcache_get_opcode_spec) 
     
    32953296} 
    32963297/* }}} */ 
    3297 #endif 
    32983298/* {{{ proto mixed xcache_get_special_value(zval value) 
    32993299   XCache internal use only: For decompiler to get static value with type fixed */ 
     
    33983398    PHP_FE(xcache_get_data_type,     NULL) 
    33993399    PHP_FE(xcache_get_opcode,        NULL) 
    3400 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF 
    34013400    PHP_FE(xcache_get_opcode_spec,   NULL) 
    3402 #endif 
    34033401    PHP_FE(xcache_is_autoglobal,     NULL) 
    34043402    PHP_FE(xcache_inc,               NULL) 
     
    35203518typedef void (*xc_sighandler_t)(int); 
    35213519#define FOREACH_SIG(sig) static xc_sighandler_t old_##sig##_handler = NULL 
    3522 #include "foreachcoresig.h" 
     3520#include "util/xc_foreachcoresig.h" 
    35233521#undef FOREACH_SIG 
    35243522/* }}} */ 
     
    35343532    } \ 
    35353533} while (0) 
    3536 #include "foreachcoresig.h" 
     3534#include "util/xc_foreachcoresig.h" 
    35373535#undef FOREACH_SIG 
    35383536} 
     
    35423540#define FOREACH_SIG(sig) \ 
    35433541    old_##sig##_handler = signal(sig, xcache_signal_handler) 
    3544 #include "foreachcoresig.h" 
     3542#include "util/xc_foreachcoresig.h" 
    35453543#undef FOREACH_SIG 
    35463544} 
Note: See TracChangeset for help on using the changeset viewer.