diff --git a/Makefile b/Makefile index c48aa2f..ca9eb9d 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ else WRAP := valgrind --show-error-list=yes --track-origins=yes --leak-check=full --show-leak-kinds=all endif -CFLAGS += -Wall -Wextra -Wpedantic --std=c2x +CFLAGS += -Wall -Wextra -Wpedantic # --std=c2x CPPFLAGS += -Ilibrary/ -I${OBJECT.d} -I${SOURCE.d} LDLIBS := -lm diff --git a/source/assembler.h b/source/assembler.h index f278f0d..9190c45 100644 --- a/source/assembler.h +++ b/source/assembler.h @@ -4,11 +4,12 @@ typedef signed int form; typedef unsigned int next; typedef unsigned char byte; +// XXX: we could be using binary literals IF SOMEONE WERE WILLING TO UPGRADE HIS GRANNY SYSTEM typedef enum { - D8 = 0b00, - D16 = 0b01, - D32 = 0b10, - D64 = 0b11, + D8 = 0, + D16 = 1, + D32 = 2, + D64 = 3, } size_index; typedef enum { diff --git a/source/eaxhla.c b/source/eaxhla.c index 1a12e68..5f30687 100644 --- a/source/eaxhla.c +++ b/source/eaxhla.c @@ -1,5 +1,3 @@ -#define _GNU_SOURCE - #include "eaxhla.h" /* This source file is responsible for holding data diff --git a/source/eaxhla.y b/source/eaxhla.y index 2eb49d2..2463d7a 100644 --- a/source/eaxhla.y +++ b/source/eaxhla.y @@ -2,8 +2,6 @@ #include "eaxhla.h" } %{ - #define _GNU_SOURCE - #include #include