uppsrc.diff

Proposed patch for uppsrc directory (since 13633 revision) - Sender Ghost, 10/08/2019 04:59 PM

Download (47 KB)

View differences:

uppsrc/CodeEditor/CHighlight.cpp
136 136
	raw_string.Cat('\"');
137 137
	n = int(s + 1 - p);
138 138
	return true;
139
};
139
}
140 140

  
141 141
void CSyntax::Highlight(const wchar *ltext, const wchar *e, HighlightOutput& hls, CodeEditor *editor, int line, int64 pos)
142 142
{
uppsrc/CodeEditor/CSyntax.cpp
369 369
	s % spar;
370 370
	
371 371
	s % highlight;
372
};
372
}
373 373

  
374 374
}
uppsrc/Core/Convert.cpp
318 318

  
319 319
Value  Convert::Scan(const Value& text) const {
320 320
	return text;
321
};
321
}
322 322

  
323 323
int    Convert::Filter(int chr) const {
324 324
	return chr;
uppsrc/Core/Http.cpp
6 6
	INI_BOOL(HttpRequest_Trace, false, "Activates HTTP requests tracing")
7 7
	INI_BOOL(HttpRequest_TraceBody, false, "Activates HTTP requests body tracing")
8 8
	INI_BOOL(HttpRequest_TraceShort, false, "Activates HTTP requests short tracing")
9
};
9
}
10 10

  
11 11
#define LLOG(x)      LOG_(Ini::HttpRequest_Trace, x)
12 12
#define LLOGB(x)     LOG_(Ini::HttpRequest_TraceBody, x)
uppsrc/Core/Ini.cpp
422 422
		return Null;
423 423
}
424 424

  
425
};
425
}
uppsrc/Core/Lang.cpp
124 124
			lang = SetLNGCharset(lang, CharsetByName(q + 1));
125 125
	};
126 126
	return lang;
127
};
127
}
128 128

  
129 129
#endif
130 130

  
uppsrc/Core/LangInfo.cpp
853 853
	"Malayalam\t\340\264\256\340\264\262\340\264\257\340\264\276\340\264\263\340\264\202\t\004L",
854 854
};
855 855

  
856
};
856
}
uppsrc/Core/Log.cpp
453 453
}
454 454

  
455 455
namespace Ini {
456
	INI_BOOL(user_log, false, "Activates logging of user actions");
457
};
456
	INI_BOOL(user_log, false, "Activates logging of user actions")
457
}
458 458

  
459 459
}
uppsrc/Core/SMTP/Smtp.cpp
6 6
	INI_BOOL(Smtp_Trace, false, "Activates HTTP requests tracing")
7 7
	INI_BOOL(Smtp_TraceBody, false, "Activates HTTP requests body tracing")
8 8
	INI_BOOL(Smtp_CompressLog, false, "Activates log compression (removes long hex/encode64-like data)")
9
};
9
}
10 10

  
11 11
#define LLOG(x)      do { if(Ini::Smtp_Trace) { if(Ini::Smtp_CompressLog) RLOG(CompressLog(String().Cat() << x)); else RLOG(x); } } while(0)
12 12
#define LLOGB(x)      do { if(Ini::Smtp_TraceBody) { if(Ini::Smtp_CompressLog) RLOG(CompressLog(String().Cat() << x)); else RLOG(x); } } while(0)
uppsrc/Core/SSH/SFtpStream.cpp
76 76
	Close();
77 77
}
78 78

  
79
};
79
}
uppsrc/Core/SSH/SSH.h
16 16

  
17 17
namespace Upp {
18 18

  
19
INITIALIZE(SSH);
19
INITIALIZE(SSH)
20 20

  
21 21
using SFtpHandle   = LIBSSH2_SFTP_HANDLE*;
22 22
using SFtpAttrs    = LIBSSH2_SFTP_ATTRIBUTES;
uppsrc/Core/SSL/SSL.h
7 7

  
8 8
namespace Upp {
9 9
	
10
INITIALIZE(SSL);
11
INITIALIZE(SSLSocket);
12
INITIALIZE(P7S);
10
INITIALIZE(SSL)
11
INITIALIZE(SSLSocket)
12
INITIALIZE(P7S)
13 13

  
14 14
void SslInitThread();
15 15

  
uppsrc/Core/Speller.cpp
430 430
	return r;
431 431
}
432 432

  
433
};
433
}
uppsrc/Core/UnicodeInfo.cpp
244 244
	return Single<UnicodeInfo>().ismark.Find(c) >= 0;
245 245
}
246 246

  
247
};
247
}
uppsrc/Core/Utf.cpp
176 176
	return r;
177 177
}
178 178

  
179
};
179
}
uppsrc/Core/Util.h
136 136
String AsStringIniDefault_##var() { return AsString(DefIni_##var()); } \
137 137
INITBLOCK { AddIniInfo(#var, AsStringIniCurrent_##var, AsStringIniDefault_##var, info); }
138 138

  
139
#define INI_BOOL(var, def, info)   INI_TYPE(var, def, info, bool, IniBool, 0);
140
#define INI_INT(var, def, info)    INI_TYPE(var, def, info, int, IniInt, 0);
141
#define INI_INT64(var, def, info)  INI_TYPE(var, def, info, int64, IniInt64, 0);
142
#define INI_DOUBLE(var, def, info) INI_TYPE(var, def, info, double, IniDouble, 0);
139
#define INI_BOOL(var, def, info)   INI_TYPE(var, def, info, bool, IniBool, 0)
140
#define INI_INT(var, def, info)    INI_TYPE(var, def, info, int, IniInt, 0)
141
#define INI_INT64(var, def, info)  INI_TYPE(var, def, info, int64, IniInt64, 0)
142
#define INI_DOUBLE(var, def, info) INI_TYPE(var, def, info, double, IniDouble, 0)
143 143

  
144 144
#define INI_STRING(var, def, info) String& DefRef_##var() { static String x; return x; }\
145
                                   INI_TYPE(var, def, info, String, IniString, DefRef_##var);
145
                                   INI_TYPE(var, def, info, String, IniString, DefRef_##var)
146 146

  
147 147
VectorMap<String, String> LoadIniStream(Stream &in);
148 148
VectorMap<String, String> LoadIniFile(const char *filename);
uppsrc/Core/Value.cpp
252 252
	return NameNdx()[q];
253 253
}
254 254

  
255
SVO_FN(s_String, String);
256
SVO_FN(s_int, int);
257
SVO_FN(s_double, double);
258
SVO_FN(s_int64, int64);
259
SVO_FN(s_bool, bool);
260
SVO_FN(s_date, Date);
261
SVO_FN(s_time, Time);
255
SVO_FN(s_String, String)
256
SVO_FN(s_int, int)
257
SVO_FN(s_double, double)
258
SVO_FN(s_int64, int64)
259
SVO_FN(s_bool, bool)
260
SVO_FN(s_date, Date)
261
SVO_FN(s_time, Time)
262 262

  
263 263
struct SvoVoidFn {
264 264
	static bool       IsNull(const void *p)                      { return true; }
uppsrc/Core/XML.h
228 228
	
229 229
	void           Shrink();
230 230
	
231
	rval_default(XmlNode);
231
	rval_default(XmlNode)
232 232

  
233 233
	XmlNode(const XmlNode& n, int);
234 234
	
uppsrc/Core/Xmlize.cpp
144 144

  
145 145
#define VALUE_XMLIZE(type) template <> void Xmlize(XmlIO& xml, type& var) { xml.Attr("value", var); }
146 146

  
147
VALUE_XMLIZE(int);
148
VALUE_XMLIZE(dword);
149
VALUE_XMLIZE(double);
150
VALUE_XMLIZE(bool);
151
VALUE_XMLIZE(int16);
152
VALUE_XMLIZE(int64);
153
VALUE_XMLIZE(byte);
154
VALUE_XMLIZE(Time);
155
VALUE_XMLIZE(Date);
147
VALUE_XMLIZE(int)
148
VALUE_XMLIZE(dword)
149
VALUE_XMLIZE(double)
150
VALUE_XMLIZE(bool)
151
VALUE_XMLIZE(int16)
152
VALUE_XMLIZE(int64)
153
VALUE_XMLIZE(byte)
154
VALUE_XMLIZE(Time)
155
VALUE_XMLIZE(Date)
156 156

  
157 157
void XmlizeLangAttr(XmlIO& xml, int& lang, const char *id)
158 158
{
uppsrc/Core/xxHsh.cpp
72 72
	return xxHash64(~s, s.GetCount());
73 73
}
74 74

  
75
};
75
}
uppsrc/CppBase/CppBase.h
298 298

  
299 299
struct SrcFile {
300 300
	SrcFile();
301
	rval_default(SrcFile);
301
	rval_default(SrcFile)
302 302

  
303 303
	String      text;
304 304
	Vector<int> linepos;
......
340 340

  
341 341
inline bool IsCppCode(int i) {
342 342
	return i >= CONSTRUCTOR && i <= INLINEFRIEND;
343
};
343
}
344 344

  
345 345
inline bool IsCppData(int i) {
346 346
	return i >= VARIABLE && i <= ENUM;
......
444 444
		String  Dump() const;
445 445
		
446 446
		Context() {}
447
		rval_default(Context);
447
		rval_default(Context)
448 448
	};
449 449

  
450 450
	struct Decla {
......
474 474
	struct Decl : Decla {
475 475
		Array<Decl> param;
476 476
		
477
		rval_default(Decl);
477
		rval_default(Decl)
478 478
		Decl() {}
479 479
	};
480 480

  
uppsrc/CppBase/Expression.cpp
542 542
	return xp;
543 543
}
544 544

  
545
};
545
}
uppsrc/CppBase/ppconfig.cpp
48 48
	return defs;
49 49
}
50 50

  
51
};
51
}
uppsrc/CtrlCore/Ctrl.cpp
473 473
	Update();
474 474
	Action();
475 475
	Refresh();
476
};
476
}
477 477

  
478 478
void  Ctrl::CancelModeDeep() {
479 479
	GuiLock __;
......
1006 1006
	lock--;
1007 1007
}
1008 1008

  
1009
CH_INT(GUI_GlobalStyle, GUISTYLE_CLASSIC);
1010
CH_INT(GUI_DragFullWindow, 1);
1011
CH_INT(GUI_PopUpEffect, GUIEFFECT_SLIDE);
1012
CH_INT(GUI_ToolTips, 1);
1013
CH_INT(GUI_ToolTipDelay, 1000);
1014
CH_INT(GUI_DropShadows, 1);
1015
CH_INT(GUI_AltAccessKeys, 1);
1016
CH_INT(GUI_AKD_Conservative, 0);
1017
CH_INT(GUI_DragDistance, 4);
1018
CH_INT(GUI_DblClickTime, 500);
1019
CH_INT(GUI_WheelScrollLines, 3);
1009
CH_INT(GUI_GlobalStyle, GUISTYLE_CLASSIC)
1010
CH_INT(GUI_DragFullWindow, 1)
1011
CH_INT(GUI_PopUpEffect, GUIEFFECT_SLIDE)
1012
CH_INT(GUI_ToolTips, 1)
1013
CH_INT(GUI_ToolTipDelay, 1000)
1014
CH_INT(GUI_DropShadows, 1)
1015
CH_INT(GUI_AltAccessKeys, 1)
1016
CH_INT(GUI_AKD_Conservative, 0)
1017
CH_INT(GUI_DragDistance, 4)
1018
CH_INT(GUI_DblClickTime, 500)
1019
CH_INT(GUI_WheelScrollLines, 3)
1020 1020

  
1021 1021
String Ctrl::Name0() const {
1022 1022
	GuiLock __;
uppsrc/CtrlCore/Frame.cpp
42 42
CtrlFrame& OutsetFrame() { static BorderFrame h(OutsetBorder()); return h; }
43 43
CtrlFrame& ThinOutsetFrame() { static BorderFrame h(ThinOutsetBorder()); return h; }
44 44

  
45
CH_COLOR(FieldFrameColor, Blend(SColorHighlight, SColorShadow));
45
CH_COLOR(FieldFrameColor, Blend(SColorHighlight, SColorShadow))
46 46

  
47 47
class XPFieldFrameCls : public CtrlFrame {
48 48
	virtual void FrameLayout(Rect& r)                   { r.Deflate(2); }
......
64 64
CtrlFrame& XPFieldFrame() { return Single<XPFieldFrameCls>(); }
65 65
CtrlFrame& XPEditFieldFrame() { return Single<XPEditFieldFrameCls>(); }
66 66

  
67
CH_INT(EditFieldIsThin, 0);
67
CH_INT(EditFieldIsThin, 0)
68 68

  
69 69
CtrlFrame& FieldFrame() { return GUI_GlobalStyle() >= GUISTYLE_XP ? XPFieldFrame() : InsetFrame(); }
70 70

  
71
CH_VALUE(TopSeparator1, SColorShadow());
72
CH_VALUE(TopSeparator2, SColorLight());
71
CH_VALUE(TopSeparator1, SColorShadow())
72
CH_VALUE(TopSeparator2, SColorLight())
73 73

  
74 74
class TopSeparatorFrameCls : public CtrlFrame {
75 75
	virtual void FrameLayout(Rect& r)                   { r.top += 2; }
......
112 112
CtrlFrame& RightSeparatorFrame()  { return Single<RightSeparatorFrameCls>(); }
113 113
CtrlFrame& LeftSeparatorFrame()   { return Single<LeftSeparatorFrameCls>(); }
114 114

  
115
CH_INT(FrameButtonWidth, DPI(17));
116
CH_INT(ScrollBarArrowSize, FrameButtonWidth());
115
CH_INT(FrameButtonWidth, DPI(17))
116
CH_INT(ScrollBarArrowSize, FrameButtonWidth())
117 117

  
118 118
void LayoutFrameLeft(Rect& r, Ctrl *ctrl, int cx)
119 119
{
uppsrc/CtrlCore/TopWindow.cpp
526 526
		win.Maximize();
527 527
}
528 528

  
529
CH_INT(SwapOKCancel, 0);
529
CH_INT(SwapOKCancel, 0)
530 530

  
531 531
void ArrangeOKCancel(Ctrl& ok, Ctrl& cancel)
532 532
{
uppsrc/CtrlLib/ChCoco.h
13 13

  
14 14
Color CocoBrush(int k);
15 15

  
16
};
16
}
17 17

  
18 18
#endif
uppsrc/CtrlLib/ChGtk.h
155 155
                    Value *ubutton2, Value *ubutton,
156 156
                    int i_larrow, int i_uarrow, bool horz);
157 157

  
158
};
158
}
159 159

  
160 160
#endif
uppsrc/CtrlLib/CtrlLib.h
9 9

  
10 10
namespace Upp {
11 11

  
12
INITIALIZE(CtrlLib);
12
INITIALIZE(CtrlLib)
13 13

  
14 14
#define IMAGECLASS CtrlImg
15 15
#define IMAGEFILE <CtrlLib/Ctrl.iml>
uppsrc/CtrlLib/CtrlLibInit.cpp
13 13
#else
14 14
	CtrlSetDefaultSkin(ChStdSkin, ChStdSkin);
15 15
#endif
16
};
16
}
17 17

  
18 18
}
uppsrc/CtrlLib/CtrlUtil.cpp
375 375
	if(peak)
376 376
		text << "\r\n=== Peak memory profile\r\n" << sProfile(*peak);
377 377
	PromptOK("[C " + DeQtfLf(text));
378
};
378
}
379 379

  
380 380
FileSelButton::FileSelButton(MODE mode, const char *title)
381 381
: title(title), mode(mode)
uppsrc/CtrlLib/DlgColor.cpp
896 896
	out[13] = Color(0xFF, 0x00, 0xFF);
897 897
	out[14] = Color(0x00, 0x80, 0x80);
898 898
	out[15] = Color(0x00, 0xFF, 0xFF);
899
};
899
}
900 900

  
901 901
PalCtrl::Config& PalCtrl::GlobalConfig()
902 902
{
uppsrc/CtrlLib/DropTree.cpp
2 2

  
3 3
namespace Upp {
4 4

  
5
CH_VALUE(TreeDropEdge, ChBorder(BlackBorder()));
5
CH_VALUE(TreeDropEdge, ChBorder(BlackBorder()))
6 6

  
7 7
CtrlFrame& TreeDropFrame()
8 8
{
......
225 225
	dropwidth = 0;
226 226
}
227 227

  
228
};
228
}
uppsrc/CtrlLib/EditField.cpp
2 2

  
3 3
namespace Upp {
4 4

  
5
CH_VALUE(ViewEdge, CtrlsImg::VE());
5
CH_VALUE(ViewEdge, CtrlsImg::VE())
6 6

  
7 7
Value EditFieldEdge()
8 8
{
uppsrc/CtrlLib/PopupTable.cpp
2 2

  
3 3
namespace Upp {
4 4

  
5
CH_VALUE(DropEdge, ChBorder(BlackBorder()));
5
CH_VALUE(DropEdge, ChBorder(BlackBorder()))
6 6

  
7 7
CtrlFrame& DropFrame()
8 8
{
uppsrc/CtrlLib/Prompt.cpp
193 193
	return Prompt(Ctrl::GetAppName(), CtrlImg::error(), qtf, t_("OK"), t_("Cancel"));
194 194
}
195 195

  
196
CH_IMAGE(YesButtonImage, Null);
197
CH_IMAGE(NoButtonImage, Null);
198
CH_IMAGE(AbortButtonImage, Null);
199
CH_IMAGE(RetryButtonImage, Null);
196
CH_IMAGE(YesButtonImage, Null)
197
CH_IMAGE(NoButtonImage, Null)
198
CH_IMAGE(AbortButtonImage, Null)
199
CH_IMAGE(RetryButtonImage, Null)
200 200

  
201 201
int PromptYesNo(const char *qtf) {
202 202
	BeepQuestion();
uppsrc/CtrlLib/ScrollBar.cpp
597 597
	return Image::Arrow();
598 598
}
599 599

  
600
CH_IMAGE(SizeGripImg, CtrlsImg::SizeGrip());
600
CH_IMAGE(SizeGripImg, CtrlsImg::SizeGrip())
601 601

  
602 602
void SizeGrip::Paint(Draw& w)
603 603
{
uppsrc/CtrlLib/Static.cpp
79 79

  
80 80
Label::~Label() {}
81 81

  
82
CH_COLOR(LabelBoxColor, SColorShadow());
82
CH_COLOR(LabelBoxColor, SColorShadow())
83 83

  
84
CH_COLOR(LabelBoxTextColor, SColorText());
85
CH_COLOR(LabelBoxDisabledTextColor, SColorDisabled());
84
CH_COLOR(LabelBoxTextColor, SColorText())
85
CH_COLOR(LabelBoxDisabledTextColor, SColorDisabled())
86 86

  
87 87
LabelBox::LabelBox()
88 88
{
......
316 316
		ChPaint(w, q - 1, lmargin, 1, sz.cy - (lmargin + rmargin), style->l1);
317 317
		ChPaint(w, q, lmargin, 1, sz.cy - (lmargin + rmargin), style->l2);
318 318
	}
319
};
319
}
320 320

  
321 321
SeparatorCtrl& SeparatorCtrl::Margin(int l, int r)
322 322
{
uppsrc/CtrlLib/StatusBar.cpp
119 119

  
120 120
void InfoCtrl::FrameLayout(Rect& r) {
121 121
	(right ? LayoutFrameRight : LayoutFrameLeft)(r, this, cx ? cx : r.Height());
122
};
122
}
123 123

  
124 124
class VCenterDisplay : public Display
125 125
{
......
277 277
		w.DrawRect(r.left + pos - 1, r.top + 1, 1, r.Height() - 1, SColorLight);
278 278
	}
279 279
	w.DrawRect(r.left + pos, r.top, r.Width() - pos, r.Height(), SColorPaper);
280
};
280
}
281 281

  
282 282
Display& ProgressDisplay()
283 283
{
uppsrc/CtrlLib/key_header.h
18 18
#include KEYFILE
19 19

  
20 20
#ifdef KEYNAMESPACE
21
};
21
}
22 22
#endif
23 23

  
24 24
#ifdef KEYNAMESPACE
uppsrc/Draw/DrawRasterData.cpp
30 30
INITBLOCK
31 31
{
32 32
	DataDrawer::Register<cDrawRasterData>("image_data");
33
};
33
}
34 34

  
35 35
void DrawRasterData(Draw& w, int x, int y, int cx, int cy, const String& data)
36 36
{
uppsrc/Draw/SSettings.cpp
2 2

  
3 3
namespace Upp {
4 4

  
5
CH_COLOR(SBlack, AdjustIfDark(Black()));
6
CH_COLOR(SGray, AdjustIfDark(Gray()));
7
CH_COLOR(SLtGray, AdjustIfDark(LtGray()));
8
CH_COLOR(SWhiteGray, AdjustIfDark(WhiteGray()));
9
CH_COLOR(SWhite, AdjustIfDark(White()));
10
CH_COLOR(SRed, AdjustIfDark(Red()));
11
CH_COLOR(SGreen, AdjustIfDark(Green()));
12
CH_COLOR(SBrown, AdjustIfDark(Brown()));
13
CH_COLOR(SBlue, AdjustIfDark(Blue()));
14
CH_COLOR(SMagenta, AdjustIfDark(Magenta()));
15
CH_COLOR(SCyan, AdjustIfDark(Cyan()));
16
CH_COLOR(SYellow, AdjustIfDark(Yellow()));
17
CH_COLOR(SLtRed, AdjustIfDark(LtRed()));
18
CH_COLOR(SLtGreen, AdjustIfDark(LtGreen()));
19
CH_COLOR(SLtYellow, AdjustIfDark(LtYellow()));
20
CH_COLOR(SLtBlue, AdjustIfDark(LtBlue()));
21
CH_COLOR(SLtMagenta, AdjustIfDark(LtMagenta()));
22
CH_COLOR(SLtCyan, AdjustIfDark(LtCyan()));
5
CH_COLOR(SBlack, AdjustIfDark(Black()))
6
CH_COLOR(SGray, AdjustIfDark(Gray()))
7
CH_COLOR(SLtGray, AdjustIfDark(LtGray()))
8
CH_COLOR(SWhiteGray, AdjustIfDark(WhiteGray()))
9
CH_COLOR(SWhite, AdjustIfDark(White()))
10
CH_COLOR(SRed, AdjustIfDark(Red()))
11
CH_COLOR(SGreen, AdjustIfDark(Green()))
12
CH_COLOR(SBrown, AdjustIfDark(Brown()))
13
CH_COLOR(SBlue, AdjustIfDark(Blue()))
14
CH_COLOR(SMagenta, AdjustIfDark(Magenta()))
15
CH_COLOR(SCyan, AdjustIfDark(Cyan()))
16
CH_COLOR(SYellow, AdjustIfDark(Yellow()))
17
CH_COLOR(SLtRed, AdjustIfDark(LtRed()))
18
CH_COLOR(SLtGreen, AdjustIfDark(LtGreen()))
19
CH_COLOR(SLtYellow, AdjustIfDark(LtYellow()))
20
CH_COLOR(SLtBlue, AdjustIfDark(LtBlue()))
21
CH_COLOR(SLtMagenta, AdjustIfDark(LtMagenta()))
22
CH_COLOR(SLtCyan, AdjustIfDark(LtCyan()))
23 23

  
24 24
bool dark_theme__;
25 25

  
......
30 30
	Iml::ResetAll();
31 31
CH_END
32 32

  
33
CH_COLOR(SColorFace, LtGray());
34
CH_COLOR(SColorText, Black());
35
CH_COLOR(SColorHighlight, Blue());
36
CH_COLOR(SColorHighlightText, White());
37
CH_COLOR(SColorMenu, LtGray());
38
CH_COLOR(SColorMenuText, Black());
39
CH_COLOR(SColorInfo, LtYellow());
40
CH_COLOR(SColorInfoText, Black());
41
CH_COLOR(SColorDisabled, Gray());
42
CH_COLOR(SColorLight, White());
43
CH_COLOR(SColorShadow, Gray());
44
CH_COLOR(SColorMark, IsDark(SColorPaper()) ? DarkTheme(LtBlue()) : LtBlue());
45
CH_COLOR(SColorMenuMark, IsDark(SColorMenu()) ? DarkTheme(LtBlue()) : LtBlue());
46

  
47
CH_COLOR(SColorLtFace, Blend(SColorFace, SColorLight));
48
CH_COLOR(SColorDkShadow, Blend(SColorShadow, SColorText));
49
CH_COLOR(SColorLabel, SColorText());
33
CH_COLOR(SColorFace, LtGray())
34
CH_COLOR(SColorText, Black())
35
CH_COLOR(SColorHighlight, Blue())
36
CH_COLOR(SColorHighlightText, White())
37
CH_COLOR(SColorMenu, LtGray())
38
CH_COLOR(SColorMenuText, Black())
39
CH_COLOR(SColorInfo, LtYellow())
40
CH_COLOR(SColorInfoText, Black())
41
CH_COLOR(SColorDisabled, Gray())
42
CH_COLOR(SColorLight, White())
43
CH_COLOR(SColorShadow, Gray())
44
CH_COLOR(SColorMark, IsDark(SColorPaper()) ? DarkTheme(LtBlue()) : LtBlue())
45
CH_COLOR(SColorMenuMark, IsDark(SColorMenu()) ? DarkTheme(LtBlue()) : LtBlue())
46

  
47
CH_COLOR(SColorLtFace, Blend(SColorFace, SColorLight))
48
CH_COLOR(SColorDkShadow, Blend(SColorShadow, SColorText))
49
CH_COLOR(SColorLabel, SColorText())
50 50

  
51 51
}
uppsrc/Draw/Uhd.cpp
16 16
		     +  7 * (r * -169 + g * -331 + b *  500)
17 17
		     +  6 * (r *  500 + g * -419 + b *  -81);
18 18
	}
