2019-01-01 18:01:34 +00:00
|
|
|
CppParsingTree.cpp:113:22: error: 'atoi' was not declared in this scope
|
|
|
|
|
Index: CppParsingTree.cpp
|
|
|
|
|
--- CppParsingTree.cpp.orig
|
|
|
|
|
+++ CppParsingTree.cpp
|
2021-02-26 18:20:31 +00:00
|
|
|
@@ -25,6 +25,7 @@ To contact the author: codeworker@free.fr
|
|
|
|
|
|
|
|
|
|
#ifndef WIN32
|
|
|
|
|
# include <cstdio> // for Debian/gcc 2.95.4
|
|
|
|
|
+# include <stdlib.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "ScpStream.h"
|
2023-11-15 14:23:49 +00:00
|
|
|
@@ -246,17 +247,29 @@ namespace CodeWorker {
|
|
|
|
|
return _pInternalNode->getSortedArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+#if defined(__clang__) && (__clang_major__ >= 16)
|
|
|
|
|
+ std::unique_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedNoCaseArray() const {
|
|
|
|
|
+#else
|
|
|
|
|
std::auto_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedNoCaseArray() const {
|
|
|
|
|
+#endif
|
|
|
|
|
if (_pInternalNode == NULL) return std::auto_ptr<std::vector<DtaScriptVariable*> >(new std::vector<DtaScriptVariable*>());
|
|
|
|
|
return _pInternalNode->getSortedNoCaseArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+#if defined(__clang__) && (__clang_major__ >= 16)
|
|
|
|
|
+ std::unique_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedArrayOnValue() const {
|
|
|
|
|
+#else
|
|
|
|
|
std::auto_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedArrayOnValue() const {
|
|
|
|
|
+#endif
|
|
|
|
|
if (_pInternalNode == NULL) return std::auto_ptr<std::vector<DtaScriptVariable*> >(new std::vector<DtaScriptVariable*>());
|
|
|
|
|
return _pInternalNode->getSortedArrayOnValue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+#if defined(__clang__) && (__clang_major__ >= 16)
|
|
|
|
|
+ std::unique_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedNoCaseArrayOnValue() const {
|
|
|
|
|
+#else
|
|
|
|
|
std::auto_ptr<std::vector<DtaScriptVariable*> > CppParsingTree_var::getSortedNoCaseArrayOnValue() const {
|
|
|
|
|
+#endif
|
|
|
|
|
if (_pInternalNode == NULL) return std::auto_ptr<std::vector<DtaScriptVariable*> >(new std::vector<DtaScriptVariable*>());
|
|
|
|
|
return _pInternalNode->getSortedNoCaseArrayOnValue();
|
|
|
|
|
}
|