summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-06-23 09:46:45 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-06-23 09:46:45 (GMT)
commitc454a5400393a54586d81517c42f7419b43b3f23 (patch)
treec485ad24b61429cd10455b2d438236483a47c189 /src/doxygen.cpp
parent784e2b65dc675f89c8f21b3c7b306f5fb1bfa4ca (diff)
downloadDoxygen-c454a5400393a54586d81517c42f7419b43b3f23.zip
Doxygen-c454a5400393a54586d81517c42f7419b43b3f23.tar.gz
Doxygen-c454a5400393a54586d81517c42f7419b43b3f23.tar.bz2
Release-1.2.16-20020623
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 0322193..ba0fc99 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -6350,31 +6350,36 @@ static void readFiles(BufStr &output)
int fileNameSize=fileName.length();
+ bool multiLineIsBrief = Config_getBool("MULTILINE_CPP_IS_BRIEF");
+
BufStr tempBuf(10000);
+ BufStr *bufPtr = multiLineIsBrief ? &tempBuf : &output;
// add begin filename marker
- tempBuf.addChar(0x06);
+ bufPtr->addChar(0x06);
// copy filename
- tempBuf.addArray(fileName.data(),fileNameSize);
+ bufPtr->addArray(fileName.data(),fileNameSize);
// add end filename marker
- tempBuf.addChar(0x06);
- tempBuf.addChar('\n');
+ bufPtr->addChar(0x06);
+ bufPtr->addChar('\n');
if (Config_getBool("ENABLE_PREPROCESSING"))
{
msg("Preprocessing %s...\n",s->data());
- preprocessFile(fileName,tempBuf);
+ preprocessFile(fileName,*bufPtr);
}
else
{
msg("Reading %s...\n",s->data());
- copyAndFilterFile(fileName,tempBuf);
+ copyAndFilterFile(fileName,*bufPtr);
}
- tempBuf.addChar('\n'); /* to prevent problems under Windows ? */
+ bufPtr->addChar('\n'); /* to prevent problems under Windows ? */
- convertCppComments(&tempBuf,&output);
- //output.addArray(tempBuf.data(),tempBuf.curPos());
+ if (multiLineIsBrief)
+ {
+ convertCppComments(&tempBuf,&output);
+ }
s=inputFiles.next();
//printf("-------> adding new line\n");