From b4a3e9b42bc40b735238f19da76caf661b9360ef Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 26 Jul 2023 00:53:41 +1000 Subject: [PATCH] Renamed drive system files, see #88 --- repl/{toy_drive_system.c => drive_system.c} | 2 +- repl/{toy_drive_system.h => drive_system.h} | 0 repl/lib_runner.c | 2 +- repl/repl_main.c | 1 + source/toy.h | 2 -- test/makefile | 2 +- test/test_drive_system.c | 2 +- test/test_libraries.c | 2 +- 8 files changed, 6 insertions(+), 7 deletions(-) rename repl/{toy_drive_system.c => drive_system.c} (99%) rename repl/{toy_drive_system.h => drive_system.h} (100%) diff --git a/repl/toy_drive_system.c b/repl/drive_system.c similarity index 99% rename from repl/toy_drive_system.c rename to repl/drive_system.c index a9a157b..0f674e5 100644 --- a/repl/toy_drive_system.c +++ b/repl/drive_system.c @@ -1,4 +1,4 @@ -#include "toy_drive_system.h" +#include "drive_system.h" #include "toy_memory.h" #include "toy_literal_dictionary.h" diff --git a/repl/toy_drive_system.h b/repl/drive_system.h similarity index 100% rename from repl/toy_drive_system.h rename to repl/drive_system.h diff --git a/repl/lib_runner.c b/repl/lib_runner.c index 494083e..eb91988 100644 --- a/repl/lib_runner.c +++ b/repl/lib_runner.c @@ -1,10 +1,10 @@ #include "lib_runner.h" #include "toy_memory.h" -#include "toy_drive_system.h" #include "toy_interpreter.h" #include "repl_tools.h" +#include "drive_system.h" #include diff --git a/repl/repl_main.c b/repl/repl_main.c index 5d3a8c0..4992dad 100644 --- a/repl/repl_main.c +++ b/repl/repl_main.c @@ -1,4 +1,5 @@ #include "repl_tools.h" +#include "drive_system.h" #include "lib_about.h" #include "lib_standard.h" #include "lib_random.h" diff --git a/source/toy.h b/source/toy.h index cdbf01e..c6332b5 100644 --- a/source/toy.h +++ b/source/toy.h @@ -17,13 +17,11 @@ The most important macro is `TOY_API`, which specifies functions intended for th * [toy_common.h](toy_common_h.md) * [toy_console_colors.h](toy_console_colors_h.md) * [toy_memory.h](toy_memory_h.md) -* [toy_drive_system.h](toy_drive_system_h.md) !*/ #include "toy_common.h" #include "toy_console_colors.h" #include "toy_memory.h" -#include "toy_drive_system.h" /*! ## Core Pipeline diff --git a/test/makefile b/test/makefile index 7e6e934..0fcffb2 100644 --- a/test/makefile +++ b/test/makefile @@ -4,7 +4,7 @@ IDIR +=. ../source ../repl CFLAGS +=$(addprefix -I,$(IDIR)) -g -Wall -W -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable LIBS += ODIR = obj -TARGETS = $(wildcard ../source/*.c) $(wildcard ../repl/lib_*.c) ../repl/repl_tools.c ../repl/toy_drive_system.c +TARGETS = $(wildcard ../source/*.c) $(wildcard ../repl/lib_*.c) ../repl/repl_tools.c ../repl/drive_system.c TESTS = $(wildcard test_*.c) OBJ = $(addprefix $(ODIR)/,$(TARGETS:../source/%.c=%.o)) $(addprefix $(ODIR)/,$(TESTS:.c=.o)) diff --git a/test/test_drive_system.c b/test/test_drive_system.c index 0fd7bd6..ed328f2 100644 --- a/test/test_drive_system.c +++ b/test/test_drive_system.c @@ -1,4 +1,4 @@ -#include "toy_drive_system.h" +#include "drive_system.h" #include "toy_console_colors.h" diff --git a/test/test_libraries.c b/test/test_libraries.c index 886ea6e..ce3c9d3 100644 --- a/test/test_libraries.c +++ b/test/test_libraries.c @@ -6,13 +6,13 @@ #include "toy_console_colors.h" #include "toy_memory.h" -#include "toy_drive_system.h" #include #include #include #include "../repl/repl_tools.h" +#include "../repl/drive_system.h" #include "../repl/lib_about.h" #include "../repl/lib_random.h"