diff --git a/Makefile b/Makefile index 47eab133..b676c0e9 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,7 @@ index_basic_programmes: index_basic_programmes.c Makefile $(CC) -Wall -g -o index_basic_programmes index_basic_programmes.c test_basic_programmes: test_basic_programmes.c Makefile - $(CC) -Wall -g -o test_basic_programmes test_basic_programmes.c + $(CC) -Wall -g -o test_basic_programmes test_basic_programmes.c -lssl -lcrypto appendix-basic65-indexed.tex: appendix-basic65.tex index_basic_programmes ./index_basic_programmes appendix-basic65.tex > appendix-basic65-indexed.tex diff --git a/test_basic_programmes.c b/test_basic_programmes.c index e5b42546..d1143359 100644 --- a/test_basic_programmes.c +++ b/test_basic_programmes.c @@ -5,6 +5,8 @@ #include #include +#include + #define MAX_PROG_LINES 1024 char prog_lines[MAX_PROG_LINES][1024]; int prog_line_count=0; @@ -15,15 +17,11 @@ int c_hints=0; void parse_basic_text(char* s) { - int quote_mode = 0; - char token[8192]; - int tlen = 0; - if (prog_line_count