Changeset 688 in svn


Ignore:
Timestamp:
2009-10-04T13:04:34+02:00 (6 years ago)
Author:
Xuefer
Message:

segv because dir/filepath is unused by var key, need space optimize later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r687 r688  
    934934#endif
    935935
    936     DISPATCH(int, filepath_len)
    937     IFRESTORE(`COPY(filepath)', `PROC_STRING_L(filepath, filepath_len)')
    938     DISPATCH(int, dirpath_len)
    939     IFRESTORE(`COPY(dirpath)', `PROC_STRING_L(dirpath, dirpath_len)')
    940 #ifdef IS_UNICODE
    941     DISPATCH(int, ufilepath_len)
    942     IFRESTORE(`COPY(ufilepath)', `PROC_USTRING_L(ufilepath, ufilepath_len)')
    943     DISPATCH(int, udirpath_len)
    944     IFRESTORE(`COPY(udirpath)', `PROC_USTRING_L(udirpath, udirpath_len)')
    945 #endif
    946 
     936    if (src->type == XC_TYPE_PHP) {
     937        DISPATCH(int, filepath_len)
     938        IFRESTORE(`COPY(filepath)', `PROC_STRING_L(filepath, filepath_len)')
     939        DISPATCH(int, dirpath_len)
     940        IFRESTORE(`COPY(dirpath)', `PROC_STRING_L(dirpath, dirpath_len)')
     941#ifdef IS_UNICODE
     942        DISPATCH(int, ufilepath_len)
     943        IFRESTORE(`COPY(ufilepath)', `PROC_USTRING_L(ufilepath, ufilepath_len)')
     944        DISPATCH(int, udirpath_len)
     945        IFRESTORE(`COPY(udirpath)', `PROC_USTRING_L(udirpath, udirpath_len)')
     946#endif
     947    }
     948    else {
     949        DONE(filepath_len)
     950        DONE(filepath)
     951        DONE(dirpath_len)
     952        DONE(dirpath)
     953#ifdef IS_UNICODE
     954        DONE(ufilepath_len)
     955        DONE(ufilepath)
     956        DONE(udirpath_len)
     957        DONE(udirpath)
     958#endif
     959    }
    947960')
    948961dnl }}}
Note: See TracChangeset for help on using the changeset viewer.