summaryrefslogtreecommitdiffstats
path: root/src/message.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-09-18 19:25:32 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-09-18 19:25:32 (GMT)
commitdb36de70fc9090e26c22ab288492407becb3a95e (patch)
treeb25e22f178d0e6d1ebb7e74f2348e9811a2f5394 /src/message.cpp
parent3b98221d43ba62088538ead3aa726f81dd9202f9 (diff)
downloadDoxygen-db36de70fc9090e26c22ab288492407becb3a95e.zip
Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.gz
Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.bz2
Release-1.4.4-20050918
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/message.cpp b/src/message.cpp
index a946877..1ff261c 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -135,30 +135,22 @@ static void do_warn(const char *tag, const char *file, int line, const char *fmt
substitute(
substitute(
substitute(
- substitute(
- outputFormat,
- "$file",fileSubst
+ substitute(
+ substitute(
+ outputFormat,
+ "$file",fileSubst
+ ),
+ "$text",textSubst
),
- "$text",textSubst
+ "$line",lineSubst
),
- "$line",lineSubst
+ "$version",versionSubst
),
- "$version",versionSubst
+ "%","%%"
)+'\n';
// print resulting message
fprintf(warnFile,msgText);
-// switch(warnFormatOrder)
-// {
-// case 1: fprintf(warnFile,outputFormat,file,line,text); break;
-// case 2: fprintf(warnFile,outputFormat,text,line,file); break;
-// case 3: fprintf(warnFile,outputFormat,line,text,file); break;
-// case 4: fprintf(warnFile,outputFormat,file,text,line); break;
-// case 5: fprintf(warnFile,outputFormat,text,file,line); break;
-// case 6: fprintf(warnFile,outputFormat,line,file,text); break;
-// default:
-// printf("Error: warning format has not been initialized!\n");
-// }
}
void warn(const char *file,int line,const char *fmt, ...)