diff options
| author | Franklin Wei <franklin@rockbox.org> | 2024-07-21 18:33:01 -0400 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2024-07-31 23:29:00 +0100 |
| commit | a2f7f962ced158dbceebbfc0c3dfbbc58b119e55 (patch) | |
| tree | b7e532d5060639f8090e0557ea46cbbe7acfcf5a /devel.but | |
| parent | 5de69c22b0ff037f648a740a7c01869e78587df2 (diff) | |
| download | puzzles-a2f7f962ced158dbceebbfc0c3dfbbc58b119e55.zip puzzles-a2f7f962ced158dbceebbfc0c3dfbbc58b119e55.tar.gz puzzles-a2f7f962ced158dbceebbfc0c3dfbbc58b119e55.tar.bz2 puzzles-a2f7f962ced158dbceebbfc0c3dfbbc58b119e55.tar.xz | |
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.
Diffstat (limited to 'devel.but')
| -rw-r--r-- | devel.but | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -5330,6 +5330,13 @@ This macro, defined in the main Puzzles header file, strips the modifier flags from the key code passed as an argument. It is equivalent to a bitwise-AND with \cw{~MOD_MASK}. +\S{utils-swap-regions} \cw{swap_regions()} + +\c void swap_regions(void *av, void *bv, size_t size); + +Swap two regions of memory of \cw{size} bytes. The two regions must +not overlap. + \C{writing} How to write a new puzzle This chapter gives a guide to how to actually write a new puzzle: |