equi

A self-descriptive stack-based PC platform
git clone git://git.luxferre.top/equi.git
Log | Files | Refs | README | LICENSE

commit 95f56cc4d4e7ccbb063d6ce5146594ec47284711
parent 0bfa35c8340a413c9bbc9892b6c1897a9abe82ce
Author: Luxferre <lux@ferre>
Date:   Tue, 16 Aug 2022 15:55:12 +0300

tcc didn't hget hurt

Diffstat:
Mequi.c | 26++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)

diff --git a/equi.c b/equi.c @@ -9,38 +9,20 @@ * @author Luxferre */ -/* Standard includes with size optimizations for TCC */ +/* Standard or non-standard includes depending on the target */ -#ifdef __TINYC__ -#include <tcclib.h> -#include <stdlib.h> -#include <time.h> -#include <termios.h> -#include <unistd.h> -#define stderr 2 -#define SEEK_SET 0 +#ifdef __CC65__ +#include <conio.h> #else #include <stdlib.h> #include <stdio.h> #include <time.h> #include <termios.h> #include <unistd.h> -#endif - -/* - * Non-standard includes - * To save space, we emulate necessary conio functions on non-6502 systems, not vice versa - */ - -#ifdef __CC65__ -#include <conio.h> -#else #define cgetc() (getchar()) #define cputc(c) (putchar(c)) -#endif - -/* also, do our best to ensure short-packed value storage in our virtual RAM */ #pragma pack(2) +#endif /* Definitions section */