diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-12-04 12:35:18 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-12-04 12:35:18 -0800 |
commit | bdfe648ad88513857c3f9ef670ac0cae47bd606c (patch) | |
tree | 2b77d74b4827a8ea81259f1a339af86342c7daef /ChangeLog | |
parent | 208f8a44f899460c182da8644a7cd982d18aade9 (diff) | |
download | txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.gz txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.bz2 txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.zip |
Eliminate the void * disease. Generic pointers are of mem_t *
from now on, which is compatible with unsigned char *.
No implicit conversion to or from this type, in C or C++.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1,3 +1,27 @@ +2009-12-04 Kaz Kylheku <kkylheku@gmail.com> + + Eliminate the void * disease. Generic pointers are of mem_t * + from now on, which is compatible with unsigned char *. + No implicit conversion to or from this type, in C or C++. + + * hash.c (make_hash): Convert void * to mem_t *. + + * lib.c (oom_realloc, chk_malloc, chk_realloc, vec_set_fill, + cobj, init): Convert to using mem_t *. + + * lib.h (mem_t): New typedef. + (struct cobj): Convert void * to mem_t *. + (oom_realloc, chk_malloc, chk_realloc, init): Declarations updated. + + * regex.c (regex_compile): Convert void * to mem_t *. + + * stream.c (snarf_line, string_out_put_string, make_stdio_stream, + make_pipe_stream, make_string_input_stream, + make_string_byte_input_stream, make_string_output_stream, + get_string_from_stream): Convert void * to mem_t *. + + * txr.c (oom_realloc_handler): Convert void * to mem_t *. + 2009-12-03 Kaz Kylheku <kkylheku@gmail.com> * gc.c (heap_min_bound, heap_max_bound): New static globals. |