Daniel Kolesa
6821260c37
separate header/impl for strman
2021-03-23 01:25:47 +01:00
Daniel Kolesa
4588ae2373
separate cs_state, cs_std
2021-03-23 01:11:21 +01:00
Daniel Kolesa
f9a49ffba7
get rid of emptyblock
2021-03-22 22:01:49 +01:00
Daniel Kolesa
63251f0eac
add cs_callable to replace std::function
...
now function data can be allocated with our own allocator as
well, plus we get guarantees on small storage; this type is
move-only, and it's also more memory efficient than std::function,
at least the libstdc++ implementation
2021-03-22 01:01:51 +01:00
Daniel Kolesa
a591384afd
use our allocator for more buffers
2021-03-21 06:13:45 +01:00
Daniel Kolesa
be71d3a4b9
rework allocator errors and error message storage buffer
2021-03-20 21:06:26 +01:00
Daniel Kolesa
68669413cc
get rid of most remaining ostd usage
2021-03-20 06:52:10 +01:00
Daniel Kolesa
5648c1a757
use string_view everywhere that returns or takes a string
2021-03-20 04:10:27 +01:00
Daniel Kolesa
70d7e15ed5
eliminate cs_vector/cs_map, use our allocator for all state
2021-03-19 23:05:19 +01:00
Daniel Kolesa
ac1af69d96
move cs_valbuf/charbuf before cs_shared_state
2021-03-19 22:54:22 +01:00
Daniel Kolesa
f41462deaf
move cs_allocator out of cs_shared_state
2021-03-19 22:53:42 +01:00
Daniel Kolesa
b81e419db6
get rid of cs_vector in most places
2021-03-19 22:49:52 +01:00
Daniel Kolesa
0ca8561d5d
add cs_valbuf
2021-03-19 22:40:11 +01:00
Daniel Kolesa
2e725771e4
eliminate remaining cs_string
2021-03-19 22:35:39 +01:00
Daniel Kolesa
4e5e0f5de8
get rid of cs_string in codegen
2021-03-19 22:25:38 +01:00
Daniel Kolesa
b27f8dee91
use state's allocator to manage cs_strman resources
2021-03-19 03:10:02 +01:00
Daniel Kolesa
47b87ab936
get rid of cs_string in lib_list
2021-03-19 02:55:59 +01:00
Daniel Kolesa
e74d8b5bef
get rid of cs_string in lib_str
2021-03-19 02:50:48 +01:00
Daniel Kolesa
5ee7e27839
add cs_charbuf (mutable buffer controlled by our allocator)
...
also use it in a few places
2021-03-19 02:44:29 +01:00
Daniel Kolesa
08212df80f
move shared state into cs_util
2021-03-19 02:27:36 +01:00
Daniel Kolesa
b42da1e56f
add custom buffer allocation into string manager
2021-03-19 01:00:11 +01:00
Daniel Kolesa
d3ec4a47dd
ditch cs_string from public headers + style fix
2021-03-18 23:56:25 +01:00
Daniel Kolesa
dcae5b30b2
initial implementation of unique/interned string manager
2021-03-16 00:45:09 +01:00
Daniel Kolesa
8805594bc2
style fixes
2018-04-27 23:53:55 +02:00
Daniel Kolesa
d01349886a
remove slice_until
2017-06-15 20:44:09 +02:00
Daniel Kolesa
8d62c09f88
fix build
2017-04-23 15:34:45 +02:00
Daniel Kolesa
6b17c4594f
remove slice_until
2017-03-31 03:18:26 +02:00
Daniel Kolesa
14436d6aa0
fix build
2017-02-16 20:51:03 +01:00
Daniel Kolesa
8343979e03
fix build after style update
2017-02-16 19:07:22 +01:00
Daniel Kolesa
41eb8b211f
begin naming scheme rework
2017-02-13 18:11:19 +01:00
Daniel Kolesa
2536179500
use standard type traits
2017-02-09 20:59:14 +01:00
Daniel Kolesa
d88e9de11a
use unordered_map
2017-01-31 19:28:34 +01:00
Daniel Kolesa
d14c8f8593
update to latest ostd
2017-01-25 01:57:33 +01:00
Daniel Kolesa
57478f6866
move to std::vector
2017-01-25 01:18:29 +01:00
Daniel Kolesa
79b1a031ca
use new ostd features
2016-11-15 22:54:05 +01:00
Daniel Kolesa
ed65356dbe
automagically figure out CsInt minimum and add some extra assertions
2016-11-12 19:15:28 +01:00
Daniel Kolesa
58b8f3ba54
make some types not configurable
2016-11-11 22:19:51 +01:00
Daniel Kolesa
5674375614
clean up the call stack in a scoped way properly always
2016-09-08 23:42:14 +02:00
Daniel Kolesa
cdb5a5f6f8
source tree reorg
2016-09-07 22:57:28 +02:00