]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-05-23 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Mon, 23 May 2005 12:33:58 +0000 (12:33 +0000)
committerpaul <paul>
Mon, 23 May 2005 12:33:58 +0000 (12:33 +0000)
* memtypes.awk: use character classes, which work correctly in
  all LC_COLLATE environments, unlike A-Z, which doesnt work in
  eg estonian collate order. Reported by Hasso.

lib/ChangeLog
lib/memtypes.awk

index b53d14acbc029e878835f8a11912979fe77de4b2..1e34474fa3bfce87f9a4aea5bbd9a597c84319f0 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-23 Paul Jakma <paul@dishone.st>
+
+       * memtypes.awk: use character classes, which work correctly in
+         all LC_COLLATE environments, unlike A-Z, which doesnt work in
+         eg estonian collate order. Reported by Hasso.
+
 2005-05-19 Paul Jakma <paul@dishone.st>
 
        * thread.c: (thread_cancel_event) the number of pending events
index 9ab931bfaa99ce2aa2f6a3f6c40b3b67fc897086..59a7ab2dfc598ca2e496226ddd6f2b24fbbacfe8 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: memtypes.awk,v 1.2 2005/04/16 15:51:05 paul Exp $
+# $Id: memtypes.awk,v 1.3 2005/05/23 12:33:58 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
@@ -9,7 +9,7 @@
 #
 # Each MTYPE_ within the definition must the second token on the line,
 # tokens being delineated by whitespace. It may only consist of the set of
-# characters [A-Z_0-9]. Eg:
+# characters [[:upper:]_[:digit:]]. Eg:
 #
 # '\n  {  MTYPE_AWESOME_IPV8 , "Amazing new protocol, says genius" {}..boo'
 #
@@ -31,7 +31,7 @@
 
 BEGIN {
        mlistregex = "memory_list_(.*)\\[\\]";
-       mtyperegex = "^(MTYPE_[A-Z_0-9]+).*";
+       mtyperegex = "^(MTYPE_[[:upper:]_[:digit:]]+).*";
        header = "/* Auto-generated from memtypes.c by " ARGV[0] ". */\n";
        header = header "/* Do not edit! */\n";
        header = header "\n#ifndef _QUAGGA_MEMTYPES_H\n";