From a483482082d44c8b19dbcf45ac3e574ae6c56556 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 16 Sep 2022 17:45:31 -0700 Subject: [PATCH] Revert "onefile: isaac64.c vs yn()" This reverts commit 94945a719afc0aa08eaff9aa1e0e2fbf159bf388. It was too intrusive and can be handled by the 'onefile' script by compiling isaac64.c before any source file that includes hack.h. --- src/isaac64.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/isaac64.c b/src/isaac64.c index 89229d1f6..76cb769fc 100644 --- a/src/isaac64.c +++ b/src/isaac64.c @@ -7,25 +7,11 @@ * Changes for NetHack: * include config.h; * skip rest of file if USE_ISAAC64 isn't defined there; - * yn() hackery; * re-do 'inline' handling. */ #include "config.h" #ifdef USE_ISAAC64 -/* - * OSX declares yn() in a section labelled - * "POSIX/UNIX extensions to the C standard". - * - * Even when yn() is not a macro, expansion of nethack's yn() macro - * would break it. Matters for 'onefile' lint checking where contents - * of hack.h will be visible even though we only include config.h. - */ -#ifdef yn -#undef yn -#define _isaac64_hide_yn -#endif - #include #include #include "isaac64.h" @@ -185,17 +171,6 @@ uint64_t isaac64_next_uint(isaac64_ctx *_ctx,uint64_t _n){ while(((d+_n-1)&ISAAC64_MASK) defines yn() as a macro */ -#endif -#define yn(query) yn_function(query, ynchars, 'n', TRUE) -#undef _isaac64_hide_yn -#endif - #endif /* USE_ISAAC64 */ /*isaac64.c*/