mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
uppsrc: NAMESPACE_UPP / END_UPP_NAMESPACE removed
git-svn-id: svn://ultimatepp.org/upp/trunk@10186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b49cd89804
commit
8ebdcbb0d5
679 changed files with 1372 additions and 1381 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
||||
|
|
@ -362,4 +362,4 @@ void CSyntax::Highlight(const wchar *ltext, const wchar *e, HighlightOutput& hls
|
|||
hls.SetPaper(0, hls.v.GetCount(), hl_style[PAPER_IFDEF].color);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
Vector <Index<String> > CSyntax::keyword;
|
||||
Vector <Index<String> > CSyntax::name;
|
||||
|
|
@ -353,4 +353,4 @@ int CSyntax::LoadSyntax(const char *keywords[], const char *names[]) // Changed
|
|||
return keyword.GetCount() - 1;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void CSyntax::IndentInsert(CodeEditor& e, int chr, int count)
|
||||
{
|
||||
|
|
@ -205,4 +205,4 @@ void CSyntax::CheckSyntaxRefresh(CodeEditor& e, int pos, const WString& text)
|
|||
e.Refresh();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void CreateCSyntax(One<EditorSyntax>& e, int kind)
|
||||
{
|
||||
|
|
@ -62,4 +62,4 @@ INITBLOCK
|
|||
EditorSyntax::Register("log", callback(CreateLogSyntax), "*.log *.info", "Log (*.log)");
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
const wchar *eatstring(const wchar *s) {
|
||||
int delim = *s++;
|
||||
|
|
@ -347,4 +347,4 @@ void CSyntax::Serialize(Stream& s)
|
|||
s % highlight;
|
||||
};
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
|
@ -1063,4 +1063,4 @@ CodeEditor::CodeEditor() {
|
|||
|
||||
CodeEditor::~CodeEditor() {}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <plugin/pcre/Pcre.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LAYOUTFILE <CodeEditor/CodeEditor.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
|
@ -514,6 +514,6 @@ public:
|
|||
String ReadList(WithDropChoice<EditString>& e);
|
||||
void WriteList(WithDropChoice<EditString>& e, const String& data);
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
DiffSyntax::DiffSyntax()
|
||||
{
|
||||
|
|
@ -91,4 +91,4 @@ bool DiffSyntax::IsPattern(const wchar *current, const wchar *end, String patter
|
|||
return (containing && (i == pattern.GetCount()));
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void Renumber(LineInfo& lf)
|
||||
{
|
||||
|
|
@ -530,4 +530,4 @@ void SetError(LineInfo& li, int line, int err)
|
|||
li.At(line).error = err;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void CodeEditor::InitFindReplace()
|
||||
{
|
||||
|
|
@ -892,4 +892,4 @@ void CodeEditor::FindPrev()
|
|||
FindPrevNext(true);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
HighlightOutput::HighlightOutput(Vector<LineEdit::Highlight>& v)
|
||||
: v(v)
|
||||
|
|
@ -130,4 +130,4 @@ const wchar *HighlightOutput::CString(const wchar *p)
|
|||
return p;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
Array<IdentPos> GetLineIdent(const char *line)
|
||||
{
|
||||
|
|
@ -201,4 +201,4 @@ bool CodeEditor::FindLangString(bool back)
|
|||
return false;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
inline bool Is3(const wchar *s, int c)
|
||||
{
|
||||
|
|
@ -76,4 +76,4 @@ void LogSyntax::Highlight(const wchar *s, const wchar *end, HighlightOutput& hls
|
|||
hls.SetPaper(0, hls.GetCount(), hl_style[PAPER_BLOCK2].color);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
PythonSyntax::PythonSyntax() {}
|
||||
|
||||
|
|
@ -216,4 +216,4 @@ char PythonSyntax::GetIdentationByType(Identation::Type type)
|
|||
return '\t';
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
ArrayMap<String, EditorSyntax::SyntaxDef>& EditorSyntax::defs()
|
||||
{
|
||||
|
|
@ -37,4 +37,4 @@ String EditorSyntax::GetSyntaxForFilename(const char *fn)
|
|||
return Null;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
HlStyle HighlightSetup::hl_style[HL_COUNT];
|
||||
byte HighlightSetup::hilite_scope = 0;
|
||||
|
|
@ -172,4 +172,4 @@ void HighlightSetup::DefaultHlStyles()
|
|||
SetHlStyle(WARN_WHITESPACE, Blend(SColorLight, SRed));
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void EditorSyntax::Clear()
|
||||
{
|
||||
|
|
@ -56,4 +56,4 @@ void EditorSyntax::CheckSyntaxRefresh(CodeEditor& e, int pos, const WString& tex
|
|||
|
||||
EditorSyntax::~EditorSyntax() {}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CodeEditor.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
TagSyntax::TagSyntax()
|
||||
{
|
||||
|
|
@ -302,4 +302,4 @@ void TagSyntax::Serialize(Stream& s)
|
|||
% html;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#undef CY
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef PLATFORM_WIN32
|
||||
|
||||
|
|
@ -662,4 +662,4 @@ String GetDownloadFolder() { return GetShellFolder("XDG_DOWNLOAD_DIR", "XDG_DOW
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LDUMP(x) // DUMP(x)
|
||||
|
|
@ -518,4 +518,4 @@ bool FileOut::Open(const char *fn, mode_t acm)
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static void sLoadBom(Stream& in, String *t, WString *wt, byte def_charset)
|
||||
{
|
||||
|
|
@ -124,4 +124,4 @@ bool SaveFileBOMUtf8(const char *path, const String& data)
|
|||
return SaveStreamBOMUtf8(out, data);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
|
||||
|
|
@ -2846,4 +2846,4 @@ String ToAscii(const String& s, byte charset)
|
|||
return r;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _MULTITHREADED
|
||||
|
||||
|
|
@ -251,5 +251,5 @@ CoWork::~CoWork()
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void RGBtoHSV(double r, double g, double b, double& h, double& s, double& v)
|
||||
{
|
||||
|
|
@ -186,4 +186,4 @@ bool IsLight(Color c)
|
|||
return Grayscale(c) > 255 - 80;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
unsigned stou(const char *s, void *endptr, unsigned base)
|
||||
{
|
||||
|
|
@ -605,4 +605,4 @@ Value FormatConvert::Format(const Value& v) const
|
|||
return UPP::Format(format, va.Get());
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -231,19 +231,12 @@ namespace std {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
namespace Upp {};
|
||||
|
||||
#ifdef flagNONAMESPACE
|
||||
#define NAMESPACE_UPP
|
||||
#define END_UPP_NAMESPACE
|
||||
#define UPP
|
||||
#else
|
||||
// deprecated, use 'namespace' directly instead of macros
|
||||
#define NAMESPACE_UPP namespace Upp {
|
||||
#define END_UPP_NAMESPACE };
|
||||
#define END_UPP_NAMESPACE }
|
||||
#define UPP Upp
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifndef flagNODEPRECATED
|
||||
#define DEPRECATED
|
||||
|
|
@ -343,7 +336,7 @@ NTL_MOVEABLE(SIZE)
|
|||
NTL_MOVEABLE(RECT)
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#if (defined(TESTLEAKS) || defined(HEAPDBG)) && defined(COMPILER_GCC) && defined(UPP_HEAP)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef CPU_X86
|
||||
|
||||
|
|
@ -174,4 +174,4 @@ void EndianSwap(int *v, size_t count) ENDIAN_SWAP
|
|||
void EndianSwap(int64 *v, size_t count) ENDIAN_SWAP
|
||||
void EndianSwap(uint64 *v, size_t count) ENDIAN_SWAP
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LTIMING(x) // TIMING(x)
|
||||
|
||||
|
|
@ -294,14 +294,14 @@ dword _DBG_Value_GetType(Value const &v) { return v.GetType(); }
|
|||
String _DBG_Value_AsString(Value const &v) { return AsString(v); }
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#if defined(__GNUG__) && defined(PLATFORM_POSIX)
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <cxxabi.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
struct cpp_demangle_handle__ {
|
||||
char* p;
|
||||
|
|
@ -315,17 +315,17 @@ String CppDemangle(const char* name) {
|
|||
return (status==0) ? result.p : name ;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
String CppDemangle(const char* name) {
|
||||
return TrimLeft("struct ", TrimLeft("class ", name));
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ typedef void *DLLHANDLE;
|
|||
|
||||
#include <winnt.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
class PeFile
|
||||
{
|
||||
|
|
@ -101,7 +101,7 @@ const char *PeFile::FindExportRaw(const char *name, bool case_sensitive) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
HMODULE CheckDll__(const char *fn, const char *const *names, UPP::Vector<void *>& plist)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static int sMappingGranularity_()
|
||||
{
|
||||
|
|
@ -228,4 +228,4 @@ String FileMapping::GetData(int64 offset, int len)
|
|||
}
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
InFilterStream::InFilterStream()
|
||||
{
|
||||
|
|
@ -172,4 +172,4 @@ void OutFilterStream::Out(const void *ptr, int size)
|
|||
out->Put(ptr, size);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include "Core.h"
|
||||
//#BLITZ_APPROVE
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
// Old format ---------------------------
|
||||
|
||||
|
|
@ -1224,4 +1224,4 @@ String DeFormat(const char *text)
|
|||
return x;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
//template <>
|
||||
//void Rect_<double>::Union(const Rect_<double>& r) {
|
||||
|
|
@ -161,4 +161,4 @@ double Bearing(const Pointf& p)
|
|||
return atan2(p.y, p.x);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma inline_depth(255)
|
||||
|
|
@ -359,4 +359,4 @@ void Bits::Set(int i, bool b)
|
|||
bp[q] = (bp[q] & ~(1 << i)) | (b << i);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
namespace Ini {
|
||||
INI_BOOL(HttpRequest_Trace, false, "Activates HTTP requests tracing")
|
||||
|
|
@ -901,4 +901,4 @@ String HttpRequest::GetPhaseName() const
|
|||
return phase >= 0 && phase <= FAILED ? m[phase] : "";
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static const char *s_www_month[] = {
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
|
||||
|
|
@ -725,4 +725,4 @@ void UrlInfo::Parse(const String& url_)
|
|||
}
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
Value ParseJSON(CParser& p)
|
||||
{
|
||||
|
|
@ -368,4 +368,4 @@ String sJsonFile(const char *file)
|
|||
return file ? String(file) : ConfigFile(GetExeTitle() + ".json");
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) LOG(x)
|
||||
|
||||
|
|
@ -175,4 +175,4 @@ String GetNativeLangName(int language) {
|
|||
return GetLanguageInfo(language).native_name.ToString();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef PLATFORM_POSIX
|
||||
//#BLITZ_APPROVE
|
||||
|
|
@ -642,4 +642,4 @@ String Sys(const char *cmd, const Vector<String>& arg, bool convertcharset)
|
|||
return Sys(cmd, arg, r, convertcharset) ? String::GetVoid() : r;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
StaticCriticalSection log_mutex;
|
||||
|
||||
|
|
@ -483,4 +483,4 @@ namespace Ini {
|
|||
INI_BOOL(user_log, false, "Activates logging of user actions");
|
||||
};
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define MD5_CTX UPP_MD5_CTX
|
||||
|
||||
|
|
@ -390,4 +390,4 @@ String MD5StringS(const String& data)
|
|||
return MD5StringS(~data, data.GetCount());
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static Tuple<const char *, const char *> sEXT_MIME[] = {
|
||||
{ "txt", "text/plain" },
|
||||
|
|
@ -242,4 +242,4 @@ String MIMEToFileExt(const String& mime)
|
|||
return q >= 0 ? sEXT()[q] : "bin";
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
|
|
@ -649,4 +649,4 @@ bool StartAuxThread(auxthread_t (auxthread__ *fn)(void *ptr), void *ptr)
|
|||
return false;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#ifdef PLATFORM_WIN32
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
NetNode::NetNode()
|
||||
{
|
||||
|
|
@ -131,6 +131,6 @@ int NetNode::GetDisplayType() const
|
|||
return UNKNOWN;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
String QDecode(const String& s)
|
||||
{
|
||||
|
|
@ -354,4 +354,4 @@ String FormatMessageIDs(const Index<String>& id)
|
|||
return r;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "POP3.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static bool sPop3Trace;
|
||||
#define LLOG(x) do { if(sPop3Trace) RLOG(CompressLog(String().Cat() << x)); } while(0)
|
||||
|
|
@ -255,4 +255,4 @@ Pop3::~Pop3()
|
|||
Logout();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
class Pop3 : public TcpSocket
|
||||
{
|
||||
|
|
@ -110,6 +110,6 @@ struct MIMEHeader {
|
|||
Index<String> ParseMessageIDs(const String& s);
|
||||
String FormatMessageIDs(const Index<String>& id);
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static int sDirSep(int c) {
|
||||
return c == '/' || c == '\\' ? c : 0;
|
||||
|
|
@ -1043,4 +1043,4 @@ bool FileSystemInfo::FolderExists(String path) const
|
|||
return !fi.IsEmpty() && fi[0].is_directory;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
/* Faster, but consuming more memory....
|
||||
PteBase::Prec *PteBase::PtrAdd()
|
||||
|
|
@ -81,4 +81,4 @@ PtrBase::~PtrBase()
|
|||
Release();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
/*
|
||||
A C-program for MT19937, with initialization improved 2002/1/26.
|
||||
|
|
@ -267,4 +267,4 @@ double Randomf()
|
|||
return Random64(I64(4503599627370496)) / 4503599627370496.0;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef Rpc_Rpc_h
|
||||
#define Rpc_Rpc_h
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
enum {
|
||||
RPC_SERVER_JSON_ERROR = -32700, // Parse error
|
||||
|
|
@ -363,6 +363,6 @@ void SuppressRpcServerTraceForMethodCall();
|
|||
|
||||
#include "legacy.h"
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include <Core/Core.h>
|
||||
#include <Core/Rpc/Rpc.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
|
||||
|
|
@ -242,4 +242,4 @@ void RpcRequest::ClearError()
|
|||
error.Clear();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
typedef void (*RpcFnPtr)(RpcData&);
|
||||
|
||||
|
|
@ -382,4 +382,4 @@ bool RpcServerLoop(int port, const char *group)
|
|||
}
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include <Core/Core.h>
|
||||
#include <Core/Rpc/Rpc.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
String FormatIso8601(Time t)
|
||||
{
|
||||
|
|
@ -160,4 +160,4 @@ void ValuePut(Value& v, const Json& json)
|
|||
v = RawToValue(x);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#include <Core/Core.h>
|
||||
#include <Core/Rpc/Rpc.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
Value ParseXmlRpcValue(XmlParser& p)
|
||||
{
|
||||
|
|
@ -189,4 +189,4 @@ String FormatXmlRpcError(int code, const char *text)
|
|||
return r;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
/*
|
||||
SHA-1 in C
|
||||
|
|
@ -210,4 +210,4 @@ String SHA1StringS(const String& data)
|
|||
return SHA1StringS(~data, data.GetLength());
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
class Smtp : public TcpSocket {
|
||||
struct Attachment
|
||||
|
|
@ -91,6 +91,6 @@ public:
|
|||
static String FormatAddr(const String& addr, const String& name);
|
||||
};
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "SMTP.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
namespace Ini {
|
||||
INI_BOOL(Smtp_Trace, false, "Activates HTTP requests tracing")
|
||||
|
|
@ -425,4 +425,4 @@ Smtp::Smtp()
|
|||
New();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static int64 UPP_SSL_alloc = 0;
|
||||
|
||||
|
|
@ -103,4 +103,4 @@ void SslInitThread() {}
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include <openssl/err.h>
|
||||
#include <openssl/engine.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void SslInitThread();
|
||||
|
||||
|
|
@ -133,4 +133,4 @@ String SslToString(X509_NAME *name);
|
|||
Date Asn1ToDate(ASN1_STRING *time);
|
||||
String Asn1ToString(ASN1_STRING *s);
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
struct TcpSocket::SSLImp : TcpSocket::SSL {
|
||||
virtual bool Start();
|
||||
|
|
@ -222,4 +222,4 @@ void TcpSocket::SSLImp::Close()
|
|||
ssl = NULL;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "SSL.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
String SslBuffer::Get() const
|
||||
{
|
||||
|
|
@ -205,4 +205,4 @@ String Asn1ToString(ASN1_STRING *s)
|
|||
return String(s->data, s->length);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef PLATFORM_WIN32
|
||||
#pragma comment(lib, "ws2_32.lib")
|
||||
|
|
@ -1019,4 +1019,4 @@ SocketWaitEvent::SocketWaitEvent()
|
|||
FD_ZERO(exception);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
template <class S, class Char, class F>
|
||||
Vector<S> SplitGeneric(int maxcount, const F& delim, const Char *s, bool ignoreempty = true)
|
||||
|
|
@ -325,4 +325,4 @@ __Expand12(E__NFBody)
|
|||
#undef E__PI
|
||||
#undef E__NFBody
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
int wstrlen(const wchar *s)
|
||||
{
|
||||
|
|
@ -145,4 +145,4 @@ WString FilterWhile(const wchar *s, int (*filter)(int))
|
|||
return result;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // RLOG(x)
|
||||
#define LDUMP(x) // RDUMP(x)
|
||||
|
|
@ -1478,4 +1478,4 @@ int StreamHeading(Stream& stream, int ver, int minver, int maxver, const char* t
|
|||
return ver;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _DEBUG
|
||||
void String0::Dsyn()
|
||||
|
|
@ -514,4 +514,4 @@ int CompareNoCase(const String& a, const char *b, byte encoding)
|
|||
return IterCompare(a.Begin(), a.End(), b, b + strlen(b), StringICompare__(encoding));
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef CPU_X86 // Use unaligned access
|
||||
|
||||
|
|
@ -208,4 +208,4 @@ int find(const wchar *text, int len, const wchar *needle, int nlen, int from)
|
|||
}
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static int s_month[] = {
|
||||
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
|
||||
|
|
@ -702,4 +702,4 @@ Time TimeFromUTC(int64 seconds)
|
|||
return tm - GetLeapSeconds(tm);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
struct TopicData__ : Moveable<TopicData__> {
|
||||
String title;
|
||||
|
|
@ -92,7 +92,7 @@ Topic GetTopicLNG(const char *path)
|
|||
("$" + ToLower(LNGAsText(SetLNGCharset(GetCurrentLanguage(), CHARSET_DEFAULT)))));
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
void RegisterTopic__(const char *topicfile, const char *topic, const char *title,
|
||||
const UPP::byte *data, int len)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
# include <cxxabi.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
bool PanicMode;
|
||||
|
||||
|
|
@ -874,4 +874,4 @@ WString Replace(const WString& s, const VectorMap<WString, WString>& fr)
|
|||
return Replace__<wchar>(s, fr.GetKeys(), fr.GetValues());
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
//#BLITZ_APPROVE
|
||||
|
||||
|
|
@ -109,4 +109,4 @@ ValueGen& UuidValueGen()
|
|||
return Single<UuidValueGenClass>();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifndef flagSO
|
||||
const Nuller Null;
|
||||
|
|
@ -768,4 +768,4 @@ String GetErrorText(const Value& v) {
|
|||
return ((RichValueRep<String> *)v.GetVoidPtr())->Get();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
static String sAsString(const Vector<Value>& v);
|
||||
|
||||
|
|
@ -687,5 +687,5 @@ INITBLOCK
|
|||
Value::Register<Rectf>("Rectf");
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
struct Vector_ {
|
||||
void *vector;
|
||||
|
|
@ -83,4 +83,4 @@ thread__ int invector_cache_blki_;
|
|||
thread__ int invector_cache_offset_;
|
||||
thread__ int invector_cache_end_;
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
wchar *WString0::Alloc(int& count)
|
||||
{
|
||||
|
|
@ -406,4 +406,4 @@ int CompareNoCase(const WString& a, const wchar *b)
|
|||
return IterCompare(a.Begin(), a.End(), b, b + wstrlen(b), WStringICompare__());
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
bool WebSocket::WebAccept(TcpSocket& socket_, HttpHeader& hdr)
|
||||
{
|
||||
|
|
@ -163,4 +163,4 @@ void WebSocket::Close()
|
|||
}
|
||||
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef PLATFORM_WIN32
|
||||
|
||||
|
|
@ -212,4 +212,4 @@ void Win32Event::Set()
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // LOG(x)
|
||||
|
||||
|
|
@ -1158,4 +1158,4 @@ IgnoreXmlPaths::IgnoreXmlPaths(const char *s)
|
|||
list = Split(s, ';');
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
template<>
|
||||
void Xmlize(XmlIO& xml, String& var)
|
||||
|
|
@ -282,4 +282,4 @@ Value LoadJsonValue(const XmlNode& n)
|
|||
return m;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef UPP_HEAP
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ void MemoryShrink()
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#ifdef UPP_HEAP
|
||||
#include <new>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ int sMemDiagInitCount;
|
|||
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#if defined(UPP_HEAP)
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ void MemoryInitDiagnostics()
|
|||
#endif
|
||||
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#if (defined(TESTLEAKS) || defined(HEAPDBG)) && defined(COMPILER_GCC) && defined(UPP_HEAP)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#include "HeapImp.h"
|
||||
|
||||
|
|
@ -317,6 +317,6 @@ EXITBLOCK {
|
|||
}
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef UPP_HEAP
|
||||
|
||||
|
|
@ -291,4 +291,4 @@ size_t Heap::LGetBlockSize(void *ptr) {
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
// iscale: computes x * y / z.
|
||||
|
||||
|
|
@ -233,4 +233,4 @@ double ceilr(double d, int digits)
|
|||
return ceil(d / fac) * fac;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
|
@ -601,4 +601,4 @@ String AsCString(const String& s, int linemax, const char *linepfx, dword flags)
|
|||
return AsCString(s, s.End(), linemax, linepfx, flags);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef UPP_HEAP
|
||||
|
||||
|
|
@ -428,4 +428,4 @@ MemoryProfile *PeakMemoryProfile()
|
|||
|
||||
#endif
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "Core.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define TFILE <Core/Core.t>
|
||||
#include <Core/t.h>
|
||||
|
|
@ -453,4 +453,4 @@ bool LoadLngFile(const char *file)
|
|||
return true;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#define LDUMP(x) // DDUMP(x)
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifndef DEF_MEM_LEVEL
|
||||
#define DEF_MEM_LEVEL 8
|
||||
|
|
@ -515,4 +515,4 @@ void sCompressStreamCopy_(Stream& out, Stream& in, EventGate<int64, int64> progr
|
|||
progress(orig_in.GetPos(), insz);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x)
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
|
@ -113,4 +113,4 @@ void CppBase::RemoveFile(int filei)
|
|||
}
|
||||
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
void Parser::Locals(const String& type)
|
||||
{
|
||||
|
|
@ -304,4 +304,4 @@ String Parser::ResolveAutoType()
|
|||
return i < 0 ? String() : s[i];
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <Core/Core.h>
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
bool IsCPPFile(const String& file);
|
||||
bool IsHFile(const String& path);
|
||||
|
|
@ -677,6 +677,6 @@ void ResolveTParam(const CppBase& codebase, Vector<String>& typ
|
|||
Index<String> GetExpressionType(const CppBase& codebase, const Parser& parser, const Vector<String>& xp);
|
||||
Vector<String> MakeXP(const char *s);
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
description "Partly heurestic (imprecise) C++ parser for purposes of Assist++ (intellisense)\377";
|
||||
|
||||
optimize_speed;
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
String CppItem::ToString() const
|
||||
{
|
||||
|
|
@ -78,4 +78,4 @@ void CppItem::Dump(Stream& s) const
|
|||
#undef PUT
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma inline_depth(255)
|
||||
|
|
@ -1828,4 +1828,4 @@ Vector<String> Parser::GetNamespaces() const
|
|||
return ns;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma inline_depth(255)
|
||||
|
|
@ -169,4 +169,4 @@ SrcFile PreProcess(Stream& in, Parser& parser) // This is not really C preproces
|
|||
return pick(res);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
|
@ -311,4 +311,4 @@ void Qualify(CppBase& base)
|
|||
QualifyPass2(base);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LLOG(x)
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
|
|
@ -129,4 +129,4 @@ const Vector<String>& ScopeInfo::GetScopes(const String& usings_)
|
|||
return scopes;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "CppBase.h"
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#define LTIMING(x) // RTIMING(x)
|
||||
#define LLOG(x) // DLOG(x)
|
||||
|
|
@ -377,4 +377,4 @@ String Cpp::GetDependeciesMd5(const Vector<String>& m)
|
|||
return md5.FinishString();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// #define LOGNEXT _DBG_
|
||||
|
||||
NAMESPACE_UPP
|
||||
namespace Upp {
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma inline_depth(255)
|
||||
|
|
@ -496,4 +496,4 @@ const char *Lex::Pos(int pos)
|
|||
return pos < term.GetCount() ? term[pos].ptr : ptr;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue