Commit Graph

111 Commits (66c707a232cebe30567868bd0e4b0e6b282ce091)

Author SHA1 Message Date
Daniel Kolesa 66c707a232 start splitting Ident 2016-08-17 22:04:43 +01:00
Daniel Kolesa 03c3145956 store idents by pointer 2016-08-17 21:21:16 +01:00
Daniel Kolesa 32335049fa reduce the amount of direct idents accesses 2016-08-17 21:03:11 +01:00
Daniel Kolesa caf30eaa03 clean up cubescript.cc 2016-08-17 17:53:38 +01:00
Daniel Kolesa 93f20b1fae cleanups 2016-08-15 18:55:22 +01:00
Daniel Kolesa a638e460c5 cleanups 2016-08-15 18:23:44 +01:00
Daniel Kolesa 7634251951 add cs_util with portable string->integer and string->float conversions 2016-08-15 02:19:59 +01:00
Daniel Kolesa 17511ab844 configuration header with types 2016-08-14 17:35:38 +01:00
Daniel Kolesa 52d8c23a4d ID_VAR is now ID_IVAR 2016-08-14 16:15:56 +01:00
Daniel Kolesa e518679451 split code parser/generator into its own source file 2016-08-14 16:14:10 +01:00
Daniel Kolesa 0cf5bb210a move things around a bit more 2016-08-14 16:05:55 +01:00
Daniel Kolesa cf2a266511 move debug stuff to VM 2016-08-14 16:02:46 +01:00
Daniel Kolesa 75319a73ec cleanups (centralize bytecode deletes) 2016-08-13 00:26:16 +01:00
Daniel Kolesa 8f8abd9bc1 move some funcs around 2016-08-12 18:31:56 +01:00
Daniel Kolesa 839dd29299 make set_macro an API again (no point in blocking it for now) 2016-08-12 18:14:22 +01:00
Daniel Kolesa edd32bf56b split VM into its own source file 2016-08-12 17:39:11 +01:00
Daniel Kolesa 6f603a0b5c remove buffer-writing cutstring/cutword 2016-08-12 17:07:51 +01:00
Daniel Kolesa 0df0f41507 localize the reinterpret casts to run_ret more 2016-08-11 18:47:04 +01:00
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