diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-02-15 06:14:38 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-02-15 06:14:38 -0800 |
commit | fdb485cac7236e2b66cbf0c1c61b95a598c3dabc (patch) | |
tree | 2286f1c189634f4207b9997e8347ed4fbbf82e09 /checkman.txr | |
parent | 3a53af3b6db3821fc614ba51c0f4ea25009a0374 (diff) | |
download | txr-fdb485cac7236e2b66cbf0c1c61b95a598c3dabc.tar.gz txr-fdb485cac7236e2b66cbf0c1c61b95a598c3dabc.tar.bz2 txr-fdb485cac7236e2b66cbf0c1c61b95a598c3dabc.zip |
structs: derive type id from pointer.
* struct.c (uptopow2_0, uptopow2_1, uptopow2_2, uptopow2_3,
uptopow2_4, uptopow2_5, uptopow2): New macros.
(struct struct_id_recycle): Declaration removed.
(struct_id_counter, struct_id_stack): Static variables
removed.
(get_struct_id, recycle_struct_id): Static functions removed.
(struct_type_finalize): No need to recycle struct ID;
don't call removed recycle_struct_id function.
(make_struct_type): Don't call removed get_struct_id to
allocate ID. Rather, cast the struct_type handle pointer to
unsigned integer, and divide by the next smallest power of
two.
Diffstat (limited to 'checkman.txr')
0 files changed, 0 insertions, 0 deletions