remove stupid inlines
[apps/pfixtools.git] / tokens.sh
index e402f48..cb38611 100755 (executable)
--- a/tokens.sh
+++ b/tokens.sh
@@ -46,8 +46,8 @@ EOF
 do_h() {
     do_hdr
     cat <<EOF
-#ifndef POSTLICYD_TOKENS_H
-#define POSTLICYD_TOKENS_H
+#ifndef PFIXTOOLS_TOKENS_H
+#define PFIXTOOLS_TOKENS_H
 
 typedef enum postlicyd_token {
     PTK_UNKNOWN = -1,
@@ -70,7 +70,8 @@ do_tokens() {
 }
 
 do_c() {
-    cat <<EOF | gperf -m16 -l -t -C -F",0" -Ntokenize_aux
+    cat <<EOF | gperf -m16 -l -t -C -F",0" -Ntokenize_aux | \
+        sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g'
 %{
 `do_hdr`