-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add KSORT_INIT_STATIC()/etc to facilitate library ksort use
Add KSORT_INIT2()/etc that allow specification of a scope to be used for the functions generated. As the existing KSORT_INIT()/etc produce shared global functions, also add KSORT_INIT_STATIC()/etc that produce static functions -- which requires klib_unused, to avoid warnings about unused static functions. (cf 5ffc4a2.) `KSORT_INIT2(..., static klib_unused, ...)` would let `klib_unused` leak into user code, so providing an extra KSORT_INIT_STATIC() is better. Use this new static ksort in errmod.c and hts.c to avoid polluting the non-hts_-prefixed namespace.
- Loading branch information
Showing
3 changed files
with
31 additions
and
14 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