Skip to content

Commit c765a89

Browse files
committed
Sorted some functions internally into alphabetic order
1 parent 7e29caa commit c765a89

File tree

5 files changed

+40
-34
lines changed

5 files changed

+40
-34
lines changed

scripting/bits.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,18 @@ static int bit_tostring (lua_State *L)
156156

157157

158158
static const struct luaL_reg bitlib[] = {
159-
{"neg", bit_bnot}, // was bnot in Reuben's library
159+
160+
{"ashr", bit_arshift}, // was arshift in Reuben's library
160161
{"band", bit_band},
161162
{"bor", bit_bor},
162-
{"xor", bit_bxor}, // was bxor in Reuben's library
163+
{"mod", bit_mod}, // new
164+
{"neg", bit_bnot}, // was bnot in Reuben's library
163165
{"shl", bit_lshift}, // was lshift in Reuben's library
164166
{"shr", bit_rshift}, // was rshift in Reuben's library
165-
{"ashr", bit_arshift}, // was arshift in Reuben's library
166-
{"mod", bit_mod}, // new
167167
{"tonumber", bit_tonumber}, // new by Nick
168168
{"tostring", bit_tostring}, // new by Nick
169+
{"xor", bit_bxor}, // was bxor in Reuben's library
170+
169171
{NULL, NULL}
170172
};
171173

scripting/lbc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ static int Bneg(lua_State *L)
224224

225225
static const luaL_reg R[] =
226226
{
227+
227228
{ "__add", Badd },
228229
{ "__div", Bdiv },
229230
{ "__eq", Beq },
@@ -247,6 +248,7 @@ static const luaL_reg R[] =
247248
{ "sqrt", Bsqrt },
248249
{ "sub", Bsub },
249250
{ "tostring", Bstring },
251+
250252
{ NULL, NULL }
251253
};
252254

scripting/lua_compress.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,17 +541,17 @@ static int l_split (lua_State *L) {
541541
static const struct luaL_reg compresslib [] =
542542
{
543543

544+
{"base64decode", mydecodebase64},
545+
{"base64encode", myencodebase64},
544546
{"compress", mycompress},
545547
{"decompress", mydecompress},
548+
{"fromhex", utils_fromhex},
546549
{"hash", myhash},
547-
{"sha256", utils_sha256},
548550
{"md5", utils_md5},
549-
{"tohex", utils_tohex},
550-
{"fromhex", utils_fromhex},
551-
{"base64encode", myencodebase64},
552-
{"base64decode", mydecodebase64},
553551
{"readdir", getdirectory},
552+
{"sha256", utils_sha256},
554553
{"split", l_split},
554+
{"tohex", utils_tohex},
555555

556556
{NULL, NULL}
557557
};

scripting/lua_progressdlg.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ static int Lprogress_new(lua_State *L)
104104

105105

106106
static const luaL_reg progress_dialog_meta[] = {
107-
{"status", Lprogress_setstatus}, // set status description
108-
{"range", Lprogress_setrange}, // set range
109-
{"position", Lprogress_setposition},// set position
107+
108+
{"__gc", Lprogress_gc},
109+
{"__tostring", Lprogress_tostring},
110110
{"checkcancel",Lprogress_checkcancel},// cancelled?
111+
{"close", Lprogress_gc}, // close dialog (same as garbage-collect)
112+
{"position", Lprogress_setposition},// set position
113+
{"range", Lprogress_setrange}, // set range
111114
{"setstep", Lprogress_setstep}, // set step amount?
115+
{"status", Lprogress_setstatus}, // set status description
112116
{"step", Lprogress_stepit}, // step it
113-
{"close", Lprogress_gc}, // close dialog (same as garbage-collect)
114-
{"__gc", Lprogress_gc},
115-
{"__tostring", Lprogress_tostring},
117+
116118
{NULL, NULL}
117119
};
118120

scripting/lua_utils.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,32 +1397,32 @@ static int getfontfamilies (lua_State *L)
13971397
static const struct luaL_reg xmllib [] =
13981398
{
13991399

1400-
{"msgbox", msgbox}, // msgbox - not Unicode
1401-
{"umsgbox", umsgbox}, // msgbox - UTF8
1402-
{"inputbox", inputbox},
1403-
{"editbox", editbox},
1400+
{"activatenotepad", activatenotepad},
1401+
{"appendtonotepad", appendtonotepad},
1402+
{"callbackslist", callbackslist},
14041403
{"choose", choose},
1405-
{"listbox", listbox},
1406-
{"multilistbox", multilistbox},
1407-
{"xmlread", xmlread},
1408-
{"functionlist", functionlist},
1409-
{"functionargs", functionargs},
1410-
{"filepicker", filepicker},
14111404
{"directorypicker", directorypicker},
1405+
{"edit_distance", edit_distance},
1406+
{"editbox", editbox},
1407+
{"filepicker", filepicker},
14121408
{"fontpicker", fontpicker},
1413-
{"metaphone", metaphone},
1409+
{"functionargs", functionargs},
1410+
{"functionlist", functionlist},
1411+
{"getfontfamilies", getfontfamilies},
14141412
{"info", info},
1413+
{"inputbox", inputbox},
1414+
{"listbox", listbox},
1415+
{"metaphone", metaphone},
1416+
{"msgbox", msgbox}, // msgbox - not Unicode
1417+
{"multilistbox", multilistbox},
1418+
{"showdebugstatus", showdebugstatus},
14151419
{"spellcheckdialog", spellcheckdialog},
1416-
{"edit_distance", edit_distance},
1417-
{"utf8encode", utf8encode},
1420+
{"umsgbox", umsgbox}, // msgbox - UTF8
14181421
{"utf8decode", utf8decode},
1419-
{"utf8valid", utf8valid},
1422+
{"utf8encode", utf8encode},
14201423
{"utf8sub", utf8sub},
1421-
{"appendtonotepad", appendtonotepad},
1422-
{"activatenotepad", activatenotepad},
1423-
{"showdebugstatus", showdebugstatus},
1424-
{"getfontfamilies", getfontfamilies},
1425-
{"callbackslist", callbackslist},
1424+
{"utf8valid", utf8valid},
1425+
{"xmlread", xmlread},
14261426

14271427
{NULL, NULL}
14281428
};

0 commit comments

Comments
 (0)