From a2f7f962ced158dbceebbfc0c3dfbbc58b119e55 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 21 Jul 2024 18:33:01 -0400 Subject: 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. --- devel.but | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'devel.but') diff --git a/devel.but b/devel.but index 71bc60d..209c501 100644 --- a/devel.but +++ b/devel.but @@ -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: -- cgit v1.1