Convert cord source files to valid C++ code
authorIvan Maidanski <ivmai@mail.ru>
Wed, 14 Feb 2018 08:26:45 +0000 (11:26 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 14 Feb 2018 08:26:45 +0000 (11:26 +0300)
commit246ad410e58674598ceb50fbfd39746f2e9902e9
tree6cd7bf2a3afee88601152f217c55602b484c323b
parentb2b0d2722ce8ba4471697f7296b3efda183b2911
Convert cord source files to valid C++ code

Issue #206 (bdwgc).

* cord/cordbscs.c (Concatenation, Function, Generic): Define struct
outside union (i.e. the union just uses them).
* cord/cordbscs.c (CORD_cat_char_star, CORD_from_fn_inner,
CORD_substr_checked): Cast GC_MALLOC_ATOMIC() result to char*.
* cord/cordprnt.c (CORD_vsprintf): Likewise.
* cord/cordxtra.c (CORD_cat_char, CORD_to_char_star,
CORD_from_char_star, CORD_ec_flush_buf): Likewise.
* cord/cordbscs.c (CORD_substr_checked): Remove register keyword for
"result" local variable.
cord/cordbscs.c
cord/cordprnt.c
cord/cordxtra.c