Extend SmallerC sizes to be able to compile curses examples.

This commit is contained in:
Serge Vakulenko
2015-09-14 11:48:16 -07:00
parent 3dda877dfb
commit 51e46b333b
4 changed files with 4 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
#define center(WIND,LN,TEXT) \
mvwaddstr((WIND), (LN), (W_COLS - strlen(TEXT))/2, (TEXT))
void die(sig)
void die(int sig)
{
signal(sig, SIG_IGN);
clear();

View File

@@ -8,7 +8,7 @@
#define W_LINES 7
#define W_COLS 11
void die(sig)
void die(int sig)
{
signal(sig, SIG_IGN);
werase(curscr);

View File

@@ -1,6 +1,7 @@
#include <curses.h>
#include <signal.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>

View File

@@ -4,7 +4,7 @@ include $(TOPSRC)/target.mk
CFLAGS = -Os -Wall -DMIPS -DNO_ANNOTATIONS -DNO_PREPROCESSOR \
-DNO_PPACK -D_RETROBSD -D__SMALLER_C_SCHAR__ \
-D__SMALLER_C__ -D__SMALLER_C_32__ -DSTATIC \
-DNO_EXTRA_WARNS -DSYNTAX_STACK_MAX=2530
-DNO_EXTRA_WARNS -DSYNTAX_STACK_MAX=3200
# For cross compile
#include $(TOPSRC)/cross.mk