From c1e3206968f9878f8b7883cc7c313cd930c86d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 02:10:30 +0200 Subject: Add README, fix C89 compliance --- mktpl/Makefile | 3 ++- mktpl/mktpl | Bin 23988 -> 23988 bytes mktpl/mktpl.c | 1 + mktpl/mktpl.lex | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'mktpl') diff --git a/mktpl/Makefile b/mktpl/Makefile index 0e7363b..f413714 100644 --- a/mktpl/Makefile +++ b/mktpl/Makefile @@ -1,6 +1,7 @@ +CFLAGS += -std=c89 -Wall -pedantic -Wno-parentheses LDLIBS += -lfl mktpl: mktpl.c mktpl.c: mktpl.lex - flex -omktpl.c mktpl.lex + flex -omktpl.c mktpl.lex \ No newline at end of file diff --git a/mktpl/mktpl b/mktpl/mktpl index 415d645..cc26132 100755 Binary files a/mktpl/mktpl and b/mktpl/mktpl differ diff --git a/mktpl/mktpl.c b/mktpl/mktpl.c index e806bef..485d209 100644 --- a/mktpl/mktpl.c +++ b/mktpl/mktpl.c @@ -1568,6 +1568,7 @@ main(int argc, char *argv[]) err(1, "malloc"); yylex(); + return 0; } void diff --git a/mktpl/mktpl.lex b/mktpl/mktpl.lex index 1940f02..f0674b7 100644 --- a/mktpl/mktpl.lex +++ b/mktpl/mktpl.lex @@ -40,6 +40,7 @@ main(int argc, char *argv[]) err(1, "malloc"); yylex(); + return 0; } void -- cgit v1.2.3