VirtualBox

Ignore:
Timestamp:
Mar 20, 2009 1:33:58 PM (16 years ago)
Author:
vboxsync
Message:

sed(1): make these locale independent by using [:alnum:] and friends.
See also #3743: “tstAsmStructsAsm-lst.sed locale sensitive”

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/Sun/op-validate.sed

    r4541 r18117  
    22## @file
    33#
    4 # Just some quit sed hacks for validating an op.S assembly file.
     4# Just some quick sed hacks for validating an op.S assembly file.
    55# Will try this with gcc 4.x later to see if we can permit gcc 4
    66# to build op.c by using this script as guard against bad code.
    77#
    88
    9 ## @todo need to check that we've the got two __op_label[0-1].op_goto_tb[0-1] symbols!
     9## @todo need to check that we've the got two __op_label[01].op_goto_tb[01] symbols!
    1010
    1111# if (ret) goto return
     
    6161N
    6262s/^[[:blank:]]*ret[[:blank:]]*\n*[[:blank:]]*//
    63 /\.Lfe[0-9][0-9]*:/d
    64 /\.LFE[0-9][0-9]*:/d
     63/\.Lfe[[:digit:]][[:digit:]]*:/d
     64/\.LFE[[:digit:]][[:digit:]]*:/d
    6565/size[[:space:]]/d
    6666/^[/#]NO_APP[[:space:]]*$/d
     
    7474#/^[[:blank:]]*jmp/
    7575:jump
    76 s/^[[:space:]]*j[a-z]*[[:space:]][[:space:]]*//
     76s/^[[:space:]]*j[[:lower:]]*[[:space:]][[:space:]]*//
    7777/^\.L/d
    7878/^[1-9][fb]$/d
     
    8484b end
    8585
    86 # An error was found
     86# An error was found.
    8787:bad
    8888q 1
    8989
    90 # next expression
     90# Next expression.
    9191:end
    9292
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