Simplifications.
[apps/madmutt.git] / charset.def
index 60070e0..3d0e89e 100644 (file)
@@ -1,4 +1,4 @@
-cat <<EOF | gperf -Ncharset_canonicalize_aux -m16 -l -t -C -F", NULL"
+cat <<EOF | gperf -Ncharset_canonicalize_aux -m16 -l -E -t -C -F", NULL" | sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g'
 %{
 /*
  *  This program is free software; you can redistribute it and/or modify
@@ -31,6 +31,9 @@ cat <<EOF | gperf -Ncharset_canonicalize_aux -m16 -l -t -C -F", NULL"
  * encoding name, hence you have to pass a charset stripped from its '-' and
  * '_' and truncated at the first ':' encountered.
  */
+
+static const struct cset_pair *
+charset_canonicalize_aux(const char *str, unsigned int len);
 %}
 struct cset_pair { const char *name; const char *pref; };
 %%