Commit 06e581df authored by Pekka Pessi's avatar Pekka Pessi

--enable-experimental: fixed generating %tag_ref.c

darcs-hash:20070202183637-65a35-147fbd57625d981f2b625065daf384d1439840cc.gz
parent 5cf66f52
......@@ -158,8 +158,8 @@ function protos (name, comment, hash, since)
}
expr = (without_experimental > 0 && do_hash);
if (without_experimental > 0) {
printf "%s is %sexperimental\n", Comment, expr ? "" : "not ";
if (expr) {
printf "%s is experimental\n", Comment;
}
experimental[N] = expr;
......@@ -235,7 +235,7 @@ function process_footer (text)
print "#if SU_HAVE_EXPERIMENTAL" > PR;
}
else {
print "#endif" > PR;
print "#endif /* SU_HAVE_EXPERIMENTAL */" > PR;
}
}
gsub(/#hash#/, hashes[j], l);
......@@ -248,7 +248,7 @@ function process_footer (text)
}
if (expr) {
print "#endif" > PR;
print "#endif /* SU_HAVE_EXPERIMENTAL */" > PR;
}
} else {
print l > PR;
......@@ -466,7 +466,7 @@ END {
}
if (total - without_experimental > 0) {
print "#if SU_HAVE_EXPERIMENTAL" > PT;
printf(" msg_header_t *extra[%u];\n",
printf(" msg_header_t *experimental[%u];\n",
total - without_experimental) > PT;
print "#endif" > PT;
}
......
......@@ -110,6 +110,11 @@ HEADER {
print "" > DLL;
}
/SU_HAVE_EXPERIMENTAL/ {
print $0 > REF;
print $0 > DLL;
}
!DEFS && /^tag_typedef_t/ { DEFS = 1; }
DEFS && /tag_typedef_t/ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment