Commit 04f76cd9 authored by Pekka Pessi's avatar Pekka Pessi

msg_parser.awk was printing spurious errors by SIP-ETag header etc.

darcs-hash:20060308154544-65a35-0e6102649003562e356f3385f3ae8ebb1c2e7768.gz
parent e0f5aa56
......@@ -58,7 +58,9 @@ BEGIN {
template="";
template1="";
template2="";
template3=="";
template3="";
prefix="";
tprefix="";
}
function name_hash (name)
......@@ -108,7 +110,7 @@ function protos (name, comment, hash)
split(comment, parts, " ");
name2 = tolower(parts[1]);
gsub(/-/, "_", name2);
if (name2 != name) {
if (name2 != name && name2 != tprefix "_" name) {
print name " mismatch with " comment " (" real ")" > "/dev/stderr";
}
......@@ -234,6 +236,10 @@ function read_header_flags (flagfile, line, tokens, name, value)
if (!auto) {
auto = FILENAME;
if (!prefix) { prefix = module; }
if (!tprefix) { tprefix = prefix; }
sub(/.*\//, "", auto);
auto = "This file is automatically generated from <" auto "> by msg_parser.awk.";
......@@ -308,9 +314,6 @@ in_header_list && /^ (sip|rtsp|http|msg|mp)_[a-z_0-9]+_t/ {
}
END {
if (!prefix) { prefix = module; }
if (!tprefix) { tprefix = prefix; }
if (!NO_LAST) {
protos("unknown", "/**< Unknown headers */", -3);
protos("error", "/**< Erroneous headers */", -4);
......
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