-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters