2002-11-23 Roland McGrath <roland@redhat.com>
authorroland <roland>
Sun, 24 Nov 2002 01:53:58 +0000 (01:53 +0000)
committerroland <roland>
Sun, 24 Nov 2002 01:53:58 +0000 (01:53 +0000)
* scripts/abilist.awk: Avoid strtonum function, not there in mawk.
Just produce hex output for datum sizes.

scripts/abilist.awk

index cd030e4..9781834 100644 (file)
@@ -15,7 +15,9 @@ $2 == "l" { next }
 $2 == "g" || $2 == "w" && NF == 7 {
   weak = ($2 == "w") ? "weak" : "strong";
   type = $3;
-  size = strtonum("0x" $5);
+  size = $5;
+  sub(/^0*/, "", size);
+  size = "0x" size;
   version = $6;
   symbol = $7;
   gsub(/[()]/, "", version);