[Coco] Coco Digest, Vol 49, Issue 38
Paul Fitch
pfitchjr at bellsouth.net
Thu Aug 16 06:52:00 EDT 2007
> From: Willard Goosey <goosey at virgo.sdc.org>
> Subject: Re: [Coco] RTSI curses.lzh
> To: coco at maltedmedia.com
> Message-ID: <200708160818.l7G8Ih1F004709 at virgo.sdc.org>
>
> >From: "Paul Fitch" <pfitchjr at bellsouth.net>
> >Date: Wed, 15 Aug 2007 23:28:18 -0400
> Ahh, dammit!!! It's full of tabs!!! (which the standard os9 terminal
> uses for its "cursor up one line" code.) Dammit!!!
>
> Sort of strange, actually. I mean yeah, we see that all the time
> porting text over to OS9, but this has supposedly already been ported
> over. Heh, I bet you the guy who ported it was using a VT100 or
> something.
>
> Yeah, OK. http://www.sdc.org/~goosey/os9/curses.lzh
>
> I just did a cheap-jack replacement of tabs for spaces. The
> formatting suffered some.
>
I copied the 'new' curses.c and curses.h from the link above to my /dd/defs
and entered the following:
cc2 curses.c >> errorlog
Some of the errors I understand, like me missing the termcap.h file. But
look at this other stuff its spitting out.
ERRORLOG FOLLOWS:
*** "/DD/DEFS/termcap.h" <Line #4> #include error - bad file name ***
#include <termcap.h>
^
*** "curses.h" <Line #9> Warning - Improper redefinition ***
# define FALSE ( 0 )
^
curses.h : line 13 **** identifier missing ****
typedef struct
^
curses.h : line 13 **** } expected ****
typedef struct
^
curses.h : line 13 **** ; expected ****
typedef struct
^
curses.h : line 15 **** identifier missing ****
int x_org ;
^
curses.h : line 22 **** too many brackets ****
}
^
curses.h : line 44 **** ; expected ****
extern WINDOW * newwin ( ) ;
^
curses.h : line 44 **** identifier missing ****
extern WINDOW * newwin ( ) ;
^
curses.h : line 45 **** ; expected ****
extern WINDOW * boxwin ( ) ;
^
curses.h : line 45 **** identifier missing ****
extern WINDOW * boxwin ( ) ;
^
curses.c : line 235 **** not an argument ****
WINDOW * win ;
^
curses.c : line 235 **** ; expected ****
WINDOW * win ;
^
curses.c : line 235 **** identifier missing ****
WINDOW * win ;
^
curses.c : line 240 **** undeclared variable ****
* yp = win -> row ;
^
curses.c : line 240 **** struct member required ****
* yp = win -> row ;
^
curses.c : line 241 **** undeclared variable ****
* xp = win -> col ;
^
curses.c : line 241 **** struct member required ****
* xp = win -> col ;
^
curses.c : line 249 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 249 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 249 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 249 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 249 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 249 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 1 ;
^
curses.c : line 255 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 255 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 255 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 255 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 255 **** undeclared variable ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 255 **** struct member required ****
w_opts . _sgm . _sgs . _sgs_echo = 0 ;
^
curses.c : line 260 **** multiple definition ****
WINDOW * newwin ( lines , cols , begin_y , begin_x )
^
curses.c : line 260 **** ; expected ****
WINDOW * newwin ( lines , cols , begin_y , begin_x )
^
curses.c : line 261 **** identifier missing ****
int cols ;
^
too many errors - ABORT
-008
*** "curses.c" <Line #561> Syntax error - macro syntax error ***
cmove ( win -> y_org + ( win -> row = min ( y , win -> y_size - 1 ) ) , win
-> x_org + ( win -> col = min ( x , win -> x_size - 1 ) ) ) ;
^
*** "curses.c" <Line #561> Syntax error - wrong # of args ***
cmove ( win -> y_org + ( win -> row = min ( y , win -> y_size - 1 ) ) , win
-> x_org + ( win -> col = min ( x , win -> x_size - 1 ) ) ) ;
^
More information about the Coco
mailing list