Commit Graph

143 Commits (9672a1091e9a93873e6ed5abe0ab63fb77ec95c2)

Author SHA1 Message Date
Daniel Kolesa 41a7eb7255 remove result from CsState 2016-08-11 18:21:18 +01:00
Daniel Kolesa 97c63951e5 pass result to command callbacks instead of setting it via struct 2016-08-11 18:14:18 +01:00
Daniel Kolesa a8b6843a88 remove lib_list.hh and merge all to lib_list.cc 2016-08-11 17:26:03 +01:00
Daniel Kolesa cfb3a816bb unify the run_ functions a bit 2016-08-11 17:21:26 +01:00
Daniel Kolesa 133857205d remove ID_STUFF from public header 2016-08-10 18:33:43 +01:00
Daniel Kolesa 607e4ae1b9 MaxComargs is no longer relevant 2016-08-10 17:29:39 +01:00
Daniel Kolesa 96f8f2f7d0 make it easier to grep 2016-08-10 00:54:51 +01:00
Daniel Kolesa b7ae0c500a exponse concat/format code to API and properly utilize it 2016-08-10 00:12:32 +01:00
Daniel Kolesa 8c5fd534bb get rid of some useless code 2016-08-08 22:05:29 +01:00
Daniel Kolesa d1e877eeb5 remove get_str_len 2016-08-06 20:07:41 +01:00
Daniel Kolesa 43bf22e625 make set_macro not public 2016-08-06 19:51:32 +01:00
Daniel Kolesa 60b0e60dfc bytecode is now an opaque type 2016-08-06 19:12:38 +01:00
Daniel Kolesa f1b85d9133 rename Bytecode to BytecodeRef 2016-08-06 18:38:05 +01:00
Daniel Kolesa a0130089cf add code_is_empty API to check for dummy bytecode and remove cs_private 2016-08-06 17:33:01 +01:00
Daniel Kolesa db98021883 merge baselib back to main cubescript and make it initialize always 2016-08-06 16:34:10 +01:00
Daniel Kolesa f4e1c1a32e add copy_arg to TaggedValue 2016-08-03 23:03:44 +01:00
Daniel Kolesa 395615e2cb start splitting into multiple source files 2016-08-02 01:23:47 +01:00
Daniel Kolesa c50445ec34 move length to IdentValue 2016-08-01 21:46:50 +01:00
Daniel Kolesa 38e4270b56 fixes and cleanups 2016-08-01 21:35:42 +01:00
Daniel Kolesa 7e35653a43 do not pass CsState, can easily capture it when adding command 2016-08-01 19:33:40 +01:00
Daniel Kolesa d979a51c88 allow lambda captures on commands 2016-08-01 19:17:13 +01:00
Daniel Kolesa c6db0900ac remove commandn entirely (all funcs are converted) 2016-08-01 19:05:47 +01:00
Daniel Kolesa 37e7cc74af remove more commandn 2016-08-01 18:37:38 +01:00
Daniel Kolesa 3b478b111d disallow zero and one argument commandn 2016-08-01 03:00:58 +01:00
Daniel Kolesa 3000237c0a get rid of commandn from string lib 2016-08-01 02:54:10 +01:00
Daniel Kolesa 2e81a402f1 more commandn replacements 2016-08-01 01:52:35 +01:00
Daniel Kolesa a5903a6e0a remove some more commandn 2016-08-01 01:42:53 +01:00
Daniel Kolesa 14b13365ab limit commandn to 6 arguments at most 2016-08-01 01:31:56 +01:00
Daniel Kolesa 453776d362 use add_command a little more 2016-08-01 01:27:05 +01:00
Daniel Kolesa a12f01a8a2 var callbacks can now be lambdas 2016-08-01 01:10:21 +01:00
Daniel Kolesa 14678e0861 remove CommandFuncS 2016-08-01 00:49:28 +01:00
Daniel Kolesa 1c9d3d3aba swap add_command and add_commandn 2016-08-01 00:38:11 +01:00
Daniel Kolesa a32b2b970a use TvalRange for concat-commandn 2016-08-01 00:31:17 +01:00
Daniel Kolesa 49e09a117e add get_strr to retrieve read-only range without allocs 2016-07-31 00:49:32 +01:00
Daniel Kolesa 6922853d66 get_code for TaggedValue 2016-07-30 21:42:49 +01:00
Daniel Kolesa 364ca98e54 unexpose some APIs 2016-07-27 18:52:01 +01:00
Daniel Kolesa 0010511b6e format 2016-07-26 00:42:34 +01:00
Daniel Kolesa f87de11b19 per-thread rundepth instead of per-state 2016-07-23 01:08:58 +01:00
Daniel Kolesa d584bc3ca6 per-state rundepth 2016-07-21 18:47:24 +01:00
Daniel Kolesa 72fe46a097 style updates 2016-07-17 18:50:40 +01:00
Daniel Kolesa 4b444c6eca get rid of some global state usage 2016-07-16 19:54:30 +01:00
Daniel Kolesa 6f14783bd3 remove a global 2016-07-15 18:33:04 +01:00
Daniel Kolesa 66c0414395 get rid of most of global state 2016-07-13 20:13:52 +01:00
Daniel Kolesa f8034d2b74 add support for setting ostd::String 2016-07-13 18:46:35 +01:00
Daniel Kolesa ed436f71a7 fix build with latest ostd 2016-05-18 21:08:46 +01:00
Daniel Kolesa 4d48366a24 visibility support 2016-03-17 21:21:45 +00:00
Daniel Kolesa 2dffd79d46 fix shadow warnings 2016-03-04 21:30:46 +00:00
Daniel Kolesa 78568e4161 change stdlib init stuff 2016-02-28 22:21:28 +00:00
Daniel Kolesa 38f3f5da64 trailing newlines 2016-02-07 21:22:39 +00:00
Daniel Kolesa e92c6ad831 style 2016-02-06 23:17:28 +00:00
Daniel Kolesa 22f9373fe7 unexpose raw bytecode ref/unref (always use Bytecode objects) 2015-12-24 15:57:19 +01:00
Daniel Kolesa f279ac4d51 fixes 2015-10-14 02:02:38 +01:00
Daniel Kolesa 352dfd58f6 user definable flags for commands 2015-10-10 21:22:56 +01:00
Daniel Kolesa fb11619ef7 IDF_NOEXPAND for commands taking arg range 2015-10-09 18:50:43 +01:00
Daniel Kolesa 50d93877e0 slight command func refactoring 2015-10-08 18:34:38 +01:00
Daniel Kolesa 056acaf959 remove __cdecl 2015-09-21 20:59:17 +01:00
Daniel Kolesa 9d54a5820c remove msg arg from run_file 2015-09-12 16:22:48 +01:00
Daniel Kolesa b26452b42f Revert "specifying VN as arg will additionally pass numargs"
This reverts commit b2c5833355.
2015-08-27 01:45:36 -07:00
Daniel Kolesa b2c5833355 specifying VN as arg will additionally pass numargs 2015-08-27 01:27:24 -07:00
Daniel Kolesa 03dc94841b add TvalRange as alias for pointer range of tagged values 2015-08-27 01:16:22 -07:00
Daniel Kolesa 3f1b6cd9c5 concat funcs now accept ConstCharRange 2015-08-25 00:19:26 -07:00
Daniel Kolesa 22947206a7 cleanups 2015-08-25 00:01:58 -07:00
Daniel Kolesa f3a881cccd simplify code 2015-08-13 23:26:04 +01:00
Daniel Kolesa a8ca0b376f private 2015-08-13 23:18:48 +01:00
Daniel Kolesa bc6a85d49c add set_str_dup method to TaggedValue which will automatically duplicate memory 2015-08-13 22:55:30 +01:00
Daniel Kolesa 4712c45847 make use of the newly known string length 2015-08-13 22:46:03 +01:00
Daniel Kolesa 538a7b73e1 store length information in type/valtype 2015-08-13 22:23:46 +01:00
Daniel Kolesa c684239bf0 float operator fixes + encapsulation 2015-08-13 21:50:13 +01:00
Daniel Kolesa 634c52b168 rename identvalueptr fields 2015-08-13 21:08:57 +01:00
Daniel Kolesa b7995d4ee9 saner default flags for new_ident 2015-08-13 19:51:15 +01:00
Daniel Kolesa 061d181ee7 automatically remove the unknown flag on push by default 2015-08-13 19:11:54 +01:00
Daniel Kolesa 2260c1ec0a remove parselist 2015-08-13 01:18:49 +01:00
Daniel Kolesa a3c3b65251 more list parser usages 2015-08-13 00:57:00 +01:00
Daniel Kolesa 146b9851fd use list parser more 2015-08-13 00:42:59 +01:00
Daniel Kolesa 97b070b972 use listparser more 2015-08-13 00:16:52 +01:00
Daniel Kolesa 7ed92f19cc unescaped element functionality in the list parser 2015-08-12 21:38:44 +01:00
Daniel Kolesa dd6707ecbb add range-based list parser 2015-08-12 20:41:54 +01:00
Daniel Kolesa 46b7ed6f83 move out private stuff from CsState 2015-08-12 18:50:02 +01:00
Daniel Kolesa 372b1055c5 more fixes 2015-08-12 02:54:13 +01:00
Daniel Kolesa d81b166544 add range-based str parse 2015-08-12 02:11:22 +01:00
Daniel Kolesa aaf4d1581d more source changes 2015-08-11 22:57:06 +01:00
Daniel Kolesa 6244c5db75 start replacing direct gs.source access 2015-08-11 22:47:25 +01:00
Daniel Kolesa 30b1d98298 more fixes 2015-08-11 22:16:20 +01:00
Daniel Kolesa 7c16cebf8d get_str now returns ConstCharRange 2015-08-11 22:01:56 +01:00
Daniel Kolesa 605ac40532 move some defs from header to source 2015-08-11 21:41:12 +01:00
Daniel Kolesa 51ba94432a remove cs_str_unescape 2015-08-11 02:21:48 +01:00
Daniel Kolesa 64d770474f use the new algo stuff 2015-08-11 01:39:25 +01:00
Daniel Kolesa 634277a31c compleblockstr range usage 2015-08-11 01:21:39 +01:00
Daniel Kolesa d361375d21 initial removal of the p param 2015-08-11 00:46:30 +01:00
Daniel Kolesa cd04af0f0e compileval in GenState 2015-08-10 19:45:22 +01:00
Daniel Kolesa c470bab892 fix 2015-08-09 01:17:06 +01:00
Daniel Kolesa eb2c3fa831 start getting rid of null terminated strings 2015-08-09 00:14:56 +01:00
Daniel Kolesa bcc7b3d317 rename things 2015-08-08 17:13:19 +01:00