Changeset 95 in svn for trunk/processor/processor.m4


Ignore:
Timestamp:
2006-07-16T11:07:57Z (9 years ago)
Author:
Xuefer
Message:

fixed #20, default: --enable-xcache-constant=yes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r94 r95  
    55DECL_STRUCT_P_FUNC(`zend_op_array')
    66DECL_STRUCT_P_FUNC(`zend_class_entry')
     7#ifdef HAVE_XCACHE_CONSTANT
     8DECL_STRUCT_P_FUNC(`zend_constant')
     9#endif
    710DECL_STRUCT_P_FUNC(`zend_function')
    811DECL_STRUCT_P_FUNC(`xc_entry_t')
     
    5962dnl }}}
    6063DEF_HASH_TABLE_FUNC(`HashTable_zval_ptr',           `zval_ptr')
     64#ifdef HAVE_XCACHE_CONSTANT
     65DEF_HASH_TABLE_FUNC(`HashTable_zend_constant',      `zend_constant')
     66#endif
    6167DEF_HASH_TABLE_FUNC(`HashTable_zend_function',      `zend_function')
    6268#ifdef ZEND_ENGINE_2
     
    205211#endif
    206212dnl }}}
     213#ifdef HAVE_XCACHE_CONSTANT
     214DEF_STRUCT_P_FUNC(`zend_constant', , `dnl {{{
     215    STRUCT(zval, value)
     216    DISPATCH(int, flags)
     217    DISPATCH(uint, name_len)
     218    PROC_STRING_L(name, name_len)
     219    zstr name;
     220    DISPATCH(int, module_number)
     221')
     222dnl }}}
     223#endif
    207224DEF_STRUCT_P_FUNC(`zend_function', , `dnl {{{
    208225    DISABLECHECK(`
     
    599616    STRUCT_P(HashTable, static_variables, HashTable_zval_ptr)
    600617
    601     IFCOPY(`dst->start_op = src->start_op;')
    602     DONE(start_op)
     618    COPY(start_op)
    603619    DISPATCH(int, backpatch_count)
    604620
     
    628644dnl }}}
    629645
     646#ifdef HAVE_XCACHE_CONSTANT
     647DEF_STRUCT_P_FUNC(`xc_constinfo_t', , `dnl {{{
     648    DISPATCH(zend_uint, key_size)
     649#ifdef IS_UNICODE
     650    DISPATCH(zend_uchar, type)
     651#endif
     652    IFRESTORE(`COPY(key)', `
     653        PROC_USTRING_N(type, key, key_size)
     654    ')
     655    STRUCT(zend_constant, constant)
     656')
     657dnl }}}
     658#endif
    630659DEF_STRUCT_P_FUNC(`xc_funcinfo_t', , `dnl {{{
    631660    DISPATCH(zend_uint, key_size)
     
    666695
    667696    STRUCT_P(zend_op_array, op_array)
     697
     698#ifdef HAVE_XCACHE_CONSTANT
     699    DISPATCH(zend_uint, constinfo_cnt)
     700    STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos)
     701#endif
    668702
    669703    DISPATCH(zend_uint, funcinfo_cnt)
Note: See TracChangeset for help on using the changeset viewer.