diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-03-30 14:30:19 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-03-30 14:30:19 +0000 |
commit | d4ce4f681e04bdd11f5bc7ab30bc6e9048fdf6d2 (patch) | |
tree | 6e51e1b5dfc4972c1bda1e78bf7efca0695ce512 | |
parent | 6878453548971f7c2c22a8bcb5d6a9b4e9d73d0d (diff) |
[lib] fix gensub call in memtypes.awk to pass "g", not g.
2006-03-27 Paul Jakma <paul.jakma@sun.com>
* memtypes.awk: Fix gensub call, g should be a string..
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/memtypes.awk | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index fe4086d9..1618dd8d 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-03-27 Paul Jakma <paul.jakma@sun.com> + + * memtypes.awk: Fix gensub call, g should be a string.. + 2006-03-25 Paul Jakma <paul.jakma@sun.com> * workqueue.h: (struct work_queue) Remove status field and diff --git a/lib/memtypes.awk b/lib/memtypes.awk index 59a7ab2d..5429f6e8 100644 --- a/lib/memtypes.awk +++ b/lib/memtypes.awk @@ -1,4 +1,4 @@ -# $Id: memtypes.awk,v 1.3 2005/05/23 12:33:58 paul Exp $ +# $Id: memtypes.awk,v 1.4 2006/03/30 14:30:19 paul Exp $ # # Scan a file of memory definitions (see eg memtypes.c) and generate # a corresponding header file with an enum of the MTYPE's and declarations @@ -44,13 +44,13 @@ BEGIN { # catch lines beginning with 'struct memory list ' and try snag the # memory_list name. Has to be 3rd field. ($0 ~ /^struct memory_list /) && (NF >= 3) { - mlists[lcount++] = gensub(mlistregex,"\\1",g,$3); + mlists[lcount++] = gensub(mlistregex, "\\1", "g",$3); } # snag the MTYPE, it must self-standing and the second field, # though we do manage to tolerate the , C seperator being appended ($1 !~ /^\/?\*/) && ($2 ~ /^MTYPE_/) { - mtype[tcount++] = gensub(mtyperegex,"\\1",1, $2); + mtype[tcount++] = gensub(mtyperegex, "\\1", "g", $2); } END { |