diff options
author | Simon Rettberg | 2021-04-06 14:43:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-07 13:38:37 +0200 |
commit | 38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch) | |
tree | 9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /hacks/m6502.c | |
parent | Maybe not remove, but ... (diff) | |
download | xscreensaver-openslx.tar.gz xscreensaver-openslx.tar.xz xscreensaver-openslx.zip |
Diffstat (limited to 'hacks/m6502.c')
-rw-r--r-- | hacks/m6502.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/hacks/m6502.c b/hacks/m6502.c index d7c78e1..fb9f9c2 100644 --- a/hacks/m6502.c +++ b/hacks/m6502.c @@ -12,19 +12,18 @@ * Created: 07-May-2007 */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif -#if defined(HAVE_STDINT_H) -#include <stdint.h> -#elif defined(HAVE_INTTYPES_H) -#include <inttypes.h> -#endif -#include <string.h> #include "screenhack.h" #include "analogtv.h" #include "asm6502.h" +#include <string.h> + +#if defined(HAVE_STDINT_H) +# include <stdint.h> +#elif defined(HAVE_INTTYPES_H) +# include <inttypes.h> +#endif + # ifdef __GNUC__ __extension__ /* don't warn about "string length is greater than the length ISO C89 compilers are required to support" when includng @@ -80,10 +79,6 @@ plot6502(Bit8 x, Bit8 y, Bit8 color, void *closure) st->pixels[x][y] = color; } -#undef countof -#define countof(x) (sizeof((x))/sizeof((*x))) - - static void start_rand_bin_prog(machine_6502 *machine, struct state *st){ int n = st->which; |