Changeset 844 in svn for trunk/processor/main.m4


Ignore:
Timestamp:
2012-03-25T09:18:30+02:00 (3 years ago)
Author:
Xuefer
Message:

kill some warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/main.m4

    r843 r844  
    5858        $1 = (FORCETYPE *) (processor->p = (char *) ALIGN(processor->p));
    5959        ifelse(`$4', `', `
    60                 IFASSERT(`memsetptr($1, (void *) __LINE__, SIZE);')
     60                IFASSERT(`memsetptr($1, (void *) (unsigned long) __LINE__, SIZE);')
    6161            ', `
    6262                memset($1, 0, SIZE);
     
    159159define(`SETNULL', `SETNULL_EX(`dst->$1')DONE(`$1')')
    160160dnl }}}
     161dnl {{{ SETZERO_EX
     162define(`SETZERO_EX', `IFCOPY(`$1 = 0;')')
     163define(`SETZERO', `SETZERO_EX(`dst->$1')DONE(`$1')')
     164dnl }}}
    161165dnl {{{ COPYNULL_EX(1:dst, 2:elm-name)
    162166define(`COPYNULL_EX', `
     
    169173define(`COPYNULL', `
    170174    COPYNULL_EX(`dst->$1', `$1')DONE(`$1')
     175')
     176dnl }}}
     177dnl {{{ COPYZERO_EX(1:dst, 2:elm-name)
     178define(`COPYZERO_EX', `
     179    IFDASM(`add_assoc_long_ex(dst, ZEND_STRS("$2"), 0);')
     180    IFNOTMEMCPY(`IFCOPY(`$1 = 0;')')
     181    assert(patsubst($1, dst, src) == 0);
     182')
     183dnl }}}
     184dnl {{{ COPYZERO(1:elm)
     185define(`COPYZERO', `
     186    COPYZERO_EX(`dst->$1', `$1')DONE(`$1')
    171187')
    172188dnl }}}
Note: See TracChangeset for help on using the changeset viewer.