make the generation of mime-token.[hc] a bit more effficient.
authorPierre Habouzit <madcoder@debian.org>
Tue, 14 Nov 2006 22:40:06 +0000 (23:40 +0100)
committerPierre Habouzit <madcoder@debian.org>
Tue, 14 Nov 2006 22:40:06 +0000 (23:40 +0100)
lib-mime/mime-token.sh

index bb55179..17ed4c1 100644 (file)
@@ -49,7 +49,7 @@ EOF
 }
 
 do_c() {
-    cat <<EOF | gperf --ignore-case -l -t -C -F,0
+    cat <<EOF | gperf --ignore-case -m16 -l -t -C -F",0" -Nmime_which_token_aux
 %{
 `do_hdr`
 
@@ -70,7 +70,7 @@ enum mime_token mime_which_token(const char *s, ssize_t len) {
     if (!len)
         return MUTT_MIME_TOKEN_UNKNOWN;
 
-    res = in_word_set(s, len);
+    res = mime_which_token_aux(s, len);
     return res ? res->val : MUTT_MIME_TOKEN_UNKNOWN;
 }
 EOF