]> Nishi Git Mirror - gwion.git/commitdiff
:broom: clean c tests
authorfennecdjay <fennecdjay@gmail.com>
Mon, 25 Sep 2023 06:14:44 +0000 (08:14 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 25 Sep 2023 06:15:51 +0000 (08:15 +0200)
19 files changed:
tests/driver/Makefile
tests/driver/simple_driver.c
tests/fork/fork_join.gw
tests/module/Makefile
tests/module/get_module.c
tests/module/module.c
tests/plug/Makefile
tests/plug/compile_file.c
tests/plug/compile_string.c
tests/plug/fail_on_next_arg.c
tests/plug/fail_on_next_arg2.c
tests/plug/invalid_names.c
tests/plug/invalid_names0.c
tests/plug/invalid_names1.c
tests/plug/invalid_names2.c
tests/plug/invalid_names3.c
tests/plug/static_string.c
tests/plug/str2decl.c
tests/plug/trig.c

index edc8d0e210bd80270fc3ca7c425baf057118a56e..35df5e9cc9cd7ae55ec7cdbe3d62cf8d8a74208d 100644 (file)
@@ -4,7 +4,7 @@ CC       ?= gcc
 NAME := ${NAME}
 SRC = ${NAME}.c
 OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
 
 # os specific
 ifeq ($(shell uname), Darwin)
index 6490254f609e00e4fe32a6877a572c013ff8ed52..78a2259449e3c330c11b56c293c8d4f513ae7bf7 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <unistd.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index e9526cf757d860503781ea61dd63cb4703d56c68..a18dd254a5562114c7c7a2daa698f42adabf7df8 100644 (file)
@@ -1,3 +1,3 @@
-fork { <<< __func__ >>>; } => var Fork f;
+fork { <<< __func__ >>>; } :=> var Fork f;
 second => now;
 f.join();
index edc8d0e210bd80270fc3ca7c425baf057118a56e..35df5e9cc9cd7ae55ec7cdbe3d62cf8d8a74208d 100644 (file)
@@ -4,7 +4,7 @@ CC       ?= gcc
 NAME := ${NAME}
 SRC = ${NAME}.c
 OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
 
 # os specific
 ifeq ($(shell uname), Darwin)
index c44b1773c26e88e3d123d6218dad5e806820fc8d..ec9cd3614afa2b0333ce86e4ba9895a29d784748 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <unistd.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index 7deb36b5eff87e830b092cc76bbf0819a9d1efa4..65e0df77113098a95011dee9644244bf33e9bbb1 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <unistd.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index bb37cb137027a708a3427c1371d313899c81e1e3..1432b6fea3946be9659fc8ad2c91fc770b1f553f 100644 (file)
@@ -4,7 +4,7 @@ CC       ?= gcc
 NAME := ${NAME}
 SRC = ${NAME}.c
 OBJ = $(SRC:.c=.o)
-CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og
+CFLAGS += -std=c99 ${INC} -Wall -Wextra -g -Og -D_GNU_SOURCE
 
 # os specific
 ifeq ($(shell uname), Darwin)
index e3d21c8b988d46747125fdb887a5c4f083108617..563affaaaa30d2f9143c5eca3d39d4219ba01109 100644 (file)
@@ -10,7 +10,6 @@
 #include "gwi.h"
 #include "compile.h"
 
-#define _XOPEN_SOURCE 500
 #include <string.h>
 GWION_IMPORT(compile_file) {
   DECL_OB(FILE *, file, = fopen("rm_me.gw", "w+"));
index df02fede68c10a69b9ebde62e8c8e27d1ab4a8f4..899381db607ed3c11f4bfd9d5ebc3badfe7a6ef3 100644 (file)
@@ -10,7 +10,6 @@
 #include "gwi.h"
 #include "compile.h"
 
-#define _XOPEN_SOURCE 500
 #include <string.h>
 GWION_IMPORT(compile_string) {
   return compile_string(gwi->gwion, __FILE__, "1;") ? GW_OK : GW_ERROR;
index bce8309bdb1862d5953614e63389a1c405938de6..5533acf09428b56bcd5b9cedbac650af53c04b1e 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index 1abbd5bf679277ec037799fbf3bf982617b8d3ed..07b02e6c2f014f984265fb3de7127e9937f94790 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index df7f9873b87ab3586019e4ea700cdcb7da181a4a..bda333ee175c3ee2669fa033a837de18a3d14a17 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index 186e9c1eaf3056937c3b2efacdbccc0a9651efa9..7f138d54a6d08dc7a2fe6f28b0ff47875cdb4313 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index b8aa08505e0d71a8df5fc9643ba0a39c331dd9a1..f795e9f2c908410e8d31206809b28454774e1311 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index f62630cb7947aedcf5b0f08ea6af870b732ca3a5..19ff0d836f9c3705b7e18ae6ef598119347e16a5 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index 8c125b070312341717204de0aa7382ea9e5a6f08..59426ea66e2dd61aec2a8c0fa909048a0d66b580 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index c8b1d85f1600a617f74ef50eedc97abe651b80d1..2f7d6f4600ca83b171d774cfe7b8c6ac2c22931e 100644 (file)
@@ -1,4 +1,3 @@
-#include <stdlib.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index 68128f1074dbbf8f5d1c6e8ad17eab7efeb89b08..72ee0089f70984645f465bc60797bb1723c66d2b 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"
index b0521872f7822313c12b8d8a934fb63f1aa36d37..69e48139ff9b804d547c5dde966ff490d8b39151 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-#include <math.h>
 #include "gwion_util.h"
 #include "gwion_ast.h"
 #include "gwion_env.h"