summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Optimize performance by using FILE* instead of ofstream for outputgenDimitri van Heesch2021-04-271-0/+5
|
* Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-1/+1
| | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
* Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-56/+53
| | | | | | | | | | | | | | | | | This commit changes the following in relation to string use - The implicit convert from 'QCString' to 'const char *' is removed - Strings parameters use 'const QCString &' as much as possible in favor over 'const char *' - 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())' - data() now always returns a valid C-string and not a 0-pointer. - when passing a string 's' to printf and related functions 'qPrint(s)' is used instead of 's.data()' - for empty string arguments 'QCString()' is used instead of '0' - The copy() operation has been removed - Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and 'qstrcmp(a,b)<0' has been replaced by 'a<b' - Parameters of string type that were default initialized with '= 0' are no initialized with '= QCString()'
* Fix macro redefinition warning for windows buildDimitri van Heesch2021-03-261-0/+1
|
* Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-7/+41
|
* Refactoring: Replaced QDir with DirDimitri van Heesch2021-03-181-4/+4
| | | | | - Dir is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
* Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-3/+5
| | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
* Refactoring: some cleanup and removed text direction logicDimitri van Heesch2021-03-041-2/+0
|
* Refactoring: modernize Statistics & time keepingDimitri van Heesch2021-01-221-17/+19
|
* Using f() instead f(void) in C++ , consistencyalbert-github2020-10-021-11/+11
| | | | Seen the discussion in the pull request #8069, for consistency change occurrences of f(void) into f().
* Enabled stricter compiler warnings and fixed all new warningsDimitri van Heesch2020-03-081-10/+2
|
* Creation of svg images for formulas with inkscapealbert-github2020-02-151-1/+13
| | | | | | | Based on the implementation as mentioned in #7578 to add the possibilities to generated svg images for formulas - When running with inkscape 92.3 / 92.4 on Cygwin /Windows there were no images generated as the `-o` flag didn't exist, the output file had to be specified as part of the `-l` (or `--export-plain-svg`) option - For more flexibility the system is checked on existence of the `pdf2svg` and `inkscape` executables, so no compilations flags are necessary
* Improve formula handling and rendering.Dimitri van Heesch2020-02-121-0/+9
| | | | Also added option HTML_FORMULA_FORMAT to generate SVG files for images (requires pdf2svg)
* Possibility to use gswin64c on Windowsalbert-github2020-01-071-1/+50
| | | | | On windows the 32 bit executable is called gswin32c, but for the 64-bit systems also a gswin64c exists. The path is checked for the existing of these executables (with a preference for the 32 bit version).
* Small spelling correction in portable.cppalbert-github2020-01-031-1/+1
| | | | Small spelling correction in portable.cpp
* Fix for use of non portable strnstr function (part 2)Dimitri van Heesch2019-12-231-2/+30
|
* Fix for use of non portable strnstr functionDimitri van Heesch2019-12-231-0/+15
|
* Renamed Portables to PortableDimitri van Heesch2019-12-081-26/+26
|
* Refactoring of portable.h and portable.cpp functions to be contained in a ↵Tobias Off2019-11-281-127/+107
| | | | | | namespace Fixing some memory issues caused by not correctly freed pointers
* HHC and directory elements starting with "."albert-github2019-11-151-0/+17
| | | | | | | | | Based on the question 'Doxygen failed to run html help compiler, hhc.exe error HHC5010 when running from folder that has a parent folder that starts with “.”/ (https://stackoverflow.com/questions/58861908/doxygen-failed-to-run-html-help-compiler-hhc-exe-error-hhc5010-when-running-fro). In we https://social.msdn.microsoft.com/Forums/en-US/0681145c-223b-498c-b7bf-be83209cbf4e/issue-with-html-workshop-in-a-windows-container?forum=visualstudiogeneral see: HTML Help 1.x command line compiler hhc.exe cannot compile CHM file to folder whose full path contains folder name starting with dot. If you have that problem, you probably specified output path with folder starting with dot, e.g. "d:\My files.NET\documentation". You can use dots in folder names but not at the beginning. We first convert the current path to a short name path and set this as current directory, this is only done on Windows other systems are not touched.
* Fix typosluz.paz2019-09-281-1/+1
| | | | | | Found via ``` codespell -q 3 -S *.js,*.po,./src/translator*,*.eps,./doc/changelog.doc -L ang,ans,attribs,ba,behaviour,classe,colour,german,iff,initialise,nam,nd,que,russian,statics,te,tim,uint ```
* Bug 796582 - Doxygen has stopped workingalbert-github2019-06-171-0/+1
| | | | | In (the rare) case the path is not set don't try to use the pointer. regression on pull request #513
* Merge pull request #7056 from albert-github/feature/bug_cygwin_defaultsDimitri van Heesch2019-06-161-1/+1
|\ | | | | Cygwin should by default also have `CASE_SENSE_NAMES=NO`
| * Cygwin should by default also have `CASE_SENS_NAMES=NO`albert-github2019-06-151-1/+1
| | | | | | | | | | Cygwin should by default also have `CASE_SENS_NAMES=NO` like is the case for the underlying Windows. In case of Cygwin the define `_WIN32` is not set so we also have to test for `__CYGWIN__`
* | Fix for race conditions introduced when refactoring dot classes.Dimitri van Heesch2019-06-151-0/+10
|/
* Keyword register (in code) is deprecated since C++11albert-github2018-11-271-2/+2
| | | | | | The keyword `register` is deprecated since C++11: - for the Darwin platform it was already filtered (-Wno-deprecated-register) - CLan emits: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
* Added missing #include for util.h to portable.cppDimitri van Heesch2018-07-181-1/+1
|
* Added substitution variant for character substitutionDimitri van Heesch2018-07-171-27/+5
|
* Remove debug statementalbert-github2018-05-041-1/+0
|
* Path for external commands on windowsalbert-github2018-04-111-1/+18
| | | | | | In case a path in the name of an executable contains one or more '/' characters they are replaced by a '\'. - inspired by the cause for bug 766059 - https://stackoverflow.com/questions/49750869/what-is-the-qhg-location-path-relative-to-for-doxygen
* Fixes for cross platform build with new LLVM/CLANG versionDimitri van Heesch2017-08-201-0/+1
|
* Added missing freeDimitri van Heesch2016-09-031-0/+1
|
* Bug 766059 - DOT_PATH not expandedalbert-github2016-09-011-1/+23
| | | | | | The original problem in this bug request was that forward slashes were used in the PATH instead of backslashes. In the command shell this does not result in problems, but when calling a program from within doxygen this leads to the problem that the executable cannot be found. In this patch the PATH variable is, just for the process, changed in such a way that ther are back slashes instead of forward slashes (Windows only, not on Cygwin).
* Guarded debug prints against printing a NULL pointer.Dimitri van Heesch2015-04-061-1/+1
|
* Remove unused local and static global variablesalbert-github2014-12-271-1/+4
| | | | Remove unused local and static global variables. Variables have been identified by Understand (version 758) from Scitools.
* Bug 735929 - [PATCH] Windows: Process exit code is ignored for processes ↵Dimitri van Heesch2014-09-231-1/+7
| | | | launched using ShellExecuteEx()
* Report details about fork() failure in logs.pianofab2013-12-111-1/+5
| | | When parsing a large codebase dot failed to start. Adding this line helped narrow down the issue. Increasing my VirtualBox VM RAM size worked around the issue. A proper fix would be to spawn separate processes without using fork() so they don't start with the giant address space used by the current process.
* Bug 705217 - Can't use unicode characters to execute external commandsDimitri van Heesch2013-08-011-6/+10
|
* Release-1.8.3.1Dimitri van Heesch2013-01-201-8/+12
|
* Release-1.8.3Dimitri van Heesch2012-12-261-0/+19
|
* Release-1.8.2-20120930Dimitri van Heesch2012-09-301-2/+3
|
* Release-1.8.1.2-20120729Dimitri van Heesch2012-07-291-1/+1
|
* Release-1.7.6.1-20111226Dimitri van Heesch2011-12-261-0/+1
|
* Release-1.7.5.1-20111027Dimitri van Heesch2011-10-271-0/+8
|
* Release-1.7.1Dimitri van Heesch2010-06-251-5/+5
|
* Release-1.7.0Dimitri van Heesch2010-06-151-0/+11
|
* Release-1.6.3-20100603Dimitri van Heesch2010-06-031-5/+19
|
* Release-1.6.2-20100124Dimitri van Heesch2010-01-241-0/+1
|
* Release-1.5.9-20090720Dimitri van Heesch2009-07-201-0/+5
|
* Release-1.5.8-20090304Dimitri van Heesch2009-03-041-29/+0
|