X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.c;h=0f8aed65523ed7d25e1ce48ce5af7c18f8578eed;hb=458c7ff54123a67012af3d60d1c83e7a43b8eb74;hp=07b7da5cef805bca47a59a279237eee70611f9c1;hpb=a8f5216ff30142b93e4ff3e9bc12535ed0792563;p=super-star-trek.git diff --git a/sst.c b/sst.c index 07b7da5..0f8aed6 100644 --- a/sst.c +++ b/sst.c @@ -10,8 +10,6 @@ #define SSTDOC "sst.doc" #endif -static char line[128], *linep = line; - /* Here are Tom Almy's changes: @@ -94,6 +92,9 @@ Eric Raymond's changes: */ +/* the input queue */ +static char line[128], *linep = line; + static struct { char *name; @@ -261,6 +262,10 @@ static void helpme(void) { fclose(fp); } +void enqueue(char *s) { + strcpy(line, s); +} + static void makemoves(void) { int i, hitme; clrscr(); @@ -302,7 +307,7 @@ static void makemoves(void) { commandhook(commands[i].name, TRUE); switch (i) { /* command switch */ case SRSCAN: // srscan - srscan(1); + srscan(SRSCAN); break; case LRSCAN: // lrscan lrscan();