bad typing
[apps/pfixtools.git] / tokens.sh
index 9a1faaf..65376ea 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`
 
@@ -123,8 +124,8 @@ exit 0
 ############ Put tokens here ############
 # postfix 2.1+
 ## request
+## protocol_name
 ## protocol_state
-## protocol_esmtp
 ## helo_name
 ## queue_id
 ## sender
@@ -132,7 +133,7 @@ exit 0
 ## recipient_count
 ## client_address
 ## client_name
-## rclient_name
+## reverse_client_name
 ## instance
 #
 # postfix 2.2+
@@ -149,3 +150,21 @@ exit 0
 ## encryption_cipher
 ## encryption_keysize
 ## etrn_domain
+#
+# request value
+## smtpd_access_policy
+#
+# protocol_name values
+## SMTP
+## ESMTP
+#
+# protocol_state values
+## CONNECT
+## EHLO
+## HELO
+## MAIL
+## RCPT
+## DATA
+## END-OF-MESSAGE
+## VRFY
+## ETRN