VirtualBox

Changeset 18117 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2009 1:33:58 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44787
Message:

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

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/err/errmsg.sed

    r8256 r18117  
    44#
    55
    6 # Copyright (C) 2006-2007 Sun Microsystems, Inc.
     6# Copyright (C) 2006-2009 Sun Microsystems, Inc.
    77#
    88# This file is part of VirtualBox Open Source Edition (OSE), as
     
    4747# Convert the defines
    4848:defines
    49 s/^[[:space:]]*#[[:space:]]*define[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*\(.*\)[[:space:]]*$/    "\1",\n     \1 }, /
     49s/^[[:space:]]*#[[:space:]]*define[[:space:]]*\([[:alnum:]_]*\)[[:space:]]*\(.*\)[[:space:]]*$/    "\1",\n     \1 }, /
    5050b end
    5151
  • trunk/src/VBox/Runtime/common/err/errmsgcom.sed

    r8256 r18117  
    44#
    55
    6 # Copyright (C) 2006-2007 Sun Microsystems, Inc.
     6# Copyright (C) 2006-2009 Sun Microsystems, Inc.
    77#
    88# This file is part of VirtualBox Open Source Edition (OSE), as
     
    6262    s/"/\\"/g
    6363    # output C array entry
    64     s/\([a-zA-Z0-9_]*\)[\t ]*\n\(.*\)[\t ]*$/{ "\2", "\1", \1 }, /
     64    s/\([[:alnum:]_]*\)[\t ]*\n\(.*\)[\t ]*$/{ "\2", "\1", \1 }, /
    6565}
    6666b end
  • trunk/src/VBox/VMM/testcase/tstAsmStructsAsm-lst.sed

    r18112 r18117  
    77/\[absolute /d
    88/ times /d
    9 s/ *[0-9]* //
     9s/ *[[:digit:]]* //
    1010/^ *$/d
    1111s/ *$//g
  • trunk/src/recompiler/Sun/op-darwin.sed

    r8155 r18117  
    77
    88#
    9 # Copyright (C) 2006-2007 Sun Microsystems, Inc.
     9# Copyright (C) 2006-2009 Sun Microsystems, Inc.
    1010#
    1111# This file is part of VirtualBox Open Source Edition (OSE), as
     
    3636
    3737# .zero seems to be similar to .spaces...
    38 s/^\([[:blank:]]*\)\.zero[[:blank:]][[:blank:]]*\([0-9][0-9]*\)/\1.space \2/
     38s/^\([[:blank:]]*\)\.zero[[:blank:]][[:blank:]]*\([[:digit:]][[:digit:]]*\)/\1.space \2/
    3939
    40 # It looks like if .align is taking a byte count on linux and a power of 
     40# It looks like if .align is taking a byte count on linux and a power of
    4141# two on Darwin, translate to power of two.
    4242s/\.align 128/\.align 7/
     
    4848s/\.align 2/\.align 1/
    4949
    50 
    5150# Darwin uses underscore prefixed names like the DOS based i386 OSes
    52 # linux does. So, all global symbols needs to be translated.
     51# linux does. So, all global symbols need to be translated.
    5352s/^[[:blank:]]*\.globl[[:blank:]][[:blank:]]*\([^\t\n ]*\)[[:blank:]]*$/#define \1 _\1\n.globl \1/
    5453
    55 # special hack for __op_labelN
    56 s/__op_label\([0-9]\)/___op_label\1/g
     54# Special hack for __op_labelN.
     55s/__op_label\([[:digit:]]\)/___op_label\1/g
    5756
  • 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.

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