summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-15 07:39:08 +0200
committerkdx <kikoodx@paranoici.org>2023-04-15 07:39:08 +0200
commit706756ea5103c81d83c4722f03053ec9aa3896fa (patch)
tree5c6ae3625a0531470b4356dbc03c0981071b9338
parent091f64e45f3c66cdf342a229660b87ed8ebb135c (diff)
downloadgolem-706756ea5103c81d83c4722f03053ec9aa3896fa.tar.gz
depreciate gyte argument
-rw-r--r--src/main.c11
-rwxr-xr-xtest.sh3
2 files changed, 3 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c
index 41ae0db..82b7ed2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,15 +21,8 @@ destroy_duplicates(Token **list, unsigned int type)
int
main(int argc, char **argv)
{
- if (argc < 2 || argc > 3) {
- fprintf(stderr, "usage: %s <source.golem> [gyte size]\n",
- argv[0]);
- return 1;
- }
-
- const int gyte_size = (argc > 2) ? atoi(argv[2]) : 1;
- if (gyte_size < 1 || gyte_size > 256) {
- fprintf(stderr, "gyte size range is 1 to 256");
+ if (argc < 2) {
+ fprintf(stderr, "usage: %s <source.golem>\n", argv[0]);
return 1;
}
diff --git a/test.sh b/test.sh
index 4c2b89a..0ded8c7 100755
--- a/test.sh
+++ b/test.sh
@@ -1,6 +1,5 @@
#!/bin/sh
./build.sh || exit 1
-./golem /dev/null 1 || exit 1
+./golem /dev/null || exit 1
./golem onlymain.golem || exit 1
-./golem onlymain.golem 16 || exit 1
valgrind ./golem mvp.golem >/dev/null || exit 1