Changeset 877 in svn for trunk/processor/head.m4


Ignore:
Timestamp:
2012-04-01T03:39:31Z (3 years ago)
Author:
Xuefer
Message:

kill warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r873 r877  
    9999
    100100    zend_bool readonly_protection; /* wheather it's present */
    101 IFASSERT(xc_stack_t allocsizes;)
     101IFAUTOCHECK(xc_stack_t allocsizes;)
    102102};
    103103/* }}} */
    104104/* {{{ memsetptr */
    105 IFASSERT(`dnl
     105IFAUTOCHECK(`dnl
    106106static void *memsetptr(void *mem, void *content, size_t n)
    107107{
     
    171171#undef C_RELAYLINE
    172172#define C_RELAYLINE
    173 IFASSERT(`
     173IFAUTOCHECK(`
    174174#undef C_RELAYLINE
    175175#define C_RELAYLINE , __LINE__
    176176')
    177 static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFASSERT(`, int relayline')) {
     177static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFAUTOCHECK(`, int relayline')) {
    178178    pushdef(`__LINE__', `relayline')
    179179    int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size);
     
    187187        ALLOC(, char, realsize)
    188188    }
    189     IFASSERT(`
     189    IFAUTOCHECK(`
    190190        else {
    191191            dnl fprintf(stderr, "dupstr %s\n", ZSTR_S(str));
     
    197197/* {{{ xc_store_string_n */
    198198REDEF(`KIND', `store')
    199 static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFASSERT(`, int relayline')) {
     199static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFAUTOCHECK(`, int relayline')) {
    200200    pushdef(`__LINE__', `relayline')
    201201    int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size);
     
    341341/* }}} */
    342342/* {{{ field name checker */
    343 IFASSERT(`dnl
     343IFAUTOCHECK(`dnl
    344344static int xc_check_names(const char *file, int line, const char *functionName, const char **assert_names, int assert_names_count, HashTable *done_names)
    345345{
     
    394394    processor.cache = cache;
    395395
    396     IFASSERT(`xc_stack_init(&processor.allocsizes);')
     396    IFAUTOCHECK(`xc_stack_init(&processor.allocsizes);')
    397397
    398398    /* calc size */ {
     
    420420    )
    421421
    422     IFASSERT(`xc_stack_reverse(&processor.allocsizes);')
     422    IFAUTOCHECK(`xc_stack_reverse(&processor.allocsizes);')
    423423    /* store {{{ */
    424424    {
    425         IFASSERT(`char *oldp;')
     425        IFAUTOCHECK(`char *oldp;')
    426426        zend_hash_init(&processor.strings, 0, NULL, NULL, 0);
    427427        if (processor.reference) {
     
    435435            goto err_alloc;
    436436        }
    437         IFASSERT(`oldp = processor.p;')
     437        IFAUTOCHECK(`oldp = processor.p;')
    438438        assert(processor.p == (char *) ALIGN(processor.p));
    439439
     
    443443
    444444        xc_store_$1(&processor, dst, src TSRMLS_CC);
    445         IFASSERT(` {
     445        IFAUTOCHECK(` {
    446446            int real = processor.p - oldp;
    447447            int should = processor.size;
     
    459459    /* }}} */
    460460
    461     IFASSERT(`xc_stack_destroy(&processor.allocsizes);')
     461    IFAUTOCHECK(`xc_stack_destroy(&processor.allocsizes);')
    462462
    463463    return dst;
Note: See TracChangeset for help on using the changeset viewer.