Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / postconf / auto.awk
blob74e6401af4130a901eefa1ddf6b46514dd7cb8db
1 BEGIN {
3 split("local lmtp relay smtp virtual", transports)
5 vars["destination_concurrency_failed_cohort_limit"] = "default_destination_concurrency_failed_cohort_limit"
6 vars["destination_concurrency_limit"] = "default_destination_concurrency_limit"
7 vars["destination_concurrency_negative_feedback"] = "default_destination_concurrency_negative_feedback"
8 vars["destination_concurrency_positive_feedback"] = "default_destination_concurrency_positive_feedback"
9 vars["destination_recipient_limit"] = "default_destination_recipient_limit"
10 vars["initial_destination_concurrency"] = "initial_destination_concurrency"
11 vars["destination_rate_delay"] = "default_destination_rate_delay"
13 # auto_table.h
15 for (var in vars) {
16 for (transport in transports) {
17 if (transports[transport] != "local" || (var != "destination_recipient_limit" && var != "destination_concurrency_limit"))
18 print "\"" transports[transport] "_" var "\", \"$" vars[var] "\", &var_" transports[transport] "_" var ", 0, 0," > "auto_table.h"
20 print "" > "auto_table.h"
23 # auto_vars.h
25 for (var in vars) {
26 for (transport in transports) {
27 if (transports[transport] != "local" || (var != "destination_recipient_limit" && var != "destination_concurrency_limit"))
28 print "char *var_" transports[transport] "_" var ";" > "auto_vars.h"
30 print "" > "auto_vars.h"
32 exit(0)