Commit Graph

158 Commits (3a5b8492b568235b58d3eadee0ffaa7a988849fc)

Author SHA1 Message Date
Daniel Kolesa 3a5b8492b5 complete CsValue copy/move semantics 2016-09-06 23:39:09 +02:00
Daniel Kolesa 01c464c619 start re-doing the CsValue interface to support copy/move semantics 2016-09-06 22:23:12 +02:00
Daniel Kolesa 16c99e1f9e always cleanup when doing set_stuff 2016-09-06 20:48:24 +02:00
Daniel Kolesa 7aebfe1b2e split CsValue implementation into a separate unit 2016-09-06 19:27:54 +02:00
Daniel Kolesa 605efea9e2 add a hook func that is called on every code invocation 2016-09-05 21:34:48 +02:00
Daniel Kolesa fd8a07f47a more internal changes 2016-09-02 21:49:05 +01:00
Daniel Kolesa 25894b469e make the arg/code APIs for CsAlias purely internal 2016-09-02 21:42:10 +01:00
Daniel Kolesa b687bd6016 cleanups 2016-09-02 20:30:00 +01:00
Daniel Kolesa 52eb44e0bc hide command members 2016-09-02 20:27:37 +01:00
Daniel Kolesa bb4c34a3fb better type list verification, don't print message on bad new_command 2016-09-02 19:34:59 +01:00
Daniel Kolesa 6c0b6da94d overridable print_var stuff and overridable out/err streams 2016-09-02 19:22:19 +01:00
Daniel Kolesa 8f1be31ba2 remove io library (not general enough) 2016-09-02 18:59:04 +01:00
Daniel Kolesa 1b12781473 rename add_command to new_command 2016-09-02 18:03:01 +01:00
Daniel Kolesa d36d24808c many cleanups and api updates 2016-09-02 18:01:25 +01:00
Daniel Kolesa 6aca518614 re-expose command and add hints/completion for now at least with linenoise 2016-09-02 17:20:53 +01:00
Daniel Kolesa 9672a1091e add support for several line editing approaches (pure stdin, linenoise, libedit, readline) 2016-09-01 17:50:02 +01:00
Daniel Kolesa ae2a65749b fix garbage buffers 2016-08-31 21:50:43 +01:00
Daniel Kolesa 5ee9668bfc fix ambiguous ctor 2016-08-31 21:46:25 +01:00
Daniel Kolesa 5cfec4ac4e move some code around 2016-08-31 19:54:08 +01:00
Daniel Kolesa 6494870a54 value getter for CsAlias 2016-08-31 19:18:53 +01:00
Daniel Kolesa a597a34050 remove more unnecessary APIs 2016-08-31 18:59:05 +01:00
Daniel Kolesa 2a71bd3409 use CsStackedValue appropriately 2016-08-31 18:49:24 +01:00
Daniel Kolesa 9a95347709 use a strongly typed enum for CsValue type 2016-08-30 22:30:40 +01:00
Daniel Kolesa 5e1d4c3f39 raw members of CsValue are now private 2016-08-30 21:55:35 +01:00
Daniel Kolesa 83c50ebf67 cleanups 2016-08-30 21:29:09 +01:00
Daniel Kolesa fd6eca6529 prefix APIs 2016-08-29 18:17:11 +01:00
Daniel Kolesa 48cd1efa80 Bytecode -> CsBytecode 2016-08-28 18:40:18 +01:00
Daniel Kolesa e638b388f2 move some implementations 2016-08-25 21:24:23 +01:00
Daniel Kolesa d288833c65 no need to store the core vars in the state struct 2016-08-24 18:54:24 +01:00
Daniel Kolesa c29cd02263 internal storage for vars 2016-08-22 18:43:58 +01:00
Daniel Kolesa 3ad72a795e get_var_value -> get_value 2016-08-22 18:18:22 +01:00
Daniel Kolesa b8f3e527d5 initial support for custom allocators 2016-08-21 01:34:33 +01:00
Daniel Kolesa d80e922913 more cleanups 2016-08-21 00:51:45 +01:00
Daniel Kolesa 5c3aa477d2 cleanups 2016-08-21 00:37:34 +01:00
Daniel Kolesa 4408b849da type-generic add_ident 2016-08-20 16:52:54 +01:00
Daniel Kolesa 77b35f2d52 cleanup preparations 2016-08-20 16:40:00 +01:00
Daniel Kolesa 8be7f74f5f make init_libs a method on state 2016-08-18 19:47:29 +01:00
Daniel Kolesa 303e219ad0 rename TaggedValue 2016-08-18 19:38:30 +01:00
Daniel Kolesa 8418b8bb9e clean up the other var interfaces 2016-08-18 03:14:55 +01:00
Daniel Kolesa f3b3751f76 clean up Ident interface 2016-08-18 02:53:51 +01:00
Daniel Kolesa f0f5fbc1ba clean up constructors and hide Command away from public API 2016-08-18 02:00:44 +01:00
Daniel Kolesa 3f406de1de unify TaggedValue and IdentValue (no more separate valtype etc) 2016-08-18 01:19:12 +01:00
Daniel Kolesa 479c245190 safe typecasting accessors for Ident 2016-08-17 23:54:57 +01:00
Daniel Kolesa 066c6b045f move all var related info/storage to the respective var types 2016-08-17 23:36:37 +01:00
Daniel Kolesa f275f06a5f move all alias related stuff to Alias 2016-08-17 23:18:36 +01:00
Daniel Kolesa e7ce1d2b1e move more code around 2016-08-17 23:06:39 +01:00
Daniel Kolesa 55d90f89cf split away var stuff a bit 2016-08-17 22:29:31 +01:00
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