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


Ignore:
Timestamp:
2012-03-25T01:59:20Z (3 years ago)
Author:
Xuefer
Message:

fill uninitialized with line number for debugging purpose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/main.m4

    r794 r836  
    5656        $1 = (FORCETYPE *) (processor->p = (char *) ALIGN(processor->p));
    5757        ifelse(`$4', `', `
    58                 IFASSERT(`memset($1, -1, SIZE);')
     58                IFASSERT(`memsetptr($1, (void *) __LINE__, SIZE);')
    5959            ', `
    6060                memset($1, 0, SIZE);
     
    7373                FORCETYPE*COUNT, `HashTable*1', `ALLOC_HASHTABLE($1);',
    7474                `', `', `$1 = (FORCETYPE *) emalloc(SIZE);')
    75             IFASSERT(`memset($1, -1, SIZE);')
     75            IFASSERT(`memsetptr($1, (void *) __LINE__, SIZE);')
    7676        ', `
    7777            $1 = (FORCETYPE *) ecalloc(COUNT, sizeof($2));
Note: See TracChangeset for help on using the changeset viewer.