summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-04 18:02:44 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-04 18:02:44 (GMT)
commit1b90a1cf58b6b94d00e28d8212828956e8f9d177 (patch)
tree0079dfe633e79bae80c0743850c85fb68f276f60 /src/pre.l
parentf676cb79536e8d4d7a7dc2fb83b757065939eefb (diff)
downloadDoxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.zip
Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.gz
Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.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);