VirtualBox

Changeset 18112 in vbox


Ignore:
Timestamp:
Mar 20, 2009 12:10:17 PM (16 years ago)
Author:
vboxsync
Message:

#3743: “tstAsmStructsAsm-lst.sed locale sensitive”
Use [:alnum:] and friends. Fix a slightly too greedy hexdigit regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstAsmStructsAsm-lst.sed

    r4951 r18112  
    1818# Figure which type of line this is and process it accordingly.
    1919#
    20 /^[A-Za-z_][A-Za-z0-9_]*:/b struct
     20/^[[:alpha:]_][[:alnum:]_]*:/b struct
    2121/<gap>/b member
    22 /^\.[A-Za-z_][A-Za-z0-9_.:]* res.*$/b member_two
     22/^\.[[:alpha:]_][[:alnum:]_.:]* res.*$/b member_two
    2323b error
    2424b member_two
     
    4141#
    4242:member
    43 s/[0-9a-fA-Z]* *//
     43s/[[:xdigit:]]* *//
    4444s/<gap> *//
    45 /^\.[a-zA-Z0-9_.]*[:]* .*$/!t error
    46 s/\(\.[a-zA-Z0-9_]*\)[:]* .*$/\1 /
     45/^\.[[:alnum:]_.]*[:]* .*$/!t error
     46s/\(\.[[:alnum:]_]*\)[:]* .*$/\1 /
    4747G
    4848s/^\([^ ]*\) \(.*\)$/global \2\1 ; member/
     
    5858s/[:]*  *res[bwdtq] .*$//
    5959s/$/ /
    60 /^\.[a-zA-Z0-9_.]* *$/!t error
     60/^\.[[:alnum:]_.]* *$/!t error
    6161G
    6262s/^\([^ ]*\) \(.*\)$/global \2\1 ; member2/
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette