From 64c046ab4b00ffeab223364b70b75588bac31978 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 1 Jun 2023 22:20:53 +0100 Subject: Move the data definitions to its own include --- src/data.h | 8 ++++++++ src/main.c | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 src/data.h diff --git a/src/data.h b/src/data.h new file mode 100644 index 0000000..6fc1257 --- /dev/null +++ b/src/data.h @@ -0,0 +1,8 @@ +#ifndef _DATA_H +#define _DATA_H + +/* embedded data */ +extern const uint8_t binary_palette_start[]; +extern const uint8_t binary_sprites_start[]; + +#endif // _DATA_H diff --git a/src/main.c b/src/main.c index dd3cffa..a8a6b77 100644 --- a/src/main.c +++ b/src/main.c @@ -5,11 +5,9 @@ #include +#include "data.h" #include "vga.h" -/* embedded data */ -extern const uint8_t binary_palette_start[]; - int main(int argc, char *argv[]) { /* set VGA 320x200, 256 col */ -- cgit v1.2.3