summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-02-04 18:02:44 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-02-04 18:02:44 (GMT)
commitf376c26e3dbe33a773a2f424df4b9c62c8c880ef (patch)
tree0079dfe633e79bae80c0743850c85fb68f276f60 /src/pre.l
parent1c75d01c701209261a5b6af831280957681e557f (diff)
downloadDoxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.zip
Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.gz
Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.bz2
Release-1.2.5
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index 59b542d..e3e378c 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -821,6 +821,21 @@ void addDefine()
md->setArgumentList(argList);
}
//printf("Setting initializer for `%s' to `%s'\n",g_defName.data(),g_defText.data());
+ int l=g_defLitText.find('\n');
+ if (l>0 && g_defLitText.left(l).stripWhiteSpace()=="\\")
+ {
+ // strip first line if it only contains a slash
+ g_defLitText = g_defLitText.right(g_defLitText.length()-l-1);
+ }
+ else if (l>0)
+ {
+ // align the items on the first line with the items on the second line
+ int k=l+1;
+ const char *p=g_defLitText.data()+k;
+ char c;
+ while ((c=*p++) && (c==' ' || c=='\t')) k++;
+ g_defLitText=g_defLitText.mid(l+1,k-l-1)+g_defLitText.stripWhiteSpace();
+ }
md->setInitializer(g_defLitText);
//md->setDefFile(g_yyFileName);