diff options
author | kdx <kikoodx@paranoici.org> | 2023-04-15 07:39:08 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-04-15 07:39:08 +0200 |
commit | 706756ea5103c81d83c4722f03053ec9aa3896fa (patch) | |
tree | 5c6ae3625a0531470b4356dbc03c0981071b9338 | |
parent | 091f64e45f3c66cdf342a229660b87ed8ebb135c (diff) | |
download | golem-706756ea5103c81d83c4722f03053ec9aa3896fa.tar.gz |
depreciate gyte argument
-rw-r--r-- | src/main.c | 11 | ||||
-rwxr-xr-x | test.sh | 3 |
2 files changed, 3 insertions, 11 deletions
@@ -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; } @@ -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 |