diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-04 07:25:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-04 07:25:27 -0700 |
commit | d10711353bf9cf0c03a31f81478b57672065b6f0 (patch) | |
tree | 3a5e1b6f3252edd0e3c4492f41548fd3042de38a /gc.c | |
parent | dc552d93b35e4455d2d102a900fab5973ae8e6b8 (diff) | |
download | txr-d10711353bf9cf0c03a31f81478b57672065b6f0.tar.gz txr-d10711353bf9cf0c03a31f81478b57672065b6f0.tar.bz2 txr-d10711353bf9cf0c03a31f81478b57672065b6f0.zip |
linenoise: compile as C++ and use checked allocator.
* linenoise/linenoise.c (mem_t): New typedef, compatible
with the one in lib.h, which we don't want to include.
(chk_malloc, chk_realloc): External declarations added.
(unsupported_term): Make element type const char *.
(linenoiseAddCompletion): Use checked allocator, add
casts, use the superior "sizeof *dest_pointer_var"
expression in size calculations rather than
"sizeof (maybe_wrong_type)".
(abAppend, linenoiseHistoryAdd, linenoiseHistorySetMaxLen): Likewise.
* linenoise/linenoise.h: Remove unnecessary include
guards; we don't use them in this project.
Remove 'extern "C"'; we don't require C linkage when
compiling everything as C++.
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions