mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Rename memswap() to swap_regions(). Consolidate duplicate implementations.
C99 reserves the mem* namespace for future expansion. Some Rockbox targets had issues with memswap() conflicting with another definition, so fix that.
This commit is contained in:

committed by
Simon Tatham

parent
5de69c22b0
commit
a2f7f962ce
@ -448,6 +448,12 @@ void copy_left_justified(char *buf, size_t sz, const char *str);
|
||||
function is NULL. Dynamically allocated, to be freed by caller. */
|
||||
char *button2label(int button);
|
||||
|
||||
/* Swap two regions of memory. The two regions must not
|
||||
* overlap. (Note: the natural name for this might be "memswap", but
|
||||
* the mem* namespace is reserved for future expansion by the C99
|
||||
* standard per clause 7.26.11.1.) */
|
||||
void swap_regions(void *av, void *bv, size_t size);
|
||||
|
||||
/*
|
||||
* dsf.c
|
||||
*/
|
||||
|
Reference in New Issue
Block a user