diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-06-17 19:53:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-06-17 19:53:53 (GMT) |
commit | d3c3bbd02543280d12a763d82aa5b54ce516c57f (patch) | |
tree | e215fcacfb74cc58f4d27e30b9722efd930d7a7a /src/config.l | |
parent | f309c3c0e7c1cf29df6b850e19d647e93a30ce28 (diff) | |
download | Doxygen-d3c3bbd02543280d12a763d82aa5b54ce516c57f.zip Doxygen-d3c3bbd02543280d12a763d82aa5b54ce516c57f.tar.gz Doxygen-d3c3bbd02543280d12a763d82aa5b54ce516c57f.tar.bz2 |
Release-1.3.7-20040617
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/config.l b/src/config.l index 7db22c9..59260ea 100644 --- a/src/config.l +++ b/src/config.l @@ -660,9 +660,8 @@ static void writeStringList(QTextStream &t,QStrList &l) } #endif -void Config::writeTemplate(QFile *f,bool sl,bool upd) +void Config::writeTemplate(QTextStream &t,bool sl,bool upd) { - QTextStream t(f); t << "# Doxyfile " << versionString << endl << endl; if (!sl) { @@ -1708,8 +1707,12 @@ void Config::create() "file names in lower-case letters. If set to YES upper-case letters are also \n" "allowed. This is useful if you have classes or files whose names only differ \n" "in case and if your file system supports case sensitive file names. Windows \n" - "users are advised to set this option to NO.\n", - TRUE + "and Mac users are advised to set this option to NO.\n", +#if defined(_WIN32) || defined(macintosh) || defined(__MACOSX__) || defined(__APPLE__) + FALSE // case insensitive file system expected +#else + TRUE // case sensitive file system expected +#endif ); cb = addBool( "HIDE_SCOPE_NAMES", @@ -2824,15 +2827,13 @@ static QCString configFileToString(const char *name) return ""; } - -bool Config::parse(const char *fn) +bool Config::parseString(const char *fn,const char *str) { - QCString contents = configFileToString(fn); config = Config::instance(); - inputString = contents.data(); + inputString = str; inputPosition = 0; + yyFileName = fn; yyLineNr = 1; - yyFileName=fn; includeStack.setAutoDelete(TRUE); includeStack.clear(); includeDepth = 0; @@ -2843,6 +2844,11 @@ bool Config::parse(const char *fn) return TRUE; } +bool Config::parse(const char *fn) +{ + return parseString(fn,configFileToString(fn)); +} + extern "C" { // some bogus code to keep the compiler happy //int configYYwrap() { return 1 ; } } |