19
};
19
}
20 20

  
21 21
Image Upscale2x(const Image& src, RGBA bg)
22 22
{
......
157 157
	return img;
158 158
}
159 159

  
160
};
160
}
uppsrc/Geom/Coords/GeomCoords.h
779 779
	Point     target2;
780 780
	One<Node> split;
781 781
	
782
	rval_default(LinearSegmentTree);
782
	rval_default(LinearSegmentTree)
783 783
	LinearSegmentTree() {}
784 784
};
785 785

  
......
795 795
		Point      trg_topleft, trg_topright, trg_bottomleft, trg_bottomright;
796 796
		One<Split> split;
797 797
		
798
		rval_default(Node);
798
		rval_default(Node)
799 799
		Node() {}
800 800
	};
801 801

  
......
810 810
public:
811 811
	Node root;
812 812
	
813
	rval_default(PlanarSegmentTree);
813
	rval_default(PlanarSegmentTree)
814 814
	PlanarSegmentTree() {}
815 815
};
816 816

  
uppsrc/GridCtrl/GridCtrl.h
21 21
		SKIP_CURRENT_ROW = BIT(0),
22 22
		SKIP_HIDDEN = BIT(1)
23 23
	};
24
};
24
}
25 25

  
26 26
class GridFind : public EditString
27 27
{
......
231 231
class GridClipboard : Moveable<GridClipboard>
232 232
{
233 233
	public:
234
		rval_default(GridClipboard);
234
		rval_default(GridClipboard)
235 235
		GridClipboard() {}
236 236

  
237 237
		struct ClipboardData : Moveable<ClipboardData>
uppsrc/PdfDraw/PdfDraw.h
7 7

  
8 8
namespace Upp {
9 9

  
10
INITIALIZE(PdfDraw);
10
INITIALIZE(PdfDraw)
11 11

  
12 12
class TTFReader {
13 13
	struct TTFStream {
uppsrc/RichText/Object.cpp
398 398

  
399 399
INITBLOCK {
400 400
	RichObject::Register("Drawing", &Single<RichObjectTypeDrawingCls>());
401
};
401
}
402 402

  
403 403
struct RichObjectTypePNGCls : public RichObjectType
404 404
{
......
479 479

  
480 480
INITBLOCK {
481 481
	RichObject::Register("PING", &Single<RichObjectTypePNGCls>());
482
};
482
}
483 483

  
484 484
}
uppsrc/RichText/Para.h
214 214
		void                 Justify(const Format& format);
215 215
		int                  BodyHeight() const;
216 216

  
217
		rval_default(Lines);
217
		rval_default(Lines)
218 218
	
219 219
		Lines();
220 220
		~Lines();
......
288 288
	
289 289
	void        CacheId(int64 id);
290 290

  
291
	rval_default(RichPara);
291
	rval_default(RichPara)
292 292

  
293 293
	RichPara();
294 294
	~RichPara();
uppsrc/RichText/RichImage.cpp
95 95

  
96 96
INITBLOCK {
97 97
	RichObject::Register("image", &Single<RichImage>());
98
};
98
}
99 99

  
100 100
RichObject CreateImageObject(const Image& img, int cx, int cy)
101 101
{
......
176 176

  
177 177
INITBLOCK {
178 178
	RichObject::Register("PNG", &Single<RichPNG>());
179
};
179
}
180 180

  
181 181
struct RichRawImage : public RichObjectType {
182 182
	virtual String GetTypeName(const Value& v) const;
......
271 271

  
272 272
INITBLOCK {
273 273
	RichObject::Register("rawimage", &Single<RichRawImage>());
274
};
274
}
275 275

  
276 276
RichObject CreateRawImageObject(const String& s, int cx, int cy)
277 277
{
......
328 328

  
329 329
INITBLOCK {
330 330
	RichObject::Register("iml", &Single<RichImlImage>());
331
};
331
}
332 332

  
333 333
#endif
334 334

  
uppsrc/RichText/RichText.h
10 10
#define IMAGEFILE <RichText/RichText.iml>
11 11
#include <Draw/iml_header.h>
12 12

  
13
INITIALIZE(RichImage);
13
INITIALIZE(RichImage)
14 14

  
15 15
class  PasteClip;
16 16
struct RichPara;
uppsrc/RichText/Table.h
43 43
	friend class RichText;
44 44

  
45 45
public:
46
	rval_default(RichCell);
46
	rval_default(RichCell)
47 47

  
48 48
	RichCell(const RichCell& src, int);
49 49
	RichCell();
......
112 112
		PaintRow& operator[](int i)                 { return row[i]; }
113 113
		const PaintRow& operator[](int i) const     { return row[i]; }
114 114
		
115
		rval_default(Layout); // Old CLANG requires this
115
		rval_default(Layout) // Old CLANG requires this
116 116
		Layout() {}
117 117
	};
118 118

  
......
125 125
		Rect              next_page;
126 126
		Rect              header_page;
127 127
		
128
		rval_default(TabLayout); // Old CLANG requires this
128
		rval_default(TabLayout) // Old CLANG requires this
129 129
		TabLayout() {}
130 130
	};
131 131

  
......
238 238

  
239 239
	void          Normalize();
240 240

  
241
	rval_default(RichTable);
241
	rval_default(RichTable)
242 242

  
243 243
	RichTable(const RichTable& src, int);
244 244
	RichTable();
uppsrc/RichText/Txt.h
258 258
	RichTxt(const RichTxt& src, int);
259 259
	RichTxt();
260 260

  
261
	rval_default(RichTxt);
261
	rval_default(RichTxt)
262 262

  
263 263
#ifdef _DEBUG
264 264
	void                  Dump();
uppsrc/Skylark/App.cpp
16 16
}
17 17
	
18 18
namespace Ini {
19
	INI_BOOL(skylark_log, false, "Trace of Skylark");
20
};
19
	INI_BOOL(skylark_log, false, "Trace of Skylark")
20
}
21 21

  
22 22
#ifdef PLATFORM_WIN32
23 23
BOOL WINAPI SkylarkApp::CtrlCHandlerRoutine(DWORD dwCtrlType)
......
279 279
}
280 280

  
281 281
namespace Ini {
282
INI_INT(port, 8001, "TCP/IP server port to listen on");
283
INI_STRING(ip, "0.0.0.0", "IP address to listen on");
284
INI_STRING(path, Nvl(GetEnv("UPP_ASSEMBLY__"), GetFileFolder(GetExeFilePath())), "Path to witz templates and static files");
285
INI_INT(threads, 3 * CPU_Cores() + 1, "Number of threads in each Skylark subprocess");
282
INI_INT(port, 8001, "TCP/IP server port to listen on")
283
INI_STRING(ip, "0.0.0.0", "IP address to listen on")
284
INI_STRING(path, Nvl(GetEnv("UPP_ASSEMBLY__"), GetFileFolder(GetExeFilePath())), "Path to witz templates and static files")
285
INI_INT(threads, 3 * CPU_Cores() + 1, "Number of threads in each Skylark subprocess")
286 286
#ifdef _DEBUG
287
INI_INT(prefork, 0, "Number of preforked Skylark subprocesses");
288
INI_INT(timeout, 0, "Timeout in seconds for Skylark event handler");
289
INI_BOOL(use_caching, false, "Cache compiled witz templates or other data");
287
INI_INT(prefork, 0, "Number of preforked Skylark subprocesses")
288
INI_INT(timeout, 0, "Timeout in seconds for Skylark event handler")
289
INI_BOOL(use_caching, false, "Cache compiled witz templates or other data")
290 290
INI_INT(caching, 1, "Agressivity of caching on static/** "
291
                    "(0=no caching, 1=use ETag header, 2=use versioned path)");
291
                    "(0=no caching, 1=use ETag header, 2=use versioned path)")
292 292
#else
293
INI_INT(prefork, 1, "Number of preforked Skylark subprocesses");
294
INI_INT(timeout, 300, "Timeout in seconds for Skylark event handler");
295
INI_BOOL(use_caching, true, "Cache compiled witz templates or other data");
293
INI_INT(prefork, 1, "Number of preforked Skylark subprocesses")
294
INI_INT(timeout, 300, "Timeout in seconds for Skylark event handler")
295
INI_BOOL(use_caching, true, "Cache compiled witz templates or other data")
296 296
INI_INT(caching, 1, "Agressivity of caching on static/** "
297
                    "(0=no caching, 1=use ETag header, 2=use versioned path)");
297
                    "(0=no caching, 1=use ETag header, 2=use versioned path)")
298 298
#endif
299
};
299
}
300 300

  
301 301
SkylarkApp::SkylarkApp()
302 302
{
......
317 317
	app = NULL;
318 318
}
319 319

  
320
};
320
}
uppsrc/Skylark/Compile.cpp
436 436
	return exe;
437 437
}
438 438

  
439
};
439
}
uppsrc/Skylark/Dispatch.cpp
30 30
	
31 31
	enum { GET, POST };
32 32
	
33
	rval_default(DispatchNode);
33
	rval_default(DispatchNode)
34 34

  
35 35
	DispatchNode() { argpos = Null; method = GET; post_raw = false; progress = NULL;}
36 36
};
......
518 518
    }
519 519
}
520 520

  
521
};
521
}
uppsrc/Skylark/Exe.cpp
426 426
	return x.out;
427 427
}
428 428

  
429
};
429
}
uppsrc/Skylark/Http.cpp
436 436
	return Ux("!", js_code);
437 437
}
438 438

  
439
};
439
}
uppsrc/Skylark/Iml/Lib.icpp
28 28

  
29 29
INITBLOCK {
30 30
	Compiler::Register("ImlImg", ImlImg);
31
};
31
}
32 32

  
33
};
33
}
uppsrc/Skylark/Optimize.cpp
157 157
	optimized = optimized2;
158 158
}
159 159

  
160
};
160
}
uppsrc/Skylark/Preprocess.cpp
129 129
	return Join(Split(r, '\n', false), "\r\n");
