Changeset 41 in svn


Ignore:
Timestamp:
2006-05-28T06:36:57+02:00 (9 years ago)
Author:
Xuefer
Message:

avoid gnu extension, for devel

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkopcode.awk

    r5 r41  
    55    FS=" "
    66    max = 0;
    7     delete opcodes;
    87}
    98
     
    1110    # regex from php5.1+/Zend/zend_vm_gen.php
    1211    gsub(/ +/, "");
    13     if (!match($0, /^ZEND_VM_HANDLER\(([0-9]+),([A-Z_]+),([A-Z|]+),([A-Z|]+)\)/, array)) {
     12    if (!match($0, /^ZEND_VM_HANDLER\(([0-9]+),([A-Z_]+),([A-Z|]+),([A-Z|]+)\)/)) {
    1413        print "error unmatch $0";
    1514        exit;
    1615    }
    17     id = 0 + array[1];
    18     name = array[2];
     16    # life is hard without 3rd argument of match()
     17    sub(/^ZEND_VM_HANDLER\(/, "");
     18    id = $0;
     19    sub(/,.*/, "", id); # chop
     20    id = 0 + id;
     21    sub(/^([0-9]+),/, "");
     22    sub(/,.*/, ""); # chop
     23    name = $0;
    1924    if (max < id) {
    2025        max = id;
  • trunk/mkopcode_spec.awk

    r5 r41  
    66    max = 0;
    77    started = 0
    8     delete opcodes;
    98}
    109
Note: See TracChangeset for help on using the changeset viewer.