1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 06:17:58 +00:00

Add issues from pull request #307.

This commit is contained in:
Christian Groessler
2016-06-07 12:05:28 +02:00
parent c7874b9f60
commit 346d88a6a7
8 changed files with 31 additions and 18 deletions
+4 -8
View File
@@ -14,6 +14,7 @@
#include <errno.h>
#include <6502.h>
#include <atari.h>
#include <cc65.h>
#include <conio.h>
static int verbose = 1;
@@ -32,13 +33,6 @@ static struct __iocb *findfreeiocb(void)
return NULL;
}
static void exitfn(void)
{
/* if DOS will automatically clear the screen, after the program exits, wait for a keypress... */
if (doesclrscrafterexit())
cgetc();
}
int main(int argc, char **argv)
{
char *filename, *x;
@@ -50,7 +44,9 @@ int main(int argc, char **argv)
struct __iocb *iocb = findfreeiocb();
int iocb_num;
atexit(exitfn);
/* if DOS will automatically clear the screen after the program exits, wait for a keypress... */
if (doesclrscrafterexit())
atexit((void (*)(void))cgetc);
if (! iocb) {
fprintf(stderr, "couldn't find a free iocb\n");