130 130
}
131 131

  
132
};
132
}
uppsrc/Skylark/Renderer.cpp
106 106
{
107 107
}
108 108

  
109
};
109
}
uppsrc/Skylark/Session.cpp
8 8
namespace Upp {
9 9

  
10 10
namespace Ini {
11
INI_STRING(session_cookie, "__skylark_session_cookie__", "Skylark session cookie ID");
12
INI_STRING(session_dir, ConfigFile("session"), "Directory that contains Skylark session files");
13
INI_STRING(session_format, "BINARY", "Skylark session format ('BINARY', 'JSON', 'XML')");
14
INI_STRING(session_table, "", "SQL table used to store Skylark sessions; if empty, sessions are stored in files");
15
INI_STRING(session_id_column, "ID", "Primary key of SQL table used to store Skylark sessions");
16
INI_STRING(session_data_column, "DATA", "Name of SQL 'text' column used to store Skylark sessions data");
17
INI_STRING(session_lastwrite_column, "LASTWRITE", "Name of SQL timestamp column used to store Skylark session last update time");
18
INI_INT(session_expire, 3600 * 24 * 365, "Number of seconds after which Skylark session expires and can be deleted");
19
};
11
INI_STRING(session_cookie, "__skylark_session_cookie__", "Skylark session cookie ID")
12
INI_STRING(session_dir, ConfigFile("session"), "Directory that contains Skylark session files")
13
INI_STRING(session_format, "BINARY", "Skylark session format ('BINARY', 'JSON', 'XML')")
14
INI_STRING(session_table, "", "SQL table used to store Skylark sessions; if empty, sessions are stored in files")
15
INI_STRING(session_id_column, "ID", "Primary key of SQL table used to store Skylark sessions")
16
INI_STRING(session_data_column, "DATA", "Name of SQL 'text' column used to store Skylark sessions data")
17
INI_STRING(session_lastwrite_column, "LASTWRITE", "Name of SQL timestamp column used to store Skylark session last update time")
18
INI_INT(session_expire, 3600 * 24 * 365, "Number of seconds after which Skylark session expires and can be deleted")
19
}
20 20

  
21 21
SkylarkSessionConfig::SkylarkSessionConfig()
22 22
{
......
184 184
	return *this;
185 185
}
186 186

  
187
};
187
}
uppsrc/Skylark/Skylark.h
7 7
	
8 8
namespace Ini {
9 9
extern IniBool skylark_log;
10
};
10
}
11 11

  
12 12
String GetThreadName();
13 13

  
......
109 109
#include "Witz.h"
110 110
#include "Http.h"
111 111

  
112
};
112
}
113 113

  
114 114
#endif
uppsrc/Skylark/Sql.cpp
79 79
	return y;
80 80
}
81 81

  
82
};
82
}
uppsrc/Skylark/Static.icpp
21 21

  
22 22
INITBLOCK {
23 23
	Compiler::Register("CachedStatic", CachedStatic);
24
};
24
}
25 25

  
26 26
SKYLARK(ServeStaticPage, "static/**")
27 27
{
......
68 68
	http.Content(type, LoadFile(path));
69 69
}
70 70

  
71
};
71
}
uppsrc/Skylark/StdLib.icpp
86 86
	Compiler::Register("cycle", Cycle);
87 87
	Compiler::Register("raw", RawFn);
88 88
	Compiler::Register("count", CountFn);
89
	Compiler::Register("post_identity", PostIdentity);
90
	Compiler::Register("js_identity", JsIdentity);
91
	Compiler::Register("set", VariablesSet);
92
	Compiler::Register("render", Render);
93
};
94

  
95
};
89
	Compiler::Register("post_identity", PostIdentity);
90
	Compiler::Register("js_identity", JsIdentity);
91
	Compiler::Register("set", VariablesSet);
92
	Compiler::Register("render", Render);
93
}
94

  
95
}
uppsrc/Sql/SqlSet.cpp
95 95
	__List##I(E__Cat); \
96 96
	priority = SET; \
97 97
}
98
__Expand(E__SqlSetF);
98
__Expand(E__SqlSetF)
99 99
//$+
100 100

  
101 101
FieldOperator::FieldOperator() {}
uppsrc/Sql/SqlStatement.cpp
290 290
	__List##I(E__SCat); \
291 291
	text = ~set; \
292 292
}
293
__Expand(E__QSqlSelectF);
293
__Expand(E__QSqlSelectF)
294 294

  
295 295
#define E__QSelectF(I) \
296 296
SqlSelect Select(__List##I(E__SqlVal)) { \
......
298 298
	__List##I(E__SCat); \
299 299
	return Select(set); \
300 300
}
301
__Expand(E__QSelectF);
301
__Expand(E__QSelectF)
302 302
//$+
303 303

  
304 304
// -------------------------------
uppsrc/Sql/Sqlexp.h
500 500

  
501 501
//$-SqlSet(const SqlVal& p0, ...)
502 502
#define E__SqlSet(I)   SqlSet(const SqlVal& p0, __List##I(E__SqlVal));
503
	__Expand(E__SqlSet);
503
	__Expand(E__SqlSet)
504 504
//$+
505 505
	explicit SqlSet(Fields nfields);
506 506

  
......
636 636
	SqlSelect()                                       { on = valid = false; }
637 637
//$-SqlSelect(SqlVal v, ...);
638 638
#define E__QSelect(I)   SqlSelect(__List##I(E__SqlVal));
639
	__Expand(E__QSelect);
639
	__Expand(E__QSelect)
640 640
#undef  E__QSelect
641 641
//$+
642 642

  
......
667 667

  
668 668
//$-SqlSelect Select(SqlVal v, ...);
669 669
#define E__QSelect(I)   SqlSelect Select(__List##I(E__SqlVal));
670
__Expand(E__QSelect);
670
__Expand(E__QSelect)
671 671
#undef  E__QSelect
672 672
//$-
673 673

  
......
953 953
#define E__Arg(I)       Arg(p##I)
954 954
#define E__Args(I) \
955 955
	SqlWith& operator()(__List##I(E__SqlId)) { __List##I(E__Arg); return *this; }
956
	__Expand(E__Args);
956
	__Expand(E__Args)
957 957
#undef E__Args
958 958
#undef E__Arg
959 959
#undef E__SqlId
uppsrc/Sql/Sqls.h
459 459
		Vector <Value> value;
460 460
		SqlBool        remove;
461 461
		
462
		rval_default(Row);
462
		rval_default(Row)
463 463
		Row() {}
464 464
	};
465 465

  
uppsrc/TCore/setop.h
15 15

  
16 16
template <> inline unsigned GetHashValue(const SetOpCode& c) { return c; }
17 17

  
18
NTL_MOVEABLE(SetOpCode);
18
NTL_MOVEABLE(SetOpCode)
19 19

  
20 20
template<class V, class I>
21 21
Index<V> SetGetIndex(I begin, I end)
uppsrc/TSql/util.cpp
586 586
	__List##I(E__SCat); \
587 587
	return SelectHint(hint, set); \
588 588
}
589
__Expand(E__QSelectF);
589
__Expand(E__QSelectF)
590 590
*/
591 591
SqlSet DeleteHint(const char *hint, const SqlVal& table)
592 592
{
uppsrc/TSql/util.h
104 104

  
105 105
#define E__SelectHint(I)\
106 106
SqlSelect             SelectHint(const char *hint, __List##I(E__SqlVal));
107
__Expand(E__SelectHint);
107
__Expand(E__SelectHint)
108 108
*/
109 109
SqlSet                DeleteHint(const char *hint, const SqlVal& table);
110 110
SqlSet                DeleteSchemaHint(const char *hint, const SqlId& table);
uppsrc/TextDiffCtrl/DiffCtrl.cpp
190 190
	return fs;
191 191
}
192 192

  
193
};
193
}
uppsrc/TextDiffCtrl/DirDiff.cpp
93 93
	WhenIcon = [](const char *path) -> Image { return NativePathIcon(path); };
94 94
	
95 95
	Title("Compare directories");
96
};
96
}
97 97

  
98 98
void DirDiffDlg::GatherFilesDeep(Index<String>& files, const String& base, const String& path)
99 99
{
......
246 246
	return false;
247 247
}
248 248

  
249
};
249
}
uppsrc/TextDiffCtrl/PatchDiff.cpp
172 172
	rfile <<= p2;
173 173
}
174 174

  
175
};
175
}
uppsrc/TextDiffCtrl/TextCtrl.cpp
512 512
	SetSb(l + pos.y);
513 513
}
514 514

  
515
};
515
}
uppsrc/TextDiffCtrl/TextDiff.cpp
210 210
		dest.Add(TextSection(start1, end1 - start1, start2, end2 - start2, false));
211 211
}
212 212

  
213
};
213
}
uppsrc/TextDiffCtrl/TextDiffCtrl.h
322 322
	PatchDiff();
323 323
};
324 324

  
325
};
325
}
326 326

  
327 327
#endif
uppsrc/TextDiffCtrl/patch.cpp
206 206
	return Join(lines, crlf ? "\r\n" : "\n");
207 207
}
208 208

  
209
};
209
}
uppsrc/ide/Browser/Browser.h
175 175

  
176 176
	TopicInfo() {}
177 177

  
178
	rval_default(TopicInfo);
178
	rval_default(TopicInfo)
179 179
};
180 180

  
181 181
String          GetTopicPath(const TopicLink& link);
uppsrc/ide/Core/Core.h
327 327

  
328 328
		File()                            { Init(); }
329 329
		File(const String& s) : String(s) { Init(); }
330
		rval_default(File);
330
		rval_default(File)
331 331
	};
332 332
	struct Config {
333 333
		String name;
uppsrc/ide/IconDes/IconDes.h
37 37
	IdeIconEditPos() { filetime = Null; }
38 38
};
39 39

  
40
INITIALIZE(IconDes);
40
INITIALIZE(IconDes)
41 41

  
42 42
#endif
uppsrc/ide/LayDes/LayDes.h
56 56
	Image                      icon[2];
57 57
	Size                       iconsize[2];
58 58

  
59
	rval_default(LayoutType);	
59
	rval_default(LayoutType)
60 60

  
61 61
	LayoutType()               { iconsize[0] = iconsize[1] = Null; }
62 62
};
......
202 202
	String   SaveProperties(int y = 0) const;
203 203
	String   Save(int i, int y) const;
204 204

  
205
	rval_default(LayoutItem);
205
	rval_default(LayoutItem)
206 206

  
207 207
	LayoutItem()                      { csize.cx = -1; hide = false; charset = CHARSET_UNICODE; }
208 208
};
......
247 247
	bool        IsRedo();
248 248
	void        Redo();
249 249

  
250
	rval_default(LayoutData);
250
	rval_default(LayoutData)
251 251

  
252 252
	LayoutData() { size = Size(400, 200); charset = CHARSET_UNICODE; }
253 253
};
uppsrc/ide/SlideShow.cpp
81 81

  
82 82
INITBLOCK {
83 83
	RegisterGlobalConfig("SlideShow");
84
};
84
}
85 85

  
86 86
SlideShow::SlideShow()
87 87
{
uppsrc/ide/UppDlg.h
40 40
	Array<TemplateItem> item;
41 41
	Array<FileTemplate> file;
42 42
	
43
	rval_default(PackageTemplate);
43
	rval_default(PackageTemplate)
44 44
	PackageTemplate() {}
45 45
};
46 46

  
......
137 137
	int nc = CompareNoCase(a, b);
138 138
	if(nc) return nc < 0;
139 139
	return a < b;
140
};
140
}
141 141

  
142 142
struct SelectPackageDlg : public WithSelectPackageLayout<TopWindow> {
143 143
	virtual bool Key(dword key, int count);
uppsrc/ide/UppWspc.cpp
19 19
Font WorkspaceWork::ListFont()
20 20
{
21 21
	return StdFont();
22
};
22
}
23 23

  
24 24
void WorkspaceWork::SetErrorFiles(const Vector<String>& files)
25 25
{
uppsrc/ide/t.cpp
37 37
		Sort(ls);
38 38
	}
39 39

  
... This diff was truncated because it exceeds the maximum size that can be displayed.