From c3be40e18656054f236450e69ce47b007fe0f342 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sat, 11 May 2024 02:55:46 +0200 Subject: [PATCH] Move src/main.c to src/tests/draw.c --- README.md | 6 +++--- src/{main.c => tests/draw.c} | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) rename src/{main.c => tests/draw.c} (97%) diff --git a/README.md b/README.md index 2b89fc2..518c8fa 100644 --- a/README.md +++ b/README.md @@ -22,15 +22,15 @@ The pixel format and screen coordinates are standardized, however, the HID input ## Platform: null This platform has a very simple implementation, that is essentially a no-op for any possible target. It's meant for running a basic test before one makes a proper port. -1. `cc src/main.c -Dunigi_flag_platform_null` +1. `cc src/tests/draw.c -Dunigi_flag_platform_null` ## Platform: dos This platform implements DOS (MS-DOS, FreeDOS, etc.), Tested with Open Watcom. -1. `cc src/main.c -Dunigi_flag_platform_dos` +1. `cc src/tests/draw.c -Dunigi_flag_platform_dos` ## Platform: sdl1 This platform implements the highly compatible SDL 1.2, which runs on all sorts of versions of Linux and Windows, as well as big endian CPUs. -1. `cc src/main.c -Dunigi_flag_platform_sdl1 -lSDL` +1. `cc src/tests/draw.c -Dunigi_flag_platform_sdl1 -lSDL` ## Advanced configuration ### No stdint.h diff --git a/src/main.c b/src/tests/draw.c similarity index 97% rename from src/main.c rename to src/tests/draw.c index b18289d..06e5b6a 100644 --- a/src/main.c +++ b/src/tests/draw.c @@ -1,5 +1,4 @@ -// This is a test and demonstration of unigi. You probably do not want to include this. -#include "main.h" +#include "../main.h" #ifndef unigi_flag_exception #include