[Swan-dev] sed -e 's/u_int\([^0-9]\)/unsigned\1/g'

D. Hugh Redelmeier hugh at mimosa.com
Thu Sep 6 03:53:54 UTC 2018

| commit 8ae190998e1aa32aa8903d541b7c0365934d4735
| Author: Andrew Cagney <andrew.cagney at gmail.com>
| Date:   Wed Sep 5 17:16:17 2018 -0400
|     bsd: sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' -e 's/u_int\([^0-9]\)/unsigned\1/g'

The pattern /\<u_int\>/ is more reliable and easier.  I'd recommend

  sed -i -e 's/\<u_int\([0-9]*\)_t\>/uint\1_t/g' -e 's/\<u_int\>/unsigned/g'

I don't imagine that there actually were problems created by the
original formulation.

More information about the Swan-dev mailing list