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


Ignore:
Timestamp:
2013-11-08T08:21:40+01:00 (20 months ago)
Author:
Xuefer
Message:

improve readability using ptradd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/main.m4

    r1450 r1452  
    2626dnl }}}
    2727dnl {{{ SRCPTR_EX(1:type, 2:elm)
    28 define(`SRCPTR_EX', `IFRELOCATE(`(($1 *) (((char *) $2) + ptrdiff))', `$2')')
     28define(`SRCPTR_EX', `IFRELOCATE(`ptradd($1 *, $2, ptrdiff)', `$2')')
    2929dnl }}}
    3030dnl {{{ ALLOC(1:dst, 2:type, 3:count=1, 4:clean=false, 5:realtype=$2)
Note: See TracChangeset for help on using the changeset viewer.