home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-21 | 112.8 KB | 4,573 lines |
- diff -rc --new-file libcurses-8.3/EXAMPLES/Makefile.in /gnu/src/amiga/libcurses-8.3/EXAMPLES/Makefile.in
- *** libcurses-8.3/EXAMPLES/Makefile.in Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/libcurses-8.3/EXAMPLES/Makefile.in Thu Jan 12 09:00:52 1995
- ***************
- *** 0 ****
- --- 1,48 ----
- + #### Start of system configuration section. ####
- +
- + srcdir = @srcdir@
- + VPATH = @srcdir@
- +
- + # Common prefix for machine-independent installed files.
- + prefix = @prefix@
- +
- + # Common prefix for machine-dependent installed files.
- + exec_prefix = @exec_prefix@
- +
- + bindir = $(exec_prefix)/bin
- + libdir = $(exec_prefix)/lib
- + incdir = $(exec_prefix)/include
- +
- + INSTALL = @INSTALL@
- + INSTALL_DATA = @INSTALL_DATA@
- +
- + CC = @CC@
- +
- + CFLAGS = @CFLAGS@
- +
- + RANLIB = @RANLIB@
- +
- + #### End system configuration section ####
- +
- + #DEBUG = -DDBUG
- + #DEBUGLIB = -ldbug
- + OTHER_CFLAGS = -I$(srcdir) $(DEBUG)
- + ALL_CFLAGS = $(OTHER_CFLAGS) $(CFLAGS)
- + LIBS = ../libcurses.a -ltermcap $(DEBUGLIB)
- + .c.o:
- + $(CC) -c $(ALL_CFLAGS) $<
- +
- + all : ex1
- +
- + ex1.o : ex1.c ../curses.h
- +
- + ex1 : ex1.o ../libcurses.a
- + $(CC) -o ex1 ex1.o $(LIBS)
- +
- + clean:
- + rm -f *! *~
- +
- + clobber: clean
- + rm -f ex1 ex1.o
- +
- +
- diff -rc --new-file libcurses-8.3/EXAMPLES/ex1.c /gnu/src/amiga/libcurses-8.3/EXAMPLES/ex1.c
- *** libcurses-8.3/EXAMPLES/ex1.c Fri Jun 4 17:39:36 1993
- --- /gnu/src/amiga/libcurses-8.3/EXAMPLES/ex1.c Thu Jan 12 09:14:52 1995
- ***************
- *** 45,58 ****
- #include <curses.h>
- #include <stdio.h>
- #include <signal.h>
- !
-
- #define YSIZE 10
- #define XSIZE 20
-
- int quit();
-
- ! main()
- {
- int i, j, c;
- size_t len;
- --- 45,60 ----
- #include <curses.h>
- #include <stdio.h>
- #include <signal.h>
- ! #include <dbug.h>
-
- #define YSIZE 10
- #define XSIZE 20
-
- int quit();
-
- ! main(argc, argv)
- ! int argc;
- ! char *argv[];
- {
- int i, j, c;
- size_t len;
- ***************
- *** 60,65 ****
- --- 62,69 ----
- FILE *fp;
- char *s;
-
- + if (argc == 2) DBUG_PUSH (&(argv[1][2]));
- +
- initscr(); /* Always call initscr() first */
- signal(SIGINT, quit); /* Make sure wou have a 'cleanup' fn */
- crmode(); /* We want cbreak mode */
- ***************
- *** 72,77 ****
- --- 76,82 ----
-
- standout();
- move(0,0);
- + wrefresh (curscr);
- while (1) {
- c = getchar();
- switch(c) {
- diff -rc --new-file libcurses-8.3/Makefile /gnu/src/amiga/libcurses-8.3/Makefile
- *** libcurses-8.3/Makefile Sun Jan 2 14:21:24 1994
- --- /gnu/src/amiga/libcurses-8.3/Makefile Thu Jan 1 00:00:00 1970
- ***************
- *** 1,20 ****
- - # @(#)Makefile 8.2 (Berkeley) 1/2/94
- -
- - CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
- - CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
- - LIB= curses
- - SRCS= addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \
- - cr_put.c ctrace.c cur_hash.c curses.c delch.c deleteln.c delwin.c \
- - erase.c fullname.c getch.c getstr.c id_subwins.c idlok.c initscr.c \
- - insch.c insertln.c longname.c move.c mvwin.c newwin.c overlay.c \
- - overwrite.c printw.c putchar.c refresh.c scanw.c scroll.c setterm.c \
- - standout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c unctrl.c
- - MAN3= curses.0
- -
- - beforeinstall:
- - -cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h > \
- - /dev/null 2>&1 || \
- - install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \
- - ${DESTDIR}/usr/include
- -
- - .include <bsd.lib.mk>
- --- 0 ----
- diff -rc --new-file libcurses-8.3/Makefile.in /gnu/src/amiga/libcurses-8.3/Makefile.in
- *** libcurses-8.3/Makefile.in Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/libcurses-8.3/Makefile.in Thu Jan 12 09:16:46 1995
- ***************
- *** 0 ****
- --- 1,69 ----
- + #### Start of system configuration section. ####
- +
- + srcdir = @srcdir@
- + VPATH = @srcdir@
- +
- + # Common prefix for machine-independent installed files.
- + prefix = @prefix@
- +
- + # Common prefix for machine-dependent installed files.
- + exec_prefix = @exec_prefix@
- +
- + bindir = $(exec_prefix)/bin
- + libdir = $(exec_prefix)/lib
- + incdir = $(exec_prefix)/include
- +
- + INSTALL = @INSTALL@
- + INSTALL_DATA = @INSTALL_DATA@
- +
- + CC = @CC@
- +
- + CFLAGS = @CFLAGS@
- +
- + RANLIB = @RANLIB@
- +
- + #### End system configuration section ####
- +
- + AR = ar
- + LIB = libcurses.a
- + MAN3 = curses.0
- + MAKE = make
- + #DEBUG = -DDBUG
- +
- + OTHER_CFLAGS = -D_CURSES_PRIVATE $(DEBUG) -I$(srcdir)
- + ALL_CFLAGS = $(OTHER_CFLAGS) $(CFLAGS)
- +
- + SRCS = addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c \
- + clrtoeol.c cr_put.c ctrace.c cur_hash.c curses.c delch.c \
- + deleteln.c delwin.c erase.c fullname.c getch.c getstr.c \
- + id_subwins.c idlok.c initscr.c insch.c insertln.c \
- + longname.c move.c mvwin.c newwin.c overlay.c overwrite.c \
- + printw.c putchar.c refresh.c scanw.c scroll.c setterm.c \
- + standout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c \
- + unctrl.c
- +
- + OBJS = $(SRCS:.c=.o)
- +
- + .c.o:
- + $(CC) -c $(ALL_CFLAGS) $<
- +
- +
- + all : $(LIB)
- + (cd EXAMPLES; $(MAKE) all)
- +
- + $(LIB) : $(OBJS)
- + rm -f $@
- + $(AR) cr $@ $(OBJS)
- + $(RANLIB) $@
- +
- + install : $(LIB)
- + $(INSTALL_DATA) $(LIB) $(libdir)/libcurses.a
- + $(INSTALL_DATA) $(srcdir)/curses.h $(incdir)/curses.h
- +
- + clean:
- + rm -f *! *~
- + (cd EXAMPLES; $(MAKE) clean)
- +
- + clobber: clean
- + rm -f $(LIB)
- + (cd EXAMPLES; $(MAKE) clobber)
- diff -rc --new-file libcurses-8.3/addbytes.c /gnu/src/amiga/libcurses-8.3/addbytes.c
- *** libcurses-8.3/addbytes.c Sat Mar 19 15:29:58 1994
- --- /gnu/src/amiga/libcurses-8.3/addbytes.c Wed Jan 11 16:13:43 1995
- ***************
- *** 56,81 ****
- char stand;
- __LINE *lp;
-
- SYNCH_IN;
-
- - #ifdef DEBUG
- - __CTRACE("ADDBYTES('%c') at (%d, %d)\n", c, y, x);
- - #endif
- while (count--) {
- c = *bytes++;
- switch (c) {
- case '\t':
- SYNCH_OUT;
- if (waddbytes(win, blanks, 8 - (x % 8)) == ERR)
- ! return (ERR);
- SYNCH_IN;
- break;
-
- default:
- - #ifdef DEBUG
- - __CTRACE("ADDBYTES(%0.2o, %d, %d)\n", win, y, x);
- - #endif
- -
- lp = win->lines[y];
- if (lp->flags & __ISPASTEOL) {
- lp->flags &= ~__ISPASTEOL;
- --- 56,78 ----
- char stand;
- __LINE *lp;
-
- + DBUG_ENTER ("waddbytes");
- + DBUG_PRINT ("addbytes", ("add %d characters to window", count));
- + DBUG_PRINT ("addbytes", ("standout flag is %d", so));
- SYNCH_IN;
-
- while (count--) {
- c = *bytes++;
- + DBUG_PRINT ("waddbytes", ("add '%c' at (%d, %d)", c, y, x));
- switch (c) {
- case '\t':
- SYNCH_OUT;
- if (waddbytes(win, blanks, 8 - (x % 8)) == ERR)
- ! DBUG_RETURN (ERR);
- SYNCH_IN;
- break;
-
- default:
- lp = win->lines[y];
- if (lp->flags & __ISPASTEOL) {
- lp->flags &= ~__ISPASTEOL;
- ***************
- *** 87,93 ****
- lp = win->lines[y];
- x = 0;
- } else
- ! return (ERR);
- } else {
- y++;
- lp = win->lines[y];
- --- 84,90 ----
- lp = win->lines[y];
- x = 0;
- } else
- ! DBUG_RETURN (ERR);
- } else {
- y++;
- lp = win->lines[y];
- ***************
- *** 100,109 ****
- stand = '\0';
- if (win->flags & __WSTANDOUT || so)
- stand |= __STANDOUT;
- ! #ifdef DEBUG
- ! __CTRACE("ADDBYTES: 1: y = %d, x = %d, firstch = %d, lastch = %d\n",
- ! y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp);
- ! #endif
- if (lp->line[x].ch != c ||
- !(lp->line[x].attr & stand)) {
- newx = x + win->ch_off;
- --- 97,104 ----
- stand = '\0';
- if (win->flags & __WSTANDOUT || so)
- stand |= __STANDOUT;
- ! DBUG_PRINT ("waddbytes", ("ADDBYTES: 1: y = %d, x = %d, firstch = %d, lastch = %d",
- ! y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp));
- if (lp->line[x].ch != c ||
- !(lp->line[x].attr & stand)) {
- newx = x + win->ch_off;
- ***************
- *** 115,126 ****
- *lp->firstchp = newx;
- else if (newx > *lp->lastchp)
- *lp->lastchp = newx;
- ! #ifdef DEBUG
- ! __CTRACE("ADDBYTES: change gives f/l: %d/%d [%d/%d]\n",
- ! *lp->firstchp, *lp->lastchp,
- ! *lp->firstchp - win->ch_off,
- ! *lp->lastchp - win->ch_off);
- ! #endif
- }
- lp->line[x].ch = c;
- if (stand)
- --- 110,119 ----
- *lp->firstchp = newx;
- else if (newx > *lp->lastchp)
- *lp->lastchp = newx;
- ! DBUG_PRINT ("waddbytes", ("ADDBYTES: change gives f/l: %d/%d [%d/%d]",
- ! *lp->firstchp, *lp->lastchp,
- ! *lp->firstchp - win->ch_off,
- ! *lp->lastchp - win->ch_off));
- }
- lp->line[x].ch = c;
- if (stand)
- ***************
- *** 131,140 ****
- lp->flags |= __ISPASTEOL;
- else
- x++;
- ! #ifdef DEBUG
- ! __CTRACE("ADDBYTES: 2: y = %d, x = %d, firstch = %d, lastch = %d\n",
- ! y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp);
- ! #endif
- break;
- case '\n':
- SYNCH_OUT;
- --- 124,131 ----
- lp->flags |= __ISPASTEOL;
- else
- x++;
- ! DBUG_PRINT ("waddbytes", ("ADDBYTES: 2: y = %d, x = %d, firstch = %d, lastch = %d",
- ! y, x, *win->lines[y]->firstchp, *win->lines[y]->lastchp));
- break;
- case '\n':
- SYNCH_OUT;
- ***************
- *** 153,157 ****
- }
- }
- SYNCH_OUT;
- ! return (OK);
- }
- --- 144,148 ----
- }
- }
- SYNCH_OUT;
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/addch.c /gnu/src/amiga/libcurses-8.3/addch.c
- *** libcurses-8.3/addch.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/addch.c Wed Jan 11 16:40:44 1995
- ***************
- *** 48,57 ****
- int ch;
- {
- __LDATA buf;
-
- buf.ch = ch;
- buf.attr = 0;
- ! return (__waddch(win, &buf));
- }
-
- int
- --- 48,60 ----
- int ch;
- {
- __LDATA buf;
- + int status;
-
- + DBUG_ENTER ("waddch");
- buf.ch = ch;
- buf.attr = 0;
- ! status = __waddch(win, &buf);
- ! DBUG_RETURN (status);
- }
-
- int
- ***************
- *** 60,66 ****
- __LDATA *dp;
- {
- char buf[2];
-
- buf[0] = dp->ch;
- ! return (__waddbytes(win, buf, 1, dp->attr & __STANDOUT));
- }
- --- 63,72 ----
- __LDATA *dp;
- {
- char buf[2];
- + int status;
-
- + DBUG_ENTER ("__waddch");
- buf[0] = dp->ch;
- ! status = __waddbytes(win, buf, 1, dp->attr & __STANDOUT);
- ! DBUG_RETURN (status);
- }
- diff -rc --new-file libcurses-8.3/addnstr.c /gnu/src/amiga/libcurses-8.3/addnstr.c
- *** libcurses-8.3/addnstr.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/addnstr.c Wed Jan 11 16:41:29 1995
- ***************
- *** 52,61 ****
- {
- size_t len;
- const char *p;
-
- if (n > 0)
- for (p = s, len = 0; n-- && *p++; ++len);
- else
- len = strlen(s);
- ! return (waddbytes(win, s, len));
- }
- --- 52,64 ----
- {
- size_t len;
- const char *p;
- + int status;
-
- + DBUG_ENTER ("waddnstr");
- if (n > 0)
- for (p = s, len = 0; n-- && *p++; ++len);
- else
- len = strlen(s);
- ! status = waddbytes(win, s, len);
- ! DBUG_RETURN (status);
- }
- diff -rc --new-file libcurses-8.3/box.c /gnu/src/amiga/libcurses-8.3/box.c
- *** libcurses-8.3/box.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/box.c Wed Jan 11 16:42:02 1995
- ***************
- *** 50,55 ****
- --- 50,56 ----
- register int endy, endx, i;
- register __LDATA *fp, *lp;
-
- + DBUG_ENTER ("box");
- endx = win->maxx;
- endy = win->maxy - 1;
- fp = win->lines[0]->line;
- ***************
- *** 74,78 ****
- lp[endx].attr &= ~__STANDOUT;
- }
- __touchwin(win);
- ! return (OK);
- }
- --- 75,79 ----
- lp[endx].attr &= ~__STANDOUT;
- }
- __touchwin(win);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/clear.c /gnu/src/amiga/libcurses-8.3/clear.c
- *** libcurses-8.3/clear.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/clear.c Wed Jan 11 16:42:32 1995
- ***************
- *** 45,53 ****
- wclear(win)
- register WINDOW *win;
- {
- if (werase(win) == OK) {
- win->flags |= __CLEAROK;
- ! return (OK);
- }
- ! return (ERR);
- }
- --- 45,54 ----
- wclear(win)
- register WINDOW *win;
- {
- + DBUG_ENTER ("wclear");
- if (werase(win) == OK) {
- win->flags |= __CLEAROK;
- ! DBUG_RETURN (OK);
- }
- ! DBUG_RETURN (ERR);
- }
- diff -rc --new-file libcurses-8.3/clrtobot.c /gnu/src/amiga/libcurses-8.3/clrtobot.c
- *** libcurses-8.3/clrtobot.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/clrtobot.c Wed Jan 11 16:43:06 1995
- ***************
- *** 48,53 ****
- --- 48,54 ----
- register int minx, startx, starty, y;
- register __LDATA *sp, *end, *maxx;
-
- + DBUG_ENTER ("wclrtobot");
- if (win->lines[win->cury]->flags & __ISPASTEOL) {
- starty = win->cury + 1;
- startx = 0;
- ***************
- *** 71,75 ****
- 0);
- startx = 0;
- }
- ! return (OK);
- }
- --- 72,76 ----
- 0);
- startx = 0;
- }
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/clrtoeol.c /gnu/src/amiga/libcurses-8.3/clrtoeol.c
- *** libcurses-8.3/clrtoeol.c Fri Jun 11 13:45:34 1993
- --- /gnu/src/amiga/libcurses-8.3/clrtoeol.c Wed Jan 11 16:43:59 1995
- ***************
- *** 47,53 ****
- --- 47,55 ----
- {
- register int minx, x, y;
- register __LDATA *end, *maxx, *sp;
- + int status;
-
- + DBUG_ENTER ("wclrtoeol");
- y = win->cury;
- x = win->curx;
- if (win->lines[y]->flags & __ISPASTEOL) {
- ***************
- *** 55,61 ****
- y++;
- x = 0;
- } else
- ! return (OK);
- }
- end = &win->lines[y]->line[win->maxx];
- minx = -1;
- --- 57,63 ----
- y++;
- x = 0;
- } else
- ! DBUG_RETURN (OK);
- }
- end = &win->lines[y]->line[win->maxx];
- minx = -1;
- ***************
- *** 68,80 ****
- sp->ch = ' ';
- sp->attr = 0;
- }
- ! #ifdef DEBUG
- ! __CTRACE("CLRTOEOL: minx = %d, maxx = %d, firstch = %d, lastch = %d\n",
- minx, maxx - win->lines[y]->line, *win->lines[y]->firstchp,
- ! *win->lines[y]->lastchp);
- ! #endif
- /* Update firstch and lastch for the line. */
- ! return (__touchline(win, y, x, win->maxx - 1, 0));
- }
-
-
- --- 70,81 ----
- sp->ch = ' ';
- sp->attr = 0;
- }
- ! DBUG_PRINT ("wclrtoeol", ("CLRTOEOL: minx = %d, maxx = %d, firstch = %d, lastch = %d",
- minx, maxx - win->lines[y]->line, *win->lines[y]->firstchp,
- ! *win->lines[y]->lastchp));
- /* Update firstch and lastch for the line. */
- ! status = __touchline(win, y, x, win->maxx - 1, 0);
- ! DBUG_RETURN (status);
- }
-
-
- diff -rc --new-file libcurses-8.3/configure /gnu/src/amiga/libcurses-8.3/configure
- *** libcurses-8.3/configure Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/libcurses-8.3/configure Wed Jan 11 10:35:14 1995
- ***************
- *** 0 ****
- --- 1,855 ----
- + #!/bin/sh
- +
- + # Guess values for system-dependent variables and create Makefiles.
- + # Generated automatically using autoconf version 2.1
- + # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
- + #
- + # This configure script is free software; the Free Software Foundation
- + # gives unlimited permission to copy, distribute and modify it.
- +
- + # Defaults:
- + ac_help=
- + ac_default_prefix=/gnu
- + # Any additions from configure.in:
- +
- + # Initialize some variables set by options.
- + # The variables have the same names as the options, with
- + # dashes changed to underlines.
- + build=NONE
- + cache_file=./config.cache
- + exec_prefix=NONE
- + host=NONE
- + no_create=
- + nonopt=NONE
- + no_recursion=
- + prefix=NONE
- + program_prefix=NONE
- + program_suffix=NONE
- + program_transform_name=s,x,x,
- + silent=
- + site=
- + srcdir=
- + target=NONE
- + verbose=
- + x_includes=NONE
- + x_libraries=NONE
- +
- + # Initialize some other variables.
- + subdirs=
- +
- + ac_prev=
- + for ac_option
- + do
- +
- + # If the previous option needs an argument, assign it.
- + if test -n "$ac_prev"; then
- + eval "$ac_prev=\$ac_option"
- + ac_prev=
- + continue
- + fi
- +
- + case "$ac_option" in
- + -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- + *) ac_optarg= ;;
- + esac
- +
- + # Accept the important Cygnus configure options, so we can diagnose typos.
- +
- + case "$ac_option" in
- +
- + -build | --build | --buil | --bui | --bu | --b)
- + ac_prev=build ;;
- + -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
- + build="$ac_optarg" ;;
- +
- + -cache-file | --cache-file | --cache-fil | --cache-fi \
- + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- + ac_prev=cache_file ;;
- + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- + cache_file="$ac_optarg" ;;
- +
- + -disable-* | --disable-*)
- + ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
- + # Reject names that are not valid shell variable names.
- + if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- + fi
- + ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
- + eval "enable_${ac_feature}=no" ;;
- +
- + -enable-* | --enable-*)
- + ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- + # Reject names that are not valid shell variable names.
- + if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- + fi
- + ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
- + case "$ac_option" in
- + *=*) ;;
- + *) ac_optarg=yes ;;
- + esac
- + eval "enable_${ac_feature}='$ac_optarg'" ;;
- +
- + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- + | --exec | --exe | --ex)
- + ac_prev=exec_prefix ;;
- + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- + | --exec=* | --exe=* | --ex=*)
- + exec_prefix="$ac_optarg" ;;
- +
- + -gas | --gas | --ga | --g)
- + # Obsolete; use --with-gas.
- + with_gas=yes ;;
- +
- + -help | --help | --hel | --he)
- + # Omit some internal or obsolete options to make the list less imposing.
- + # This message is too long to be a string in the A/UX 3.1 sh.
- + cat << EOF
- + Usage: configure [options] [host]
- + Options: [defaults in brackets after descriptions]
- + Configuration:
- + --cache-file=FILE cache test results in FILE
- + --help print this message
- + --no-create do not create output files
- + --quiet, --silent do not print \`checking...' messages
- + --version print the version of autoconf that created configure
- + Directory and file names:
- + --prefix=PREFIX install architecture-independent files in PREFIX
- + [$ac_default_prefix]
- + --exec-prefix=PREFIX install architecture-dependent files in PREFIX
- + [same as prefix]
- + --srcdir=DIR find the sources in DIR [configure dir or ..]
- + --program-prefix=PREFIX prepend PREFIX to installed program names
- + --program-suffix=SUFFIX append SUFFIX to installed program names
- + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
- + Host type:
- + --build=BUILD configure for building on BUILD [BUILD=HOST]
- + --host=HOST configure for HOST [guessed]
- + --target=TARGET configure for TARGET [TARGET=HOST]
- + Features and packages:
- + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- + --x-includes=DIR X include files are in DIR
- + --x-libraries=DIR X library files are in DIR
- + --enable and --with options recognized:$ac_help
- + EOF
- + exit 0 ;;
- +
- + -host | --host | --hos | --ho)
- + ac_prev=host ;;
- + -host=* | --host=* | --hos=* | --ho=*)
- + host="$ac_optarg" ;;
- +
- + -nfp | --nfp | --nf)
- + # Obsolete; use --without-fp.
- + with_fp=no ;;
- +
- + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- + | --no-cr | --no-c)
- + no_create=yes ;;
- +
- + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- + no_recursion=yes ;;
- +
- + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- + ac_prev=prefix ;;
- + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- + prefix="$ac_optarg" ;;
- +
- + -program-prefix | --program-prefix | --program-prefi | --program-pref \
- + | --program-pre | --program-pr | --program-p)
- + ac_prev=program_prefix ;;
- + -program-prefix=* | --program-prefix=* | --program-prefi=* \
- + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- + program_prefix="$ac_optarg" ;;
- +
- + -program-suffix | --program-suffix | --program-suffi | --program-suff \
- + | --program-suf | --program-su | --program-s)
- + ac_prev=program_suffix ;;
- + -program-suffix=* | --program-suffix=* | --program-suffi=* \
- + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- + program_suffix="$ac_optarg" ;;
- +
- + -program-transform-name | --program-transform-name \
- + | --program-transform-nam | --program-transform-na \
- + | --program-transform-n | --program-transform- \
- + | --program-transform | --program-transfor \
- + | --program-transfo | --program-transf \
- + | --program-trans | --program-tran \
- + | --progr-tra | --program-tr | --program-t)
- + ac_prev=program_transform_name ;;
- + -program-transform-name=* | --program-transform-name=* \
- + | --program-transform-nam=* | --program-transform-na=* \
- + | --program-transform-n=* | --program-transform-=* \
- + | --program-transform=* | --program-transfor=* \
- + | --program-transfo=* | --program-transf=* \
- + | --program-trans=* | --program-tran=* \
- + | --progr-tra=* | --program-tr=* | --program-t=*)
- + program_transform_name="$ac_optarg" ;;
- +
- + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- + | -silent | --silent | --silen | --sile | --sil)
- + silent=yes ;;
- +
- + -site | --site | --sit)
- + ac_prev=site ;;
- + -site=* | --site=* | --sit=*)
- + site="$ac_optarg" ;;
- +
- + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- + ac_prev=srcdir ;;
- + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- + srcdir="$ac_optarg" ;;
- +
- + -target | --target | --targe | --targ | --tar | --ta | --t)
- + ac_prev=target ;;
- + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- + target="$ac_optarg" ;;
- +
- + -v | -verbose | --verbose | --verbos | --verbo | --verb)
- + verbose=yes ;;
- +
- + -version | --version | --versio | --versi | --vers)
- + echo "configure generated by autoconf version 2.1"
- + exit 0 ;;
- +
- + -with-* | --with-*)
- + ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- + # Reject names that are not valid shell variable names.
- + if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- + fi
- + ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
- + case "$ac_option" in
- + *=*) ;;
- + *) ac_optarg=yes ;;
- + esac
- + eval "with_${ac_package}='$ac_optarg'" ;;
- +
- + -without-* | --without-*)
- + ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
- + # Reject names that are not valid shell variable names.
- + if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- + fi
- + ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
- + eval "with_${ac_package}=no" ;;
- +
- + --x)
- + # Obsolete; use --with-x.
- + with_x=yes ;;
- +
- + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- + | --x-incl | --x-inc | --x-in | --x-i)
- + ac_prev=x_includes ;;
- + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- + x_includes="$ac_optarg" ;;
- +
- + -x-libraries | --x-libraries | --x-librarie | --x-librari \
- + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- + ac_prev=x_libraries ;;
- + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- + x_libraries="$ac_optarg" ;;
- +
- + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- + ;;
- +
- + *)
- + if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- + echo "configure: warning: $ac_option: invalid host type" 1>&2
- + fi
- + if test "x$nonopt" != xNONE; then
- + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- + fi
- + nonopt="$ac_option"
- + ;;
- +
- + esac
- + done
- +
- + if test -n "$ac_prev"; then
- + { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- + fi
- +
- + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
- +
- + # File descriptor usage:
- + # 0 unused; standard input
- + # 1 file creation
- + # 2 errors and warnings
- + # 3 unused; some systems may open it to /dev/tty
- + # 4 checking for... messages and results
- + # 5 compiler messages saved in config.log
- + if test "$silent" = yes; then
- + exec 4>/dev/null
- + else
- + exec 4>&1
- + fi
- + exec 5>./config.log
- +
- + echo "\
- + This file contains any messages produced by compilers while
- + running configure, to aid debugging if configure makes a mistake.
- + " 1>&5
- +
- + # Strip out --no-create and --no-recursion so they do not pile up.
- + # Also quote any args containing shell metacharacters.
- + ac_configure_args=
- + for ac_arg
- + do
- + case "$ac_arg" in
- + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- + | --no-cr | --no-c) ;;
- + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- + ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- + *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- + esac
- + done
- +
- + # NLS nuisances.
- + # Only set LANG and LC_ALL to C if already set.
- + # These must not be set unconditionally because not all systems understand
- + # e.g. LANG=C (notably SCO).
- + if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- + if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- +
- + # confdefs.h avoids OS command line length limits that DEFS can exceed.
- + rm -rf conftest* confdefs.h
- + # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- + /bin/echo > confdefs.h
- +
- + # A filename unique to this package, relative to the directory that
- + # configure is in, which we can look for to find out if srcdir is correct.
- + ac_unique_file=curses.h
- +
- + # Find the source files, if location was not specified.
- + if test -z "$srcdir"; then
- + ac_srcdir_defaulted=yes
- + # Try the directory containing this script, then its parent.
- + ac_prog=$0
- + ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- + srcdir=$ac_confdir
- + if test ! -r $srcdir/$ac_unique_file; then
- + srcdir=..
- + fi
- + else
- + ac_srcdir_defaulted=no
- + fi
- + if test ! -r $srcdir/$ac_unique_file; then
- + if test "$ac_srcdir_defaulted" = yes; then
- + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- + else
- + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- + fi
- + fi
- + srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
- +
- + # Prefer explicitly selected file to automatically selected ones.
- + if test -z "$CONFIG_SITE"; then
- + if test "x$prefix" != xNONE; then
- + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- + else
- + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- + fi
- + fi
- + for ac_site_file in $CONFIG_SITE; do
- + if test -r "$ac_site_file"; then
- + echo "loading site script $ac_site_file"
- + . "$ac_site_file"
- + fi
- + done
- +
- + if test -r "$cache_file"; then
- + echo "loading cache $cache_file"
- + . $cache_file
- + else
- + echo "creating cache $cache_file"
- + > $cache_file
- + fi
- +
- + ac_ext=c
- + # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- + ac_cpp='$CPP $CPPFLAGS'
- + ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
- + ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
- +
- + if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- + ac_n= ac_c='
- + ' ac_t=' '
- + else
- + ac_n=-n ac_c= ac_t=
- + fi
- + else
- + ac_n= ac_c='\c' ac_t=
- + fi
- +
- +
- +
- + # Extract the first word of "gcc", so it can be a program name with args.
- + set dummy gcc; ac_word=$2
- + /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
- + if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + if test -n "$CC"; then
- + ac_cv_prog_CC="$CC" # Let the user override the test.
- + else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- + for ac_dir in $PATH; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_CC="gcc"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
- + fi
- + fi
- + CC="$ac_cv_prog_CC"
- + if test -n "$CC"; then
- + /bin/echo "$ac_t""$CC" 1>&4
- + else
- + /bin/echo "$ac_t""no" 1>&4
- + fi
- +
- +
- + /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
- + if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + cat > conftest.c <<EOF
- + #ifdef __GNUC__
- + yes;
- + #endif
- + EOF
- + if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
- + ac_cv_prog_gcc=yes
- + else
- + ac_cv_prog_gcc=no
- + fi
- + fi
- + /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
- + if test $ac_cv_prog_gcc = yes; then
- + GCC=yes
- + if test "${CFLAGS+set}" != set; then
- + /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
- + if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + echo 'void f(){}' > conftest.c
- + if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- + ac_cv_prog_gcc_g=yes
- + else
- + ac_cv_prog_gcc_g=no
- + fi
- + rm -f conftest*
- +
- + fi
- + /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
- + if test $ac_cv_prog_gcc_g = yes; then
- + # Amiga hack - suppress automatically using -g for now
- + # Also default to using -O2
- + CFLAGS="-O2"
- + else
- + CFLAGS="-O2"
- + fi
- + fi
- + else
- + GCC=
- + test "${CFLAGS+set}" = set || CFLAGS="-g"
- + fi
- +
- + /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
- + # On Suns, sometimes $CPP names a directory.
- + if test -n "$CPP" && test -d "$CPP"; then
- + CPP=
- + fi
- + if test -z "$CPP"; then
- + if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + # This must be in double quotes, not single quotes, because CPP may get
- + # substituted into the Makefile and "${CC-cc}" will confuse make.
- + CPP="${CC-cc} -E"
- + # On the NeXT, cc -E runs the code through the compiler's parser,
- + # not just through cpp.
- + cat > conftest.$ac_ext <<EOF
- + #line 492 "configure"
- + #include "confdefs.h"
- + #include <assert.h>
- + Syntax Error
- + EOF
- + eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- + ac_err=`grep -v '^ *+' conftest.out`
- + if test -z "$ac_err"; then
- + :
- + else
- + /bin/echo "$ac_err" >&5
- + rm -rf conftest*
- + CPP="${CC-cc} -E -traditional-cpp"
- + cat > conftest.$ac_ext <<EOF
- + #line 506 "configure"
- + #include "confdefs.h"
- + #include <assert.h>
- + Syntax Error
- + EOF
- + eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- + ac_err=`grep -v '^ *+' conftest.out`
- + if test -z "$ac_err"; then
- + :
- + else
- + /bin/echo "$ac_err" >&5
- + rm -rf conftest*
- + CPP=/lib/cpp
- + fi
- + rm -f conftest*
- + fi
- + rm -f conftest*
- + ac_cv_prog_CPP="$CPP"
- + fi
- + fi
- + CPP="$ac_cv_prog_CPP"
- + /bin/echo "$ac_t""$CPP" 1>&4
- +
- + if test $ac_cv_prog_gcc = yes; then
- + /bin/echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
- + if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + ac_pattern="Autoconf.*'x'"
- + cat > conftest.$ac_ext <<EOF
- + #line 536 "configure"
- + #include "confdefs.h"
- + #include <sgtty.h>
- + Autoconf TIOCGETP
- + EOF
- + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- + egrep "$ac_pattern" >/dev/null 2>&1; then
- + rm -rf conftest*
- + ac_cv_prog_gcc_traditional=yes
- + else
- + rm -rf conftest*
- + ac_cv_prog_gcc_traditional=no
- + fi
- + rm -f conftest*
- +
- +
- + if test $ac_cv_prog_gcc_traditional = no; then
- + cat > conftest.$ac_ext <<EOF
- + #line 554 "configure"
- + #include "confdefs.h"
- + #include <termio.h>
- + Autoconf TCGETA
- + EOF
- + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- + egrep "$ac_pattern" >/dev/null 2>&1; then
- + rm -rf conftest*
- + ac_cv_prog_gcc_traditional=yes
- + fi
- + rm -f conftest*
- +
- + fi
- + fi
- + /bin/echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
- + if test $ac_cv_prog_gcc_traditional = yes; then
- + CC="$CC -traditional"
- + fi
- + fi
- +
- + ac_aux_dir=
- + for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- + if test -f $ac_dir/install-sh; then
- + ac_aux_dir=$ac_dir
- + ac_install_sh="$ac_aux_dir/install-sh -c"
- + break
- + elif test -f $ac_dir/install.sh; then
- + ac_aux_dir=$ac_dir
- + ac_install_sh="$ac_aux_dir/install.sh -c"
- + break
- + fi
- + done
- + if test -z "$ac_aux_dir"; then
- + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- + fi
- + ac_config_guess=$ac_aux_dir/config.guess
- + ac_config_sub=$ac_aux_dir/config.sub
- + ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- +
- + # Find a good install program. We prefer a C program (faster),
- + # so one script is as good as another. But avoid the broken or
- + # incompatible versions:
- + # SysV /etc/install, /usr/sbin/install
- + # SunOS /usr/etc/install
- + # IRIX /sbin/install
- + # AIX /bin/install
- + # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- + # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- + # ./install, which can be erroneously created by make from ./install.sh.
- + /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
- + if test -z "$INSTALL"; then
- + if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- + for ac_dir in $PATH; do
- + case "$ac_dir" in
- + ''|.|/gnu/etc) ;;
- + *)
- + # OSF1 and SCO ODT 3.0 have their own names for install.
- + for ac_prog in ginstall installbsd scoinst install; do
- + if test -f $ac_dir/$ac_prog; then
- + if test $ac_prog = install &&
- + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- + # AIX install. It has an incompatible calling convention.
- + # OSF/1 installbsd also uses dspmsg, but is usable.
- + :
- + else
- + ac_cv_path_install="$ac_dir/$ac_prog -c"
- + break 2
- + fi
- + fi
- + done
- + ;;
- + esac
- + done
- + IFS="$ac_save_ifs"
- + # As a last resort, use the slow shell script.
- + test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
- + fi
- + INSTALL="$ac_cv_path_install"
- + fi
- + /bin/echo "$ac_t""$INSTALL" 1>&4
- +
- + # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- + # It thinks the first close brace ends the variable substitution.
- + test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- +
- + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- +
- + # Extract the first word of "ranlib", so it can be a program name with args.
- + set dummy ranlib; ac_word=$2
- + /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
- + if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- + /bin/echo $ac_n "(cached) $ac_c" 1>&4
- + else
- + if test -n "$RANLIB"; then
- + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- + else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- + for ac_dir in $PATH; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_RANLIB="ranlib"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- + fi
- + fi
- + RANLIB="$ac_cv_prog_RANLIB"
- + if test -n "$RANLIB"; then
- + /bin/echo "$ac_t""$RANLIB" 1>&4
- + else
- + /bin/echo "$ac_t""no" 1>&4
- + fi
- +
- +
- + trap '' 1 2 15
- + if test -w $cache_file; then
- + echo "updating cache $cache_file"
- + cat > $cache_file <<\EOF
- + # This file is a shell script that caches the results of configure
- + # tests run on this system so they can be shared between configure
- + # scripts and configure runs. It is not useful on other systems.
- + # If it contains results you don't want to keep, you may remove or edit it.
- + #
- + # By default, configure uses ./config.cache as the cache file,
- + # creating it if it does not exist already. You can give configure
- + # the --cache-file=FILE option to use a different cache file; that is
- + # what configure does when it calls configure scripts in
- + # subdirectories, so they share the cache.
- + # Giving --cache-file=/dev/null disables caching, for debugging configure.
- + # config.status only pays attention to the cache file if you give it the
- + # --recheck option to rerun configure.
- + #
- + EOF
- + # Ultrix sh set writes to stderr and can't be redirected directly.
- + (set) 2>&1 |
- + sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
- + >> $cache_file
- + else
- + echo "not updating unwritable cache $cache_file"
- + fi
- +
- + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
- +
- + test "x$prefix" = xNONE && prefix=$ac_default_prefix
- + # Let make expand exec_prefix.
- + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- +
- + # Any assignment to VPATH causes Sun make to only execute
- + # the first set of double-colon rules, so remove it if not needed.
- + # If there is a colon in the path, we need to keep it.
- + if test "x$srcdir" = x.; then
- + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- + fi
- +
- + trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- +
- + # Transform confdefs.h into DEFS.
- + # Protect against shell expansion while executing Makefile rules.
- + # Protect against Makefile macro expansion.
- + cat > conftest.defs <<\EOF
- + s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
- + s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
- + s%\[%\\&%g
- + s%\]%\\&%g
- + s%\$%$$%g
- + EOF
- + DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
- + rm -f conftest.defs
- +
- +
- + # Without the "./", some shells look in PATH for config.status.
- + : ${CONFIG_STATUS=./config.status}
- +
- + echo creating $CONFIG_STATUS
- + # Some systems, like AmigaDOS, won't allow you to remove a script that is
- + # being executed, so just move it out of the way instead.
- + if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
- + cat > $CONFIG_STATUS <<EOF
- + #!/bin/sh
- + # Generated automatically by configure.
- + # Run this file to recreate the current configuration.
- + # This directory was configured as follows,
- + # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- + #
- + # $0 $ac_configure_args
- + #
- + # Compiler output produced by configure, useful for debugging
- + # configure, is in ./config.log if it exists.
- +
- + ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- + for ac_option
- + do
- + case "\$ac_option" in
- + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- + -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- + /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
- + exit 0 ;;
- + -help | --help | --hel | --he | --h)
- + echo "\$ac_cs_usage"; exit 0 ;;
- + *) echo "\$ac_cs_usage"; exit 1 ;;
- + esac
- + done
- +
- + ac_given_srcdir=$srcdir
- + ac_given_INSTALL="$INSTALL"
- +
- + trap 'rm -f Makefile EXAMPLES/Makefile; exit 1' 1 2 15
- +
- + # Protect against being on the right side of a sed subst in config.status.
- + sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
- + s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
- + $ac_vpsub
- + $extrasub
- + s%@CFLAGS@%$CFLAGS%g
- + s%@CPPFLAGS@%$CPPFLAGS%g
- + s%@CXXFLAGS@%$CXXFLAGS%g
- + s%@DEFS@%$DEFS%g
- + s%@LDFLAGS@%$LDFLAGS%g
- + s%@LIBS@%$LIBS%g
- + s%@exec_prefix@%$exec_prefix%g
- + s%@prefix@%$prefix%g
- + s%@program_transform_name@%$program_transform_name%g
- + s%@CC@%$CC%g
- + s%@CPP@%$CPP%g
- + s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- + s%@INSTALL_DATA@%$INSTALL_DATA%g
- + s%@RANLIB@%$RANLIB%g
- +
- + CEOF
- + EOF
- + cat >> $CONFIG_STATUS <<EOF
- +
- + CONFIG_FILES=\${CONFIG_FILES-"Makefile EXAMPLES/Makefile"}
- + EOF
- + cat >> $CONFIG_STATUS <<\EOF
- + for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- + # Support "outfile[:infile]", defaulting infile="outfile.in".
- + case "$ac_file" in
- + *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
- + ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
- + *) ac_file_in="${ac_file}.in" ;;
- + esac
- +
- + # Adjust relative srcdir, etc. for subdirectories.
- +
- + # Remove last slash and all that follows it. Not all systems have dirname.
- + ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
- + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- + # The file is in a subdirectory.
- + test ! -d "$ac_dir" && mkdir "$ac_dir"
- + ac_dir_suffix="/$ac_dir"
- + # A "../" for each directory in $ac_dir_suffix.
- + ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- + else
- + ac_dir_suffix= ac_dots=
- + fi
- +
- + case "$ac_given_srcdir" in
- + .) srcdir=.
- + if test -z "$ac_dots"; then top_srcdir=.
- + else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
- + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- + *) # Relative path.
- + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- + top_srcdir="$ac_dots$ac_given_srcdir" ;;
- + esac
- +
- + case "$ac_given_INSTALL" in
- + [/$]*) INSTALL="$ac_given_INSTALL" ;;
- + *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- + esac
- + echo creating "$ac_file"
- + rm -f "$ac_file"
- + configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
- + case "$ac_file" in
- + *Makefile*) ac_comsub="1i\\
- + # $configure_input" ;;
- + *) ac_comsub= ;;
- + esac
- + sed -e "$ac_comsub
- + s%@configure_input@%$configure_input%g
- + s%@srcdir@%$srcdir%g
- + s%@top_srcdir@%$top_srcdir%g
- + s%@INSTALL@%$INSTALL%g
- + " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
- + fi; done
- + rm -f conftest.subs
- +
- +
- +
- + exit 0
- + EOF
- + chmod +x $CONFIG_STATUS
- + rm -fr confdefs* $ac_clean_files
- + test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
- +
- diff -rc --new-file libcurses-8.3/configure.in /gnu/src/amiga/libcurses-8.3/configure.in
- *** libcurses-8.3/configure.in Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/libcurses-8.3/configure.in Wed Jan 11 10:34:35 1995
- ***************
- *** 0 ****
- --- 1,9 ----
- + dnl Process this file with autoconf to produce a configure script.
- + AC_INIT(curses.h)
- +
- + AC_PROG_CC
- + AC_GCC_TRADITIONAL
- + AC_PROG_INSTALL
- + AC_PROG_RANLIB
- +
- + AC_OUTPUT(Makefile EXAMPLES/Makefile)
- diff -rc --new-file libcurses-8.3/cr_put.c /gnu/src/amiga/libcurses-8.3/cr_put.c
- *** libcurses-8.3/cr_put.c Sun Jan 9 16:40:54 1994
- --- /gnu/src/amiga/libcurses-8.3/cr_put.c Wed Jan 11 17:24:10 1995
- ***************
- *** 51,57 ****
- mvcur(ly, lx, y, x)
- int ly, lx, y, x;
- {
- ! return (__mvcur(ly, lx, y, x, 0));
- }
-
- static void fgoto __P((int));
- --- 51,61 ----
- mvcur(ly, lx, y, x)
- int ly, lx, y, x;
- {
- ! int status;
- !
- ! DBUG_ENTER ("mvcur");
- ! status = __mvcur(ly, lx, y, x, 0);
- ! DBUG_RETURN (status);
- }
-
- static void fgoto __P((int));
- ***************
- *** 70,85 ****
- __mvcur(ly, lx, y, x, in_refresh)
- int ly, lx, y, x, in_refresh;
- {
- ! #ifdef DEBUG
- ! __CTRACE("mvcur: moving cursor from (%d, %d) to (%d, %d)\n",
- ! ly, lx, y, x);
- ! #endif
- destcol = x;
- destline = y;
- outcol = lx;
- outline = ly;
- fgoto(in_refresh);
- ! return (OK);
- }
-
- static void
- --- 74,88 ----
- __mvcur(ly, lx, y, x, in_refresh)
- int ly, lx, y, x, in_refresh;
- {
- ! DBUG_ENTER ("mvcur");
- ! DBUG_PRINT ("mvcur", ("moving cursor from (%d, %d) to (%d, %d)",
- ! ly, lx, y, x));
- destcol = x;
- destline = y;
- outcol = lx;
- outline = ly;
- fgoto(in_refresh);
- ! DBUG_RETURN (OK);
- }
-
- static void
- ***************
- *** 89,94 ****
- --- 92,98 ----
- register int c, l;
- register char *cgp;
-
- + DBUG_ENTER ("fgoto");
- if (destcol >= COLS) {
- destline += destcol / COLS;
- destcol %= COLS;
- ***************
- *** 171,176 ****
- --- 175,181 ----
- plod(0, in_refresh);
- outline = destline;
- outcol = destcol;
- + DBUG_VOID_RETURN;
- }
- /*
- * Move (slowly) to destination.
- ***************
- *** 185,194 ****
- --- 190,201 ----
- plodput(c)
- int c;
- {
- + DBUG_ENTER ("plodput");
- if (plodflg)
- --plodcnt;
- else
- putchar(c);
- + DBUG_VOID_RETURN;
- }
-
- static int
- ***************
- *** 197,202 ****
- --- 204,210 ----
- {
- register int i, j, k, soutcol, soutline;
-
- + DBUG_ENTER ("plod");
- plodcnt = plodflg = cnt;
- soutcol = outcol;
- soutline = outline;
- ***************
- *** 260,266 ****
- } else
- /* No home and no up means it's impossible. */
- if (!UP && destline < outline)
- ! return (-1);
- if (GT)
- i = destcol % HARDTABS + destcol / HARDTABS;
- else
- --- 268,274 ----
- } else
- /* No home and no up means it's impossible. */
- if (!UP && destline < outline)
- ! DBUG_RETURN (-1);
- if (GT)
- i = destcol % HARDTABS + destcol / HARDTABS;
- else
- ***************
- *** 408,414 ****
- outcol = soutcol;
- outline = soutline;
- }
- ! return (plodcnt);
- }
-
- /*
- --- 416,422 ----
- outcol = soutcol;
- outline = soutline;
- }
- ! DBUG_RETURN (plodcnt);
- }
-
- /*
- ***************
- *** 422,431 ****
- {
- int offset;
-
- if (col >= COLS) {
- offset = COLS * (col / COLS);
- col -= offset;
- } else
- offset = 0;
- ! return (col + ts - (col % ts) + offset);
- }
- --- 430,440 ----
- {
- int offset;
-
- + DBUG_ENTER ("tabcol");
- if (col >= COLS) {
- offset = COLS * (col / COLS);
- col -= offset;
- } else
- offset = 0;
- ! DBUG_RETURN (col + ts - (col % ts) + offset);
- }
- diff -rc --new-file libcurses-8.3/cur_hash.c /gnu/src/amiga/libcurses-8.3/cur_hash.c
- *** libcurses-8.3/cur_hash.c Sun Jan 2 14:23:28 1994
- --- /gnu/src/amiga/libcurses-8.3/cur_hash.c Wed Jan 11 17:45:14 1995
- ***************
- *** 58,62 ****
- }
- i++;
- }
- ! return h;
- }
- --- 58,62 ----
- }
- i++;
- }
- ! return (h);
- }
- diff -rc --new-file libcurses-8.3/curses.c /gnu/src/amiga/libcurses-8.3/curses.c
- *** libcurses-8.3/curses.c Sun Jan 2 14:24:42 1994
- --- /gnu/src/amiga/libcurses-8.3/curses.c Wed Jan 11 09:21:03 1995
- ***************
- *** 68,74 ****
- int COLS; /* Columns on the screen. */
- int LINES; /* Lines on the screen. */
- int My_term = 0; /* Use Def_term regardless. */
- ! char *Def_term = "unknown"; /* Default terminal type. */
- char GT; /* Gtty indicates tabs. */
- char NONL; /* Term can't hack LF doing a CR. */
- char UPPERCASE; /* Terminal is uppercase only. */
- --- 68,74 ----
- int COLS; /* Columns on the screen. */
- int LINES; /* Lines on the screen. */
- int My_term = 0; /* Use Def_term regardless. */
- ! char *Def_term = "amiga"; /* Default terminal type. */
- char GT; /* Gtty indicates tabs. */
- char NONL; /* Term can't hack LF doing a CR. */
- char UPPERCASE; /* Terminal is uppercase only. */
- diff -rc --new-file libcurses-8.3/curses.h /gnu/src/amiga/libcurses-8.3/curses.h
- *** libcurses-8.3/curses.h Sun Jan 2 14:25:32 1994
- --- /gnu/src/amiga/libcurses-8.3/curses.h Wed Jan 11 15:04:31 1995
- ***************
- *** 37,42 ****
- --- 37,43 ----
- #define _CURSES_H_
-
- #include <stdio.h>
- + #include <sys/types.h>
-
- /*
- * The following #defines and #includes are present for backward
- ***************
- *** 269,276 ****
- int touchline __P((WINDOW *, int, int, int));
- int touchoverlap __P((WINDOW *, WINDOW *));
- int touchwin __P((WINDOW *));
- ! int vwprintw __P((WINDOW *, const char *, _BSD_VA_LIST_));
- ! int vwscanw __P((WINDOW *, const char *, _BSD_VA_LIST_));
- int waddch __P((WINDOW *, int));
- int waddnstr __P((WINDOW *, const char *, int));
- int wclear __P((WINDOW *));
- --- 270,279 ----
- int touchline __P((WINDOW *, int, int, int));
- int touchoverlap __P((WINDOW *, WINDOW *));
- int touchwin __P((WINDOW *));
- ! #if 0 /* FIXME */
- ! int vwprintw __P((WINDOW *, const char *, _VA_LIST_));
- ! int vwscanw __P((WINDOW *, const char *, _VA_LIST_));
- ! #endif
- int waddch __P((WINDOW *, int));
- int waddnstr __P((WINDOW *, const char *, int));
- int wclear __P((WINDOW *));
- ***************
- *** 289,295 ****
- int wscanw __P((WINDOW *, const char *, ...));
- char *wstandend __P((WINDOW *));
- char *wstandout __P((WINDOW *));
- ! int vwprintw __P((WINDOW *, const char *, _BSD_VA_LIST_));
-
- /* Private functions that are needed for user programs prototypes. */
- void __cputchar __P((int));
- --- 292,300 ----
- int wscanw __P((WINDOW *, const char *, ...));
- char *wstandend __P((WINDOW *));
- char *wstandout __P((WINDOW *));
- ! #if 0 /* FIXME */
- ! int vwprintw __P((WINDOW *, const char *, _VA_LIST_));
- ! #endif
-
- /* Private functions that are needed for user programs prototypes. */
- void __cputchar __P((int));
- ***************
- *** 297,302 ****
- --- 302,308 ----
-
- /* Private functions. */
- #ifdef _CURSES_PRIVATE
- + #include <dbug.h>
- void __CTRACE __P((const char *, ...));
- u_int __hash __P((char *, int));
- void __id_subwins __P((WINDOW *));
- diff -rc --new-file libcurses-8.3/delch.c /gnu/src/amiga/libcurses-8.3/delch.c
- *** libcurses-8.3/delch.c Fri Jun 4 17:47:58 1993
- --- /gnu/src/amiga/libcurses-8.3/delch.c Wed Jan 11 16:47:20 1995
- ***************
- *** 48,53 ****
- --- 48,54 ----
- {
- register __LDATA *end, *temp1, *temp2;
-
- + DBUG_ENTER ("wdelch");
- end = &win->lines[win->cury]->line[win->maxx - 1];
- temp1 = &win->lines[win->cury]->line[win->curx];
- temp2 = temp1 + 1;
- ***************
- *** 58,62 ****
- temp1->ch = ' ';
- temp1->attr = 0;
- __touchline(win, win->cury, win->curx, win->maxx - 1, 0);
- ! return (OK);
- }
- --- 59,63 ----
- temp1->ch = ' ';
- temp1->attr = 0;
- __touchline(win, win->cury, win->curx, win->maxx - 1, 0);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/deleteln.c /gnu/src/amiga/libcurses-8.3/deleteln.c
- *** libcurses-8.3/deleteln.c Fri Jun 4 17:48:02 1993
- --- /gnu/src/amiga/libcurses-8.3/deleteln.c Wed Jan 11 16:47:48 1995
- ***************
- *** 49,57 ****
- register int y, i;
- register __LINE *temp;
-
- ! #ifdef DEBUG
- ! __CTRACE("deleteln: (%0.2o)\n", win);
- ! #endif
- temp = win->lines[win->cury];
- for (y = win->cury; y < win->maxy - 1; y++) {
- win->lines[y]->flags &= ~__ISPASTEOL;
- --- 49,56 ----
- register int y, i;
- register __LINE *temp;
-
- ! DBUG_ENTER ("wdeleteln");
- ! DBUG_PRINT ("wdeleteln", ("(%0.2o)", win));
- temp = win->lines[win->cury];
- for (y = win->cury; y < win->maxy - 1; y++) {
- win->lines[y]->flags &= ~__ISPASTEOL;
- ***************
- *** 77,81 ****
- __touchline(win, y, 0, win->maxx - 1, 0);
- if (win->orig == NULL)
- __id_subwins(win);
- ! return (OK);
- }
- --- 76,80 ----
- __touchline(win, y, 0, win->maxx - 1, 0);
- if (win->orig == NULL)
- __id_subwins(win);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/delwin.c /gnu/src/amiga/libcurses-8.3/delwin.c
- *** libcurses-8.3/delwin.c Fri Jun 4 17:48:08 1993
- --- /gnu/src/amiga/libcurses-8.3/delwin.c Wed Jan 11 16:48:11 1995
- ***************
- *** 49,54 ****
- --- 49,55 ----
-
- register WINDOW *wp, *np;
-
- + DBUG_ENTER ("delwin");
- if (win->orig == NULL) {
- /*
- * If we are the original window, delete the space for all
- ***************
- *** 75,79 ****
- wp->nextp = win->nextp;
- }
- free(win);
- ! return (OK);
- }
- --- 76,80 ----
- wp->nextp = win->nextp;
- }
- free(win);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/erase.c /gnu/src/amiga/libcurses-8.3/erase.c
- *** libcurses-8.3/erase.c Fri Jun 4 17:48:12 1993
- --- /gnu/src/amiga/libcurses-8.3/erase.c Wed Jan 11 16:48:36 1995
- ***************
- *** 49,57 ****
- register int minx, y;
- register __LDATA *sp, *end, *start, *maxx;
-
- ! #ifdef DEBUG
- ! __CTRACE("werase: (%0.2o)\n", win);
- ! #endif
- for (y = 0; y < win->maxy; y++) {
- minx = -1;
- start = win->lines[y]->line;
- --- 49,56 ----
- register int minx, y;
- register __LDATA *sp, *end, *start, *maxx;
-
- ! DBUG_ENTER ("werase");
- ! DBUG_PRINT ("werase", ("werase: (%0.2o)", win));
- for (y = 0; y < win->maxy; y++) {
- minx = -1;
- start = win->lines[y]->line;
- ***************
- *** 68,72 ****
- __touchline(win, y, minx, maxx - win->lines[y]->line,
- 0);
- }
- ! return (OK);
- }
- --- 67,71 ----
- __touchline(win, y, minx, maxx - win->lines[y]->line,
- 0);
- }
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/fullname.c /gnu/src/amiga/libcurses-8.3/fullname.c
- *** libcurses-8.3/fullname.c Fri Jun 4 17:48:16 1993
- --- /gnu/src/amiga/libcurses-8.3/fullname.c Wed Jan 11 17:35:24 1995
- ***************
- *** 35,40 ****
- --- 35,43 ----
- static char sccsid[] = "@(#)fullname.c 8.1 (Berkeley) 6/4/93";
- #endif /* not lint */
-
- + #include <stdio.h>
- + #include <dbug.h>
- +
- /*
- * fullname --
- * This routine fills in "def" with the full name of the terminal.
- ***************
- *** 46,51 ****
- --- 49,55 ----
- {
- register char *cp;
-
- + DBUG_ENTER ("fullname");
- *def = '\0'; /* In case no name. */
-
- while (*bp && *bp != ':') {
- ***************
- *** 56,60 ****
- if (*bp == '|')
- bp++; /* Skip over '|' if that is case. */
- }
- ! return (def);
- }
- --- 60,64 ----
- if (*bp == '|')
- bp++; /* Skip over '|' if that is case. */
- }
- ! DBUG_RETURN (def);
- }
- diff -rc --new-file libcurses-8.3/getch.c /gnu/src/amiga/libcurses-8.3/getch.c
- *** libcurses-8.3/getch.c Fri Jun 4 17:48:20 1993
- --- /gnu/src/amiga/libcurses-8.3/getch.c Wed Jan 11 16:49:22 1995
- ***************
- *** 47,59 ****
- {
- register int inp, weset;
-
- if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
- && win->curx == win->maxx - 1 && win->cury == win->maxy - 1)
- ! return (ERR);
- ! #ifdef DEBUG
- ! __CTRACE("wgetch: __echoit = %d, __rawmode = %d\n",
- ! __echoit, __rawmode);
- ! #endif
- if (__echoit && !__rawmode) {
- cbreak();
- weset = 1;
- --- 47,58 ----
- {
- register int inp, weset;
-
- + DBUG_ENTER ("wgetch");
- if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
- && win->curx == win->maxx - 1 && win->cury == win->maxy - 1)
- ! DBUG_RETURN (ERR);
- ! DBUG_PRINT ("wgetch", ("__echoit = %d, __rawmode = %d",
- ! __echoit, __rawmode));
- if (__echoit && !__rawmode) {
- cbreak();
- weset = 1;
- ***************
- *** 61,69 ****
- weset = 0;
-
- inp = getchar();
- ! #ifdef DEBUG
- ! __CTRACE("wgetch got '%s'\n", unctrl(inp));
- ! #endif
- if (__echoit) {
- mvwaddch(curscr,
- win->cury + win->begy, win->curx + win->begx, inp);
- --- 60,66 ----
- weset = 0;
-
- inp = getchar();
- ! DBUG_PRINT ("wgetch", ("got '%s'", unctrl(inp)));
- if (__echoit) {
- mvwaddch(curscr,
- win->cury + win->begy, win->curx + win->begx, inp);
- ***************
- *** 71,75 ****
- }
- if (weset)
- nocbreak();
- ! return (inp);
- }
- --- 68,72 ----
- }
- if (weset)
- nocbreak();
- ! DBUG_RETURN (inp);
- }
- diff -rc --new-file libcurses-8.3/getstr.c /gnu/src/amiga/libcurses-8.3/getstr.c
- *** libcurses-8.3/getstr.c Fri Jun 4 17:48:24 1993
- --- /gnu/src/amiga/libcurses-8.3/getstr.c Wed Jan 11 16:49:49 1995
- ***************
- *** 46,57 ****
- register WINDOW *win;
- register char *str;
- {
- while ((*str = wgetch(win)) != ERR && *str != '\n')
- str++;
- if (*str == ERR) {
- *str = '\0';
- ! return (ERR);
- }
- *str = '\0';
- ! return (OK);
- }
- --- 46,58 ----
- register WINDOW *win;
- register char *str;
- {
- + DBUG_ENTER ("wgetstr");
- while ((*str = wgetch(win)) != ERR && *str != '\n')
- str++;
- if (*str == ERR) {
- *str = '\0';
- ! DBUG_RETURN (ERR);
- }
- *str = '\0';
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/id_subwins.c /gnu/src/amiga/libcurses-8.3/id_subwins.c
- *** libcurses-8.3/id_subwins.c Fri Jun 4 17:48:32 1993
- --- /gnu/src/amiga/libcurses-8.3/id_subwins.c Wed Jan 11 16:50:14 1995
- ***************
- *** 48,53 ****
- --- 48,54 ----
- register WINDOW *win;
- register int oy, realy, y;
-
- + DBUG_ENTER ("__id_subwins");
- realy = orig->begy + orig->cury;
- for (win = orig->nextp; win != orig; win = win->nextp) {
- /*
- ***************
- *** 62,65 ****
- --- 63,67 ----
- win->lines[y]->line =
- &orig->lines[oy]->line[win->ch_off];
- }
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/idlok.c /gnu/src/amiga/libcurses-8.3/idlok.c
- *** libcurses-8.3/idlok.c Fri Jun 4 17:48:36 1993
- --- /gnu/src/amiga/libcurses-8.3/idlok.c Wed Jan 11 16:50:40 1995
- ***************
- *** 47,54 ****
- --- 47,56 ----
- WINDOW *win;
- int bf;
- {
- + DBUG_ENTER ("idlok");
- if (bf)
- win->flags |= __IDLINE;
- else
- win->flags &= ~__IDLINE;
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/initscr.c /gnu/src/amiga/libcurses-8.3/initscr.c
- *** libcurses-8.3/initscr.c Mon Jun 7 01:09:16 1993
- --- /gnu/src/amiga/libcurses-8.3/initscr.c Wed Jan 11 19:19:34 1995
- ***************
- *** 48,61 ****
- {
- register char *sp;
-
- ! #ifdef DEBUG
- ! __CTRACE("initscr\n");
- ! #endif
- __echoit = 1;
- __pfast = __rawmode = __noqch = 0;
-
- if (gettmode() == ERR)
- ! return (NULL);
-
- /*
- * If My_term is set, or can't find a terminal in the environment,
- --- 48,63 ----
- {
- register char *sp;
-
- ! DBUG_ENTER ("initscr");
- ! DBUG_PRINT ("setup", ("initialize the current and standard screen"));
- ! sp = getenv ("DBUG_CURSES");
- ! if (sp != NULL) DBUG_PUSH (sp);
- !
- __echoit = 1;
- __pfast = __rawmode = __noqch = 0;
-
- if (gettmode() == ERR)
- ! DBUG_RETURN (NULL);
-
- /*
- * If My_term is set, or can't find a terminal in the environment,
- ***************
- *** 63,94 ****
- */
- if (My_term || (sp = getenv("TERM")) == NULL)
- sp = Def_term;
- if (setterm(sp) == ERR)
- ! return (NULL);
-
- /* Need either homing or cursor motion for refreshes */
- if (!HO && !CM)
- ! return (NULL);
-
- if (curscr != NULL)
- delwin(curscr);
- if ((curscr = newwin(LINES, COLS, 0, 0)) == ERR)
- ! return (NULL);
- clearok(curscr, 1);
-
- if (stdscr != NULL)
- delwin(stdscr);
- if ((stdscr = newwin(LINES, COLS, 0, 0)) == ERR) {
- delwin(curscr);
- ! return (NULL);
- }
-
- __set_stophandler();
-
- - #ifdef DEBUG
- - __CTRACE("initscr: LINES = %d, COLS = %d\n", LINES, COLS);
- - #endif
- __startwin();
-
- ! return (stdscr);
- }
- --- 65,94 ----
- */
- if (My_term || (sp = getenv("TERM")) == NULL)
- sp = Def_term;
- + DBUG_PRINT ("term", ("use TERM '%s'", sp));
- if (setterm(sp) == ERR)
- ! DBUG_RETURN (NULL);
-
- /* Need either homing or cursor motion for refreshes */
- if (!HO && !CM)
- ! DBUG_RETURN (NULL);
-
- if (curscr != NULL)
- delwin(curscr);
- if ((curscr = newwin(LINES, COLS, 0, 0)) == ERR)
- ! DBUG_RETURN (NULL);
- clearok(curscr, 1);
-
- if (stdscr != NULL)
- delwin(stdscr);
- if ((stdscr = newwin(LINES, COLS, 0, 0)) == ERR) {
- delwin(curscr);
- ! DBUG_RETURN (NULL);
- }
-
- __set_stophandler();
-
- __startwin();
-
- ! DBUG_RETURN (stdscr);
- }
- diff -rc --new-file libcurses-8.3/insch.c /gnu/src/amiga/libcurses-8.3/insch.c
- *** libcurses-8.3/insch.c Fri Jun 4 17:48:42 1993
- --- /gnu/src/amiga/libcurses-8.3/insch.c Wed Jan 11 16:51:36 1995
- ***************
- *** 50,55 ****
- --- 50,56 ----
-
- register __LDATA *end, *temp1, *temp2;
-
- + DBUG_ENTER ("winsch");
- end = &win->lines[win->cury]->line[win->curx];
- temp1 = &win->lines[win->cury]->line[win->maxx - 1];
- temp2 = temp1 - 1;
- ***************
- *** 68,73 ****
- scroll(win);
- win->cury--;
- } else
- ! return (ERR);
- ! return (OK);
- }
- --- 69,74 ----
- scroll(win);
- win->cury--;
- } else
- ! DBUG_RETURN (ERR);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/insertln.c /gnu/src/amiga/libcurses-8.3/insertln.c
- *** libcurses-8.3/insertln.c Fri Jun 4 17:48:44 1993
- --- /gnu/src/amiga/libcurses-8.3/insertln.c Wed Jan 11 16:52:04 1995
- ***************
- *** 50,58 ****
- register int y, i;
- register __LINE *temp;
-
- ! #ifdef DEBUG
- ! __CTRACE("insertln: (%0.2o)\n", win);
- ! #endif
- if (win->orig == NULL)
- temp = win->lines[win->maxy - 1];
- for (y = win->maxy - 1; y > win->cury; --y) {
- --- 50,57 ----
- register int y, i;
- register __LINE *temp;
-
- ! DBUG_ENTER ("winsert");
- ! DBUG_PRINT ("winsertln", ("(%0.2o)", win));
- if (win->orig == NULL)
- temp = win->lines[win->maxy - 1];
- for (y = win->maxy - 1; y > win->cury; --y) {
- ***************
- *** 77,81 ****
- __touchline(win, y, 0, win->maxx - 1, 0);
- if (win->orig == NULL)
- __id_subwins(win);
- ! return (OK);
- }
- --- 76,80 ----
- __touchline(win, y, 0, win->maxx - 1, 0);
- if (win->orig == NULL)
- __id_subwins(win);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/install.sh /gnu/src/amiga/libcurses-8.3/install.sh
- *** libcurses-8.3/install.sh Thu Jan 1 00:00:00 1970
- --- /gnu/src/amiga/libcurses-8.3/install.sh Wed Jan 11 09:35:54 1995
- ***************
- *** 0 ****
- --- 1,119 ----
- + #!/bin/sh
- +
- + #
- + # install - install a program, script, or datafile
- + # This comes from X11R5; it is not part of GNU.
- + #
- + # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
- + #
- + # This script is compatible with the BSD install script, but was written
- + # from scratch.
- + #
- +
- +
- + # set DOITPROG to echo to test this script
- +
- + # Don't use :- since 4.3BSD and earlier shells don't like it.
- + doit="${DOITPROG-}"
- +
- +
- + # put in absolute paths if you don't have them in your path; or use env. vars.
- +
- + mvprog="${MVPROG-mv}"
- + cpprog="${CPPROG-cp}"
- + chmodprog="${CHMODPROG-chmod}"
- + chownprog="${CHOWNPROG-chown}"
- + chgrpprog="${CHGRPPROG-chgrp}"
- + stripprog="${STRIPPROG-strip}"
- + rmprog="${RMPROG-rm}"
- +
- + instcmd="$mvprog"
- + chmodcmd=""
- + chowncmd=""
- + chgrpcmd=""
- + stripcmd=""
- + rmcmd="$rmprog -f"
- + mvcmd="$mvprog"
- + src=""
- + dst=""
- +
- + while [ x"$1" != x ]; do
- + case $1 in
- + -c) instcmd="$cpprog"
- + shift
- + continue;;
- +
- + -m) chmodcmd="$chmodprog $2"
- + shift
- + shift
- + continue;;
- +
- + -o) chowncmd="$chownprog $2"
- + shift
- + shift
- + continue;;
- +
- + -g) chgrpcmd="$chgrpprog $2"
- + shift
- + shift
- + continue;;
- +
- + -s) stripcmd="$stripprog"
- + shift
- + continue;;
- +
- + *) if [ x"$src" = x ]
- + then
- + src=$1
- + else
- + dst=$1
- + fi
- + shift
- + continue;;
- + esac
- + done
- +
- + if [ x"$src" = x ]
- + then
- + echo "install: no input file specified"
- + exit 1
- + fi
- +
- + if [ x"$dst" = x ]
- + then
- + echo "install: no destination specified"
- + exit 1
- + fi
- +
- +
- + # If destination is a directory, append the input filename; if your system
- + # does not like double slashes in filenames, you may need to add some logic
- +
- + if [ -d $dst ]
- + then
- + dst="$dst"/`basename $src`
- + fi
- +
- + # Make a temp file name in the proper directory.
- +
- + dstdir=`dirname $dst`
- + dsttmp=$dstdir/#inst.$$#
- +
- + # Move or copy the file name to the temp name
- +
- + $doit $instcmd $src $dsttmp
- +
- + # and set any options; do chmod last to preserve setuid bits
- +
- + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
- + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
- + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
- + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
- +
- + # Now rename the file to the real destination.
- +
- + $doit $rmcmd $dst
- + $doit $mvcmd $dsttmp $dst
- +
- +
- + exit 0
- diff -rc --new-file libcurses-8.3/longname.c /gnu/src/amiga/libcurses-8.3/longname.c
- *** libcurses-8.3/longname.c Fri Jun 4 17:48:48 1993
- --- /gnu/src/amiga/libcurses-8.3/longname.c Wed Jan 11 17:33:59 1995
- ***************
- *** 35,40 ****
- --- 35,43 ----
- static char sccsid[] = "@(#)longname.c 8.1 (Berkeley) 6/4/93";
- #endif /* not lint */
-
- + #include <stdio.h>
- + #include <dbug.h>
- +
- /*
- * longname --
- * Fill in "def" with the long name of the terminal.
- ***************
- *** 45,50 ****
- --- 48,54 ----
- {
- register char *cp;
-
- + DBUG_ENTER ("longname");
- while (*bp && *bp != ':' && *bp != '|')
- bp++;
- if (*bp == '|') {
- ***************
- *** 52,56 ****
- *cp++ = *bp++;
- *cp = '\0';
- }
- ! return (def);
- }
- --- 56,60 ----
- *cp++ = *bp++;
- *cp = '\0';
- }
- ! DBUG_RETURN (def);
- }
- diff -rc --new-file libcurses-8.3/move.c /gnu/src/amiga/libcurses-8.3/move.c
- *** libcurses-8.3/move.c Fri Jun 4 17:48:50 1993
- --- /gnu/src/amiga/libcurses-8.3/move.c Wed Jan 11 16:16:27 1995
- ***************
- *** 47,62 ****
- register int y, x;
- {
-
- ! #ifdef DEBUG
- ! __CTRACE("wmove: (%d, %d)\n", y, x);
- ! #endif
- if (x < 0 || y < 0)
- ! return (ERR);
- if (x >= win->maxx || y >= win->maxy)
- ! return (ERR);
- win->curx = x;
- win->lines[win->cury]->flags &= ~__ISPASTEOL;
- win->cury = y;
- win->lines[y]->flags &= ~__ISPASTEOL;
- ! return (OK);
- }
- --- 47,64 ----
- register int y, x;
- {
-
- ! DBUG_ENTER ("wmove");
- ! DBUG_PRINT ("wmove", ("move cursor to (%d, %d); max is (%d, %d)",
- ! y, x, win->maxy, win->maxx));
- if (x < 0 || y < 0)
- ! DBUG_RETURN (ERR);
- if (x >= win->maxx || y >= win->maxy)
- ! DBUG_RETURN (ERR);
- win->curx = x;
- win->lines[win->cury]->flags &= ~__ISPASTEOL;
- win->cury = y;
- win->lines[y]->flags &= ~__ISPASTEOL;
- ! DBUG_PRINT ("wmove", ("current position is (%d, %d)",
- ! win->cury, win->curx));
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/mvwin.c /gnu/src/amiga/libcurses-8.3/mvwin.c
- *** libcurses-8.3/mvwin.c Fri Jun 4 17:48:56 1993
- --- /gnu/src/amiga/libcurses-8.3/mvwin.c Wed Jan 11 16:53:04 1995
- ***************
- *** 49,56 ****
- register WINDOW *orig;
- register int dy, dx;
-
- if (by + win->maxy > LINES || bx + win->maxx > COLS)
- ! return (ERR);
- dy = by - win->begy;
- dx = bx - win->begx;
- orig = win->orig;
- --- 49,57 ----
- register WINDOW *orig;
- register int dy, dx;
-
- + DBUG_ENTER ("mvwin");
- if (by + win->maxy > LINES || bx + win->maxx > COLS)
- ! DBUG_RETURN (ERR);
- dy = by - win->begy;
- dx = bx - win->begx;
- orig = win->orig;
- ***************
- *** 64,77 ****
- } while (win != orig);
- } else {
- if (by < orig->begy || win->maxy + dy > orig->maxy)
- ! return (ERR);
- if (bx < orig->begx || win->maxx + dx > orig->maxx)
- ! return (ERR);
- win->begy = by;
- win->begx = bx;
- __swflags(win);
- __set_subwin(orig, win);
- }
- __touchwin(win);
- ! return (OK);
- }
- --- 65,78 ----
- } while (win != orig);
- } else {
- if (by < orig->begy || win->maxy + dy > orig->maxy)
- ! DBUG_RETURN (ERR);
- if (bx < orig->begx || win->maxx + dx > orig->maxx)
- ! DBUG_RETURN (ERR);
- win->begy = by;
- win->begx = bx;
- __swflags(win);
- __set_subwin(orig, win);
- }
- __touchwin(win);
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/newwin.c /gnu/src/amiga/libcurses-8.3/newwin.c
- *** libcurses-8.3/newwin.c Tue Jul 20 08:24:14 1993
- --- /gnu/src/amiga/libcurses-8.3/newwin.c Wed Jan 11 18:52:01 1995
- ***************
- *** 57,77 ****
- register int i, j;
- register __LDATA *sp;
-
- if (nl == 0)
- nl = LINES - by;
- if (nc == 0)
- nc = COLS - bx;
-
- if ((win = __makenew(nl, nc, by, bx, 0)) == NULL)
- ! return (NULL);
-
- win->nextp = win;
- win->ch_off = 0;
- win->orig = NULL;
-
- ! #ifdef DEBUG
- ! __CTRACE("newwin: win->ch_off = %d\n", win->ch_off);
- ! #endif
-
- for (i = 0; i < nl; i++) {
- lp = win->lines[i];
- --- 57,78 ----
- register int i, j;
- register __LDATA *sp;
-
- + DBUG_ENTER ("newwin");
- + DBUG_PRINT ("newwin", ("new window %d lines, %d cols at (%d,%d)",
- + nl, nc, by, bx));
- if (nl == 0)
- nl = LINES - by;
- if (nc == 0)
- nc = COLS - bx;
-
- if ((win = __makenew(nl, nc, by, bx, 0)) == NULL)
- ! DBUG_RETURN (NULL);
-
- win->nextp = win;
- win->ch_off = 0;
- win->orig = NULL;
-
- ! DBUG_PRINT ("newwin", ("win->ch_off = %d", win->ch_off));
-
- for (i = 0; i < nl; i++) {
- lp = win->lines[i];
- ***************
- *** 82,88 ****
- }
- lp->hash = __hash((char *) lp->line, nc * __LDATASIZE);
- }
- ! return (win);
- }
-
- WINDOW *
- --- 83,89 ----
- }
- lp->hash = __hash((char *) lp->line, nc * __LDATASIZE);
- }
- ! DBUG_RETURN (win);
- }
-
- WINDOW *
- ***************
- *** 94,113 ****
- __LINE *lp;
- register WINDOW *win;
-
- /* Make sure window fits inside the original one. */
- ! #ifdef DEBUG
- ! __CTRACE("subwin: (%0.2o, %d, %d, %d, %d)\n", orig, nl, nc, by, bx);
- ! #endif
- if (by < orig->begy || bx < orig->begx
- || by + nl > orig->maxy + orig->begy
- || bx + nc > orig->maxx + orig->begx)
- ! return (NULL);
- if (nl == 0)
- nl = orig->maxy + orig->begy - by;
- if (nc == 0)
- nc = orig->maxx + orig->begx - bx;
- if ((win = __makenew(nl, nc, by, bx, 1)) == NULL)
- ! return (NULL);
- win->nextp = orig->nextp;
- orig->nextp = win;
- win->orig = orig;
- --- 95,113 ----
- __LINE *lp;
- register WINDOW *win;
-
- + DBUG_ENTER ("subwin");
- /* Make sure window fits inside the original one. */
- ! DBUG_PRINT ("subwin", ("(%0.2o, %d, %d, %d, %d)", orig, nl, nc, by, bx));
- if (by < orig->begy || bx < orig->begx
- || by + nl > orig->maxy + orig->begy
- || bx + nc > orig->maxx + orig->begx)
- ! DBUG_RETURN (NULL);
- if (nl == 0)
- nl = orig->maxy + orig->begy - by;
- if (nc == 0)
- nc = orig->maxx + orig->begx - bx;
- if ((win = __makenew(nl, nc, by, bx, 1)) == NULL)
- ! DBUG_RETURN (NULL);
- win->nextp = orig->nextp;
- orig->nextp = win;
- win->orig = orig;
- ***************
- *** 116,122 ****
- for (lp = win->lspace, i = 0; i < win->maxy; i++, lp++)
- lp->flags = 0;
- __set_subwin(orig, win);
- ! return (win);
- }
-
- /*
- --- 116,122 ----
- for (lp = win->lspace, i = 0; i < win->maxy; i++, lp++)
- lp->flags = 0;
- __set_subwin(orig, win);
- ! DBUG_RETURN (win);
- }
-
- /*
- ***************
- *** 129,134 ****
- --- 129,135 ----
- int i;
- __LINE *lp, *olp;
-
- + DBUG_ENTER ("__set_subwin");
- win->ch_off = win->begx - orig->begx;
- /* Point line pointers to line space. */
- for (lp = win->lspace, i = 0; i < win->maxy; i++, lp++) {
- ***************
- *** 140,148 ****
- lp->hash = __hash((char *) lp->line, win->maxx * __LDATASIZE);
- }
-
- ! #ifdef DEBUG
- ! __CTRACE("__set_subwin: win->ch_off = %d\n", win->ch_off);
- ! #endif
- }
-
- /*
- --- 141,148 ----
- lp->hash = __hash((char *) lp->line, win->maxx * __LDATASIZE);
- }
-
- ! DBUG_PRINT ("set_subwin", ("win->ch_off = %d", win->ch_off));
- ! DBUG_VOID_RETURN;
- }
-
- /*
- ***************
- *** 158,184 ****
- register __LINE *lp;
- int i;
-
- !
- ! #ifdef DEBUG
- ! __CTRACE("makenew: (%d, %d, %d, %d)\n", nl, nc, by, bx);
- ! #endif
- if ((win = malloc(sizeof(*win))) == NULL)
- ! return (NULL);
- ! #ifdef DEBUG
- ! __CTRACE("makenew: nl = %d\n", nl);
- ! #endif
- !
- /*
- * Set up line pointer array and line space.
- */
- if ((win->lines = malloc (nl * sizeof(__LINE *))) == NULL) {
- free(win);
- ! return NULL;
- }
- if ((win->lspace = malloc (nl * sizeof(__LINE))) == NULL) {
- free (win);
- free (win->lines);
- ! return NULL;
- }
-
- /* Don't allocate window and line space if it's a subwindow */
- --- 158,179 ----
- register __LINE *lp;
- int i;
-
- ! DBUG_ENTER ("__makenew");
- ! DBUG_PRINT ("window", ("set up new window buffer, %d lines by %d cols at (%d,%d)",
- ! nl, nc, by, bx));
- if ((win = malloc(sizeof(*win))) == NULL)
- ! DBUG_RETURN (NULL);
- /*
- * Set up line pointer array and line space.
- */
- if ((win->lines = malloc (nl * sizeof(__LINE *))) == NULL) {
- free(win);
- ! DBUG_RETURN (NULL);
- }
- if ((win->lspace = malloc (nl * sizeof(__LINE))) == NULL) {
- free (win);
- free (win->lines);
- ! DBUG_RETURN (NULL);
- }
-
- /* Don't allocate window and line space if it's a subwindow */
- ***************
- *** 191,197 ****
- free(win->lines);
- free(win->lspace);
- free(win);
- ! return NULL;
- }
-
- /*
- --- 186,192 ----
- free(win->lines);
- free(win->lspace);
- free(win);
- ! DBUG_RETURN (NULL);
- }
-
- /*
- ***************
- *** 207,215 ****
- lp->lastch = 0;
- }
- }
- - #ifdef DEBUG
- - __CTRACE("makenew: nc = %d\n", nc);
- - #endif
- win->cury = win->curx = 0;
- win->maxy = nl;
- win->maxx = nc;
- --- 202,207 ----
- ***************
- *** 218,237 ****
- win->begx = bx;
- win->flags = 0;
- __swflags(win);
- ! #ifdef DEBUG
- ! __CTRACE("makenew: win->flags = %0.2o\n", win->flags);
- ! __CTRACE("makenew: win->maxy = %d\n", win->maxy);
- ! __CTRACE("makenew: win->maxx = %d\n", win->maxx);
- ! __CTRACE("makenew: win->begy = %d\n", win->begy);
- ! __CTRACE("makenew: win->begx = %d\n", win->begx);
- ! #endif
- ! return (win);
- }
-
- void
- __swflags(win)
- register WINDOW *win;
- {
- win->flags &=
- ~(__ENDLINE | __FULLLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
- if (win->begx + win->maxx == COLS) {
- --- 210,227 ----
- win->begx = bx;
- win->flags = 0;
- __swflags(win);
- ! DBUG_PRINT ("makenew", ("win->flags = %0.2o", win->flags));
- ! DBUG_PRINT ("window", ("window is (%d,%d) to (%d,%d) inclusive",
- ! win->begy, win->begx, win->begy + win->maxy - 1,
- ! win->begx + win->maxx - 1));
- ! DBUG_RETURN (win);
- }
-
- void
- __swflags(win)
- register WINDOW *win;
- {
- + DBUG_ENTER ("__swflags");
- win->flags &=
- ~(__ENDLINE | __FULLLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
- if (win->begx + win->maxx == COLS) {
- ***************
- *** 245,248 ****
- --- 235,239 ----
- if (win->begy + win->maxy == LINES)
- win->flags |= __SCROLLWIN;
- }
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/overlay.c /gnu/src/amiga/libcurses-8.3/overlay.c
- *** libcurses-8.3/overlay.c Fri Jun 4 17:49:02 1993
- --- /gnu/src/amiga/libcurses-8.3/overlay.c Wed Jan 11 16:55:39 1995
- ***************
- *** 50,68 ****
- register int x, y, y1, y2, endy, endx, starty, startx;
- register __LDATA *sp, *end;
-
- ! #ifdef DEBUG
- ! __CTRACE("overlay: (%0.2o, %0.2o);\n", win1, win2);
- ! #endif
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- ! #ifdef DEBUG
- ! __CTRACE("overlay: from (%d,%d) to (%d,%d)\n",
- ! starty, startx, endy, endx);
- ! #endif
- if (starty >= endy || startx >= endx)
- ! return (OK);
- y1 = starty - win1->begy;
- y2 = starty - win2->begy;
- for (y = starty; y < endy; y++, y1++, y2++) {
- --- 50,65 ----
- register int x, y, y1, y2, endy, endx, starty, startx;
- register __LDATA *sp, *end;
-
- ! DBUG_ENTER ("overlay");
- ! DBUG_PRINT ("overlay", ("(%0.2o, %0.2o)", win1, win2));
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- ! DBUG_PRINT ("overlay", ("from (%d,%d) to (%d,%d)",
- ! starty, startx, endy, endx));
- if (starty >= endy || startx >= endx)
- ! DBUG_RETURN (OK);
- y1 = starty - win1->begy;
- y2 = starty - win2->begy;
- for (y = starty; y < endy; y++, y1++, y2++) {
- ***************
- *** 77,81 ****
- x++;
- }
- }
- ! return (OK);
- }
- --- 74,78 ----
- x++;
- }
- }
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/overwrite.c /gnu/src/amiga/libcurses-8.3/overwrite.c
- *** libcurses-8.3/overwrite.c Fri Jun 4 17:49:08 1993
- --- /gnu/src/amiga/libcurses-8.3/overwrite.c Wed Jan 11 16:56:10 1995
- ***************
- *** 49,67 ****
- {
- register int x, y, endy, endx, starty, startx;
-
- ! #ifdef DEBUG
- ! __CTRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);
- ! #endif
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- if (starty >= endy || startx >= endx)
- ! return (OK);
- ! #ifdef DEBUG
- ! __CTRACE("overwrite: from (%d, %d) to (%d, %d)\n",
- ! starty, startx, endy, endx);
- ! #endif
- x = endx - startx;
- for (y = starty; y < endy; y++) {
- (void)memcpy(
- --- 49,64 ----
- {
- register int x, y, endy, endx, starty, startx;
-
- ! DBUG_ENTER ("overwrite");
- ! DBUG_PRINT ("overwrite", ("(%0.2o, %0.2o)", win1, win2));
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- if (starty >= endy || startx >= endx)
- ! DBUG_RETURN (OK);
- ! DBUG_PRINT ("overwrite", ("from (%d, %d) to (%d, %d)",
- ! starty, startx, endy, endx));
- x = endx - startx;
- for (y = starty; y < endy; y++) {
- (void)memcpy(
- ***************
- *** 71,75 ****
- __touchline(win2, y, startx - win2->begx, endx - win2->begx,
- 0);
- }
- ! return (OK);
- }
- --- 68,72 ----
- __touchline(win2, y, startx - win2->begx, endx - win2->begx,
- 0);
- }
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/printw.c /gnu/src/amiga/libcurses-8.3/printw.c
- *** libcurses-8.3/printw.c Sun Jan 2 14:26:50 1994
- --- /gnu/src/amiga/libcurses-8.3/printw.c Wed Jan 11 16:59:12 1995
- ***************
- *** 68,73 ****
- --- 68,74 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("printw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 75,81 ****
- #endif
- ret = vwprintw(stdscr, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 76,82 ----
- #endif
- ret = vwprintw(stdscr, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 95,100 ****
- --- 96,102 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("wprintw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 102,108 ****
- #endif
- ret = vwprintw(win, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 104,110 ----
- #endif
- ret = vwprintw(win, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 123,138 ****
- va_list ap;
- int ret;
-
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- va_start(ap);
- #endif
- if (move(y, x) != OK)
- ! return (ERR);
- ret = vwprintw(stdscr, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- int
- --- 125,141 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("mvprintw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- va_start(ap);
- #endif
- if (move(y, x) != OK)
- ! DBUG_RETURN (ERR);
- ret = vwprintw(stdscr, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- int
- ***************
- *** 150,166 ****
- va_list ap;
- int ret;
-
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- va_start(ap);
- #endif
- if (wmove(win, y, x) != OK)
- ! return (ERR);
-
- ret = vwprintw(win, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 153,170 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("mvwprintw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- va_start(ap);
- #endif
- if (wmove(win, y, x) != OK)
- ! DBUG_RETURN (ERR);
-
- ret = vwprintw(win, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 175,184 ****
- register WINDOW *win;
- register int c;
-
- for (c = n, win = cookie; --c >= 0;)
- if (waddch(win, *buf++) == ERR)
- ! return (-1);
- ! return (n);
- }
-
- /*
- --- 179,189 ----
- register WINDOW *win;
- register int c;
-
- + DBUG_ENTER ("__winwrite");
- for (c = n, win = cookie; --c >= 0;)
- if (waddch(win, *buf++) == ERR)
- ! DBUG_RETURN (-1);
- ! DBUG_RETURN (n);
- }
-
- /*
- ***************
- *** 192,200 ****
- va_list ap;
- {
- FILE *f;
-
- if ((f = funopen(win, NULL, __winwrite, NULL, NULL)) == NULL)
- ! return (ERR);
- (void)vfprintf(f, fmt, ap);
- ! return (fclose(f) ? ERR : OK);
- }
- --- 197,208 ----
- va_list ap;
- {
- FILE *f;
- + int ret;
-
- + DBUG_ENTER ("vwprintw");
- if ((f = funopen(win, NULL, __winwrite, NULL, NULL)) == NULL)
- ! DBUG_RETURN (ERR);
- (void)vfprintf(f, fmt, ap);
- ! ret = fclose(f) ? ERR : OK;
- ! DBUG_RETURN (ret);
- }
- diff -rc --new-file libcurses-8.3/putchar.c /gnu/src/amiga/libcurses-8.3/putchar.c
- *** libcurses-8.3/putchar.c Fri Jun 4 17:49:14 1993
- --- /gnu/src/amiga/libcurses-8.3/putchar.c Wed Jan 11 16:59:46 1995
- ***************
- *** 41,49 ****
- __cputchar(ch)
- int ch;
- {
- !
- ! #ifdef DEBUG
- ! __CTRACE("__cputchar: %s\n", unctrl(ch));
- ! #endif
- (void)putchar(ch);
- }
- --- 41,48 ----
- __cputchar(ch)
- int ch;
- {
- ! DBUG_ENTER ("__cputchar");
- ! DBUG_PRINT ("cputchar", ("%s", unctrl(ch)));
- (void)putchar(ch);
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/refresh.c /gnu/src/amiga/libcurses-8.3/refresh.c
- *** libcurses-8.3/refresh.c Tue Jul 20 08:24:22 1993
- --- /gnu/src/amiga/libcurses-8.3/refresh.c Wed Jan 11 18:06:04 1995
- ***************
- *** 48,54 ****
-
- /*
- * wrefresh --
- ! * Make the current screen look like "win" over the area coverd by
- * win.
- */
- int
- --- 48,54 ----
-
- /*
- * wrefresh --
- ! * Make the current screen look like "win" over the area covered by
- * win.
- */
- int
- ***************
- *** 60,65 ****
- --- 60,72 ----
- register short wy;
- int dnum;
-
- + DBUG_ENTER ("wrefresh");
- + DBUG_PRINT ("wrefresh", ("update screen to match window (%d,%d) to (%d,%d)",
- + win->begy, win->begx, win->maxy, win->maxx));
- + DBUG_PRINT ("wrefresh", ("current position in window is (%d,%d)",
- + win->cury, win->curx));
- + DBUG_PRINT ("wrefresh", ("current position in screen is (%d,%d)",
- + curscr->cury, curscr->curx));
- /* Initialize loop parameters. */
- ly = curscr->cury;
- lx = curscr->curx;
- ***************
- *** 95,104 ****
- if (!curwin)
- werase(curscr);
- }
- ! #ifdef DEBUG
- ! __CTRACE("wrefresh: (%0.2o): curwin = %d\n", win, curwin);
- ! __CTRACE("wrefresh: \tfirstch\tlastch\n");
- ! #endif
-
- #ifndef NOQCH
- if ((win->flags & __FULLWIN) && !curwin) {
- --- 102,109 ----
- if (!curwin)
- werase(curscr);
- }
- ! DBUG_PRINT ("wrefresh", ("(%0.2o): curwin = %d", win, curwin));
- ! DBUG_PRINT ("wrefresh", ("\tfirstch\tlastch"));
-
- #ifndef NOQCH
- if ((win->flags & __FULLWIN) && !curwin) {
- ***************
- *** 144,158 ****
- #endif /* DEBUG */
-
- for (wy = 0; wy < win->maxy; wy++) {
- ! #ifdef DEBUG
- ! __CTRACE("%d\t%d\t%d\n",
- ! wy, *win->lines[wy]->firstchp, *win->lines[wy]->lastchp);
- ! #endif
- if (!curwin)
- curscr->lines[wy]->hash = win->lines[wy]->hash;
- if (win->lines[wy]->flags & (__ISDIRTY | __FORCEPAINT)) {
- if (makech(win, wy) == ERR)
- ! return (ERR);
- else {
- if (*win->lines[wy]->firstchp >= win->ch_off)
- *win->lines[wy]->firstchp = win->maxx +
- --- 149,162 ----
- #endif /* DEBUG */
-
- for (wy = 0; wy < win->maxy; wy++) {
- ! DBUG_PRINT ("wrefresh", ("update window line at y offset %d", wy));
- ! DBUG_PRINT ("wrefresh", ("change pointers mark x offsets %d to %d",
- ! *win->lines[wy]->firstchp, *win->lines[wy]->lastchp));
- if (!curwin)
- curscr->lines[wy]->hash = win->lines[wy]->hash;
- if (win->lines[wy]->flags & (__ISDIRTY | __FORCEPAINT)) {
- if (makech(win, wy) == ERR)
- ! DBUG_RETURN (ERR);
- else {
- if (*win->lines[wy]->firstchp >= win->ch_off)
- *win->lines[wy]->firstchp = win->maxx +
- ***************
- *** 162,170 ****
- *win->lines[wy]->lastchp = win->ch_off;
- if (*win->lines[wy]->lastchp <
- *win->lines[wy]->firstchp) {
- ! #ifdef DEBUG
- ! __CTRACE("wrefresh: line %d notdirty \n", wy);
- ! #endif
- win->lines[wy]->flags &= ~__ISDIRTY;
- }
- }
- --- 166,172 ----
- *win->lines[wy]->lastchp = win->ch_off;
- if (*win->lines[wy]->lastchp <
- *win->lines[wy]->firstchp) {
- ! DBUG_PRINT ("wrefresh", ("line %d notdirty", wy));
- win->lines[wy]->flags &= ~__ISDIRTY;
- }
- }
- ***************
- *** 176,184 ****
- #endif
- }
-
- ! #ifdef DEBUG
- ! __CTRACE("refresh: ly=%d, lx=%d\n", ly, lx);
- ! #endif
-
- if (win == curscr)
- domvcur(ly, lx, win->cury, win->curx);
- --- 178,184 ----
- #endif
- }
-
- ! DBUG_PRINT ("refresh", ("ly=%d, lx=%d", ly, lx));
-
- if (win == curscr)
- domvcur(ly, lx, win->cury, win->curx);
- ***************
- *** 202,210 ****
- }
- }
- retval = OK;
- !
- (void)fflush(stdout);
- ! return (retval);
- }
-
- /*
- --- 202,210 ----
- }
- }
- retval = OK;
- ! DBUG_PRINT ("flush", ("flush stdout"));
- (void)fflush(stdout);
- ! DBUG_RETURN (retval);
- }
-
- /*
- ***************
- *** 223,228 ****
- --- 223,230 ----
- u_int force;
- char *ce;
-
- + DBUG_ENTER ("makech");
- + DBUG_PRINT ("screen", ("make a change on the screen"));
- /* Is the cursor still on the end of the last line? */
- if (wy > 0 && win->lines[wy - 1]->flags & __ISPASTEOL) {
- domvcur(ly, lx, ly + 1, 0);
- ***************
- *** 233,242 ****
- if (wx < 0)
- wx = 0;
- else if (wx >= win->maxx)
- ! return (OK);
- lch = *win->lines[wy]->lastchp - win->ch_off;
- if (lch < 0)
- ! return (OK);
- else if (lch >= (int) win->maxx)
- lch = win->maxx - 1;
- y = wy + win->begy;
- --- 235,244 ----
- if (wx < 0)
- wx = 0;
- else if (wx >= win->maxx)
- ! DBUG_RETURN (OK);
- lch = *win->lines[wy]->lastchp - win->ch_off;
- if (lch < 0)
- ! DBUG_RETURN (OK);
- else if (lch >= (int) win->maxx)
- lch = win->maxx - 1;
- y = wy + win->begy;
- ***************
- *** 285,294 ****
- }
- domvcur(ly, lx, y, wx + win->begx);
-
- ! #ifdef DEBUG
- ! __CTRACE("makech: 1: wx = %d, ly= %d, lx = %d, newy = %d, newx = %d, force =%d\n",
- ! wx, ly, lx, y, wx + win->begx, force);
- ! #endif
- ly = y;
- lx = wx + win->begx;
- while ((force || memcmp(nsp, csp, sizeof(__LDATA)) != 0)
- --- 287,294 ----
- }
- domvcur(ly, lx, y, wx + win->begx);
-
- ! DBUG_PRINT ("makech", ("1: wx = %d, ly= %d, lx = %d, newy = %d, newx = %d, force =%d",
- ! wx, ly, lx, y, wx + win->begx, force));
- ly = y;
- lx = wx + win->begx;
- while ((force || memcmp(nsp, csp, sizeof(__LDATA)) != 0)
- ***************
- *** 303,317 ****
- break;
- clsp = cep - curscr->lines[wy]->line -
- win->begx * __LDATASIZE;
- ! #ifdef DEBUG
- ! __CTRACE("makech: clsp = %d, nlsp = %d\n", clsp, nlsp);
- ! #endif
- if ((clsp - nlsp >= strlen(CE)
- && clsp < win->maxx * __LDATASIZE) ||
- wy == win->maxy - 1) {
- ! #ifdef DEBUG
- ! __CTRACE("makech: using CE\n");
- ! #endif
- tputs(CE, 0, __cputchar);
- lx = wx + win->begx;
- while (wx++ <= clsp) {
- --- 303,313 ----
- break;
- clsp = cep - curscr->lines[wy]->line -
- win->begx * __LDATASIZE;
- ! DBUG_PRINT ("makech", ("clsp = %d, nlsp = %d", clsp, nlsp));
- if ((clsp - nlsp >= strlen(CE)
- && clsp < win->maxx * __LDATASIZE) ||
- wy == win->maxy - 1) {
- ! DBUG_PRINT ("makech", ("using CE"));
- tputs(CE, 0, __cputchar);
- lx = wx + win->begx;
- while (wx++ <= clsp) {
- ***************
- *** 319,325 ****
- csp->attr = 0;
- csp++;
- }
- ! return (OK);
- }
- ce = NULL;
- }
- --- 315,321 ----
- csp->attr = 0;
- csp++;
- }
- ! DBUG_RETURN (OK);
- }
- ce = NULL;
- }
- ***************
- *** 361,367 ****
- }
- ly = win->begy + win->maxy - 1;
- lx = win->begx + win->maxx - 1;
- ! return (OK);
- }
- if (wx < win->maxx || wy < win->maxy - 1 ||
- !(win->flags & __SCROLLWIN)) {
- --- 357,363 ----
- }
- ly = win->begy + win->maxy - 1;
- lx = win->begx + win->maxx - 1;
- ! DBUG_RETURN (OK);
- }
- if (wx < win->maxx || wy < win->maxy - 1 ||
- !(win->flags & __SCROLLWIN)) {
- ***************
- *** 372,388 ****
- } else
- putchar(nsp->ch);
- }
- ! #ifdef DEBUG
- ! __CTRACE("makech: putchar(%c)\n", nsp->ch & 0177);
- ! #endif
- if (UC && (nsp->attr & __STANDOUT)) {
- putchar('\b');
- tputs(UC, 0, __cputchar);
- }
- nsp++;
- ! #ifdef DEBUG
- ! __CTRACE("makech: 2: wx = %d, lx = %d\n", wx, lx);
- ! #endif
- }
- if (lx == wx + win->begx) /* If no change. */
- break;
- --- 368,380 ----
- } else
- putchar(nsp->ch);
- }
- ! DBUG_PRINT ("makech", ("putchar(%c)", nsp->ch & 0177));
- if (UC && (nsp->attr & __STANDOUT)) {
- putchar('\b');
- tputs(UC, 0, __cputchar);
- }
- nsp++;
- ! DBUG_PRINT ("makech", ("2: wx = %d, lx = %d", wx, lx));
- }
- if (lx == wx + win->begx) /* If no change. */
- break;
- ***************
- *** 394,404 ****
- lx = win->maxx + win->begx - 1;
- }
-
- ! #ifdef DEBUG
- ! __CTRACE("makech: 3: wx = %d, lx = %d\n", wx, lx);
- ! #endif
- }
- ! return (OK);
- }
-
- /*
- --- 386,394 ----
- lx = win->maxx + win->begx - 1;
- }
-
- ! DBUG_PRINT ("makech", ("3: wx = %d, lx = %d", wx, lx));
- }
- ! DBUG_RETURN (OK);
- }
-
- /*
- ***************
- *** 409,420 ****
- --- 399,412 ----
- domvcur(oy, ox, ny, nx)
- int oy, ox, ny, nx;
- {
- + DBUG_ENTER ("domvcur");
- if (curscr->flags & __WSTANDOUT && !MS) {
- tputs(SE, 0, __cputchar);
- curscr->flags &= ~__WSTANDOUT;
- }
-
- __mvcur(oy, ox, ny, nx, 1);
- + DBUG_VOID_RETURN;
- }
-
- /*
- ***************
- *** 435,440 ****
- --- 427,433 ----
- __LDATA buf[1024];
- u_int blank_hash;
-
- + DBUG_ENTER ("quickch");
- /*
- * Find how many lines from the top of the screen are unchanged.
- */
- ***************
- *** 468,474 ****
- * but it looks better.
- */
- if (bot < win->maxy - 1)
- ! return;
- #endif /* NO_JERKINESS */
-
- /*
- --- 461,467 ----
- * but it looks better.
- */
- if (bot < win->maxy - 1)
- ! DBUG_VOID_RETURN;
- #endif /* NO_JERKINESS */
-
- /*
- ***************
- *** 503,514 ****
- done:
- /* Did not find anything */
- if (bsize < THRESH)
- ! return;
-
- ! #ifdef DEBUG
- ! __CTRACE("quickch:bsize=%d,starts=%d,startw=%d,curw=%d,curs=%d,top=%d,bot=%d\n",
- ! bsize, starts, startw, curw, curs, top, bot);
- ! #endif
-
- /*
- * Make sure that there is no overlap between the bottom and top
- --- 496,505 ----
- done:
- /* Did not find anything */
- if (bsize < THRESH)
- ! DBUG_VOID_RETURN;
-
- ! DBUG_PRINT ("quickch", ("bsize=%d,starts=%d,startw=%d,curw=%d,curs=%d,top=%d,bot=%d",
- ! bsize, starts, startw, curw, curs, top, bot));
-
- /*
- * Make sure that there is no overlap between the bottom and top
- ***************
- *** 597,611 ****
- curscr->lines[target] = tmp1;
- /* Mark block as clean and blank out scrolled lines. */
- clp = curscr->lines[target];
- ! #ifdef DEBUG
- ! __CTRACE("quickch: n=%d startw=%d curw=%d i = %d target=%d ",
- ! n, startw, curw, i, target);
- ! #endif
- if ((target >= startw && target < curw) || target < top
- || target > bot) {
- ! #ifdef DEBUG
- ! __CTRACE("-- notdirty");
- ! #endif
- win->lines[target]->flags &= ~__ISDIRTY;
- } else if ((n > 0 && target >= top && target < top + n) ||
- (n < 0 && target <= bot && target > bot + n)) {
- --- 588,598 ----
- curscr->lines[target] = tmp1;
- /* Mark block as clean and blank out scrolled lines. */
- clp = curscr->lines[target];
- ! DBUG_PRINT ("quickch", ("n=%d startw=%d curw=%d i = %d target=%d",
- ! n, startw, curw, i, target));
- if ((target >= startw && target < curw) || target < top
- || target > bot) {
- ! DBUG_PRINT ("quickch", ("-- notdirty"));
- win->lines[target]->flags &= ~__ISDIRTY;
- } else if ((n > 0 && target >= top && target < top + n) ||
- (n < 0 && target <= bot && target > bot + n)) {
- ***************
- *** 613,633 ****
- buf, win->maxx * __LDATASIZE) !=0) {
- (void)memcpy(clp->line, buf,
- win->maxx * __LDATASIZE);
- ! #ifdef DEBUG
- ! __CTRACE("-- blanked out: dirty");
- ! #endif
- clp->hash = blank_hash;
- __touchline(win, target, 0, win->maxx - 1, 0);
- } else {
- __touchline(win, target, 0, win->maxx - 1, 0);
- ! #ifdef DEBUG
- ! __CTRACE(" -- blank line already: dirty");
- ! #endif
- }
- } else {
- ! #ifdef DEBUG
- ! __CTRACE(" -- dirty");
- ! #endif
- __touchline(win, target, 0, win->maxx - 1, 0);
- }
- #ifdef DEBUG
- --- 600,614 ----
- buf, win->maxx * __LDATASIZE) !=0) {
- (void)memcpy(clp->line, buf,
- win->maxx * __LDATASIZE);
- ! DBUG_PRINT ("quickch", ("-- blanked out: dirty"));
- clp->hash = blank_hash;
- __touchline(win, target, 0, win->maxx - 1, 0);
- } else {
- __touchline(win, target, 0, win->maxx - 1, 0);
- ! DBUG_PRINT ("quickch", (" -- blank line already: dirty"));
- }
- } else {
- ! DBUG_PRINT ("quickch", (" -- dirty"));
- __touchline(win, target, 0, win->maxx - 1, 0);
- }
- #ifdef DEBUG
- ***************
- *** 667,672 ****
- --- 648,654 ----
- for (wp = win->nextp; wp != win; wp = wp->nextp)
- __set_subwin(win, wp);
- }
- + DBUG_VOID_RETURN;
- }
-
- /*
- ***************
- *** 679,684 ****
- --- 661,667 ----
- {
- int i, oy, ox, n;
-
- + DBUG_ENTER ("scrolln");
- oy = curscr->cury;
- ox = curscr->curx;
- n = starts - startw;
- ***************
- *** 720,723 ****
- --- 703,707 ----
- tputs(al, 0, __cputchar);
- __mvcur(top, 0, oy, ox, 1);
- }
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/scanw.c /gnu/src/amiga/libcurses-8.3/scanw.c
- *** libcurses-8.3/scanw.c Tue Oct 5 10:20:54 1993
- --- /gnu/src/amiga/libcurses-8.3/scanw.c Wed Jan 11 17:28:39 1995
- ***************
- *** 63,68 ****
- --- 63,69 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("scanw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 70,76 ****
- #endif
- ret = vwscanw(stdscr, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 71,77 ----
- #endif
- ret = vwscanw(stdscr, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 90,95 ****
- --- 91,97 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("wscanw");
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 97,103 ****
- #endif
- ret = vwscanw(win, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 99,105 ----
- #endif
- ret = vwscanw(win, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 118,125 ****
- va_list ap;
- int ret;
-
- if (move(y, x) != OK)
- ! return (ERR);
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- --- 120,128 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("mvscanw");
- if (move(y, x) != OK)
- ! DBUG_RETURN (ERR);
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 127,133 ****
- #endif
- ret = vwscanw(stdscr, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- int
- --- 130,136 ----
- #endif
- ret = vwscanw(stdscr, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- int
- ***************
- *** 145,152 ****
- va_list ap;
- int ret;
-
- if (move(y, x) != OK)
- ! return (ERR);
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- --- 148,156 ----
- va_list ap;
- int ret;
-
- + DBUG_ENTER ("mvwscanw");
- if (move(y, x) != OK)
- ! DBUG_RETURN (ERR);
- #ifdef __STDC__
- va_start(ap, fmt);
- #else
- ***************
- *** 154,160 ****
- #endif
- ret = vwscanw(win, fmt, ap);
- va_end(ap);
- ! return (ret);
- }
-
- /*
- --- 158,164 ----
- #endif
- ret = vwscanw(win, fmt, ap);
- va_end(ap);
- ! DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 169,175 ****
- {
-
- char buf[1024];
-
- ! return (wgetstr(win, buf) == OK ?
- vsscanf(buf, fmt, ap) : ERR);
- }
- --- 173,182 ----
- {
-
- char buf[1024];
- + int ret;
-
- ! DBUG_ENTER ("vwscanw");
- ! ret = (wgetstr(win, buf) == OK ?
- vsscanf(buf, fmt, ap) : ERR);
- + DBUG_RETURN (ret);
- }
- diff -rc --new-file libcurses-8.3/scroll.c /gnu/src/amiga/libcurses-8.3/scroll.c
- *** libcurses-8.3/scroll.c Sun Jan 9 16:40:54 1994
- --- /gnu/src/amiga/libcurses-8.3/scroll.c Wed Jan 11 17:02:42 1995
- ***************
- *** 47,58 ****
- {
- register int oy, ox;
-
- ! #ifdef DEBUG
- ! __CTRACE("scroll: (%0.2o)\n", win);
- ! #endif
-
- if (!(win->flags & __SCROLLOK))
- ! return (ERR);
-
- getyx(win, oy, ox);
- wmove(win, 0, 0);
- --- 47,57 ----
- {
- register int oy, ox;
-
- ! DBUG_ENTER ("scroll");
- ! DBUG_PRINT ("scroll", ("(%0.2o)", win));
-
- if (!(win->flags & __SCROLLOK))
- ! DBUG_RETURN (ERR);
-
- getyx(win, oy, ox);
- wmove(win, 0, 0);
- ***************
- *** 63,71 ****
- putchar('\n');
- if (!NONL)
- win->curx = 0;
- ! #ifdef DEBUG
- ! __CTRACE("scroll: win == curscr\n");
- ! #endif
- }
- ! return (OK);
- }
- --- 62,68 ----
- putchar('\n');
- if (!NONL)
- win->curx = 0;
- ! DBUG_PRINT ("scroll", ("win == curscr"));
- }
- ! DBUG_RETURN (OK);
- }
- diff -rc --new-file libcurses-8.3/setterm.c /gnu/src/amiga/libcurses-8.3/setterm.c
- *** libcurses-8.3/setterm.c Sun Jan 2 14:28:26 1994
- --- /gnu/src/amiga/libcurses-8.3/setterm.c Wed Jan 11 18:23:08 1995
- ***************
- *** 88,97 ****
- struct winsize win;
- char *p;
-
- ! #ifdef DEBUG
- ! __CTRACE("setterm: (\"%s\")\nLINES = %d, COLS = %d\n",
- ! type, LINES, COLS);
- ! #endif
- if (type[0] == '\0')
- type = "xx";
- unknown = 0;
- --- 88,96 ----
- struct winsize win;
- char *p;
-
- ! DBUG_ENTER ("setterm");
- ! DBUG_PRINT ("setterm", ("(\"%s\") LINES = %d, COLS = %d",
- ! type, LINES, COLS));
- if (type[0] == '\0')
- type = "xx";
- unknown = 0;
- ***************
- *** 99,116 ****
- unknown++;
- strcpy(genbuf, "xx|dumb:");
- }
- ! #ifdef DEBUG
- ! __CTRACE("setterm: tty = %s\n", type);
- ! #endif
-
- /* Try TIOCGWINSZ, and, if it fails, the termcap entry. */
- if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) != -1 &&
- win.ws_row != 0 && win.ws_col != 0) {
- LINES = win.ws_row;
- COLS = win.ws_col;
- } else {
- LINES = tgetnum("li");
- COLS = tgetnum("co");
- }
-
- /* POSIX 1003.2 requires that the environment override. */
- --- 98,115 ----
- unknown++;
- strcpy(genbuf, "xx|dumb:");
- }
- ! DBUG_PRINT ("setterm", ("tty = %s", type));
-
- /* Try TIOCGWINSZ, and, if it fails, the termcap entry. */
- if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) != -1 &&
- win.ws_row != 0 && win.ws_col != 0) {
- LINES = win.ws_row;
- COLS = win.ws_col;
- + DBUG_PRINT ("size", ("from TIOCGWINSZ, LINES=%d, COLS=%d", LINES, COLS));
- } else {
- LINES = tgetnum("li");
- COLS = tgetnum("co");
- + DBUG_PRINT ("size", ("from termcap, LINES=%d, COLS=%d", LINES, COLS));
- }
-
- /* POSIX 1003.2 requires that the environment override. */
- ***************
- *** 118,133 ****
- LINES = strtol(p, NULL, 10);
- if ((p = getenv("COLUMNS")) != NULL)
- COLS = strtol(p, NULL, 10);
-
- /*
- * Want cols > 4, otherwise things will fail.
- */
- if (COLS <= 4)
- ! return (ERR);
-
- - #ifdef DEBUG
- - __CTRACE("setterm: LINES = %d, COLS = %d\n", LINES, COLS);
- - #endif
- aoftspace = tspace;
- zap(); /* Get terminal description. */
-
- --- 117,130 ----
- LINES = strtol(p, NULL, 10);
- if ((p = getenv("COLUMNS")) != NULL)
- COLS = strtol(p, NULL, 10);
- + DBUG_PRINT ("size", ("after getenv(), LINES=%d, COLS=%d", LINES, COLS));
-
- /*
- * Want cols > 4, otherwise things will fail.
- */
- if (COLS <= 4)
- ! DBUG_RETURN (ERR);
-
- aoftspace = tspace;
- zap(); /* Get terminal description. */
-
- ***************
- *** 151,161 ****
- PC = _PC ? _PC[0] : 0;
- aoftspace = tspace;
- ttytype = longname(genbuf, __ttytype);
- !
- if ((!AL && !al) || (!DL && !dl))
- __noqch = 1;
-
- ! return (unknown ? ERR : OK);
- }
-
- /*
- --- 148,158 ----
- PC = _PC ? _PC[0] : 0;
- aoftspace = tspace;
- ttytype = longname(genbuf, __ttytype);
- ! DBUG_PRINT ("ttytype", ("ttytype = '%s'", ttytype ? ttytype : "<NULL>"));
- if ((!AL && !al) || (!DL && !dl))
- __noqch = 1;
-
- ! DBUG_RETURN (unknown ? ERR : OK);
- }
-
- /*
- ***************
- *** 171,176 ****
- --- 168,175 ----
- #ifdef DEBUG
- register char *cp;
- #endif
- +
- + DBUG_ENTER ("zap");
- tmp[2] = '\0';
-
- namp = "ambsdaeohcinmimsncnsosulxbxnxtxsxx";
- ***************
- *** 179,187 ****
- *tmp = *namp;
- *(tmp + 1) = *(namp + 1);
- *(*fp++) = tgetflag(tmp);
- ! #ifdef DEBUG
- ! __CTRACE("2.2s = %s\n", namp, *fp[-1] ? "TRUE" : "FALSE");
- ! #endif
- namp += 2;
-
- } while (*namp);
- --- 178,184 ----
- *tmp = *namp;
- *(tmp + 1) = *(namp + 1);
- *(*fp++) = tgetflag(tmp);
- ! DBUG_PRINT ("zap", ("2.2%s = %s", namp, *fp[-1] ? "TRUE" : "FALSE"));
- namp += 2;
-
- } while (*namp);
- ***************
- *** 213,218 ****
- --- 210,216 ----
- SE = UE;
- }
- }
- + DBUG_VOID_RETURN;
- }
-
- /*
- ***************
- *** 223,227 ****
- getcap(name)
- char *name;
- {
- ! return (tgetstr(name, &aoftspace));
- }
- --- 221,231 ----
- getcap(name)
- char *name;
- {
- ! char *ret;
- !
- ! DBUG_ENTER ("getcap");
- ! DBUG_PRINT ("termcap", ("get capability '%s'", name));
- ! ret = tgetstr(name, &aoftspace);
- ! DBUG_PRINT ("termcap", ("got '%s'", ret));
- ! DBUG_RETURN (ret);
- }
- diff -rc --new-file libcurses-8.3/standout.c /gnu/src/amiga/libcurses-8.3/standout.c
- *** libcurses-8.3/standout.c Fri Jun 4 17:49:32 1993
- --- /gnu/src/amiga/libcurses-8.3/standout.c Wed Jan 11 17:06:13 1995
- ***************
- *** 45,55 ****
- wstandout(win)
- register WINDOW *win;
- {
- if (!SO && !UC)
- ! return (0);
-
- win->flags |= __WSTANDOUT;
- ! return (SO ? SO : UC);
- }
-
- /*
- --- 45,56 ----
- wstandout(win)
- register WINDOW *win;
- {
- + DBUG_ENTER ("wstandout");
- if (!SO && !UC)
- ! DBUG_RETURN (0);
-
- win->flags |= __WSTANDOUT;
- ! DBUG_RETURN (SO ? SO : UC);
- }
-
- /*
- ***************
- *** 60,68 ****
- wstandend(win)
- register WINDOW *win;
- {
- if (!SO && !UC)
- ! return (0);
-
- win->flags &= ~__WSTANDOUT;
- ! return (SE ? SE : UC);
- }
- --- 61,70 ----
- wstandend(win)
- register WINDOW *win;
- {
- + DBUG_ENTER ("wstandend");
- if (!SO && !UC)
- ! DBUG_RETURN (0);
-
- win->flags &= ~__WSTANDOUT;
- ! DBUG_RETURN (SE ? SE : UC);
- }
- diff -rc --new-file libcurses-8.3/toucholap.c /gnu/src/amiga/libcurses-8.3/toucholap.c
- *** libcurses-8.3/toucholap.c Fri Jun 4 17:49:38 1993
- --- /gnu/src/amiga/libcurses-8.3/toucholap.c Wed Jan 11 17:06:42 1995
- ***************
- *** 47,77 ****
- {
- register int y, endy, endx, starty, startx;
-
- ! #ifdef DEBUG
- ! __CTRACE("touchoverlap: (%0.2o, %0.2o);\n", win1, win2);
- ! #endif
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- ! #ifdef DEBUG
- ! __CTRACE("touchoverlap: from (%d,%d) to (%d,%d)\n",
- ! starty, startx, endy, endx);
- ! __CTRACE("touchoverlap: win1 (%d,%d) to (%d,%d)\n",
- win1->begy, win1->begx, win1->begy + win1->maxy,
- ! win1->begx + win1->maxx);
- ! __CTRACE("touchoverlap: win2 (%d,%d) to (%d,%d)\n",
- win2->begy, win2->begx, win2->begy + win2->maxy,
- ! win2->begx + win2->maxx);
- ! #endif
- if (starty >= endy || startx >= endx)
- ! return (OK);
- starty -= win2->begy;
- startx -= win2->begx;
- endy -= win2->begy;
- endx -= win2->begx;
- for (--endx, y = starty; y < endy; y++)
- __touchline(win2, y, startx, endx, 0);
- ! return (OK);
- }
-
- --- 47,74 ----
- {
- register int y, endy, endx, starty, startx;
-
- ! DBUG_ENTER ("touchoverlap");
- ! DBUG_PRINT ("touchoverlap", ("(%0.2o, %0.2o)", win1, win2));
- starty = max(win1->begy, win2->begy);
- startx = max(win1->begx, win2->begx);
- endy = min(win1->maxy + win1->begy, win2->maxy + win2->begx);
- endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
- ! DBUG_PRINT ("touchoverlap", ("from (%d,%d) to (%d,%d)",
- ! starty, startx, endy, endx));
- ! DBUG_PRINT ("touchoverlap", ("win1 (%d,%d) to (%d,%d)",
- win1->begy, win1->begx, win1->begy + win1->maxy,
- ! win1->begx + win1->maxx));
- ! DBUG_PRINT ("touchoverlap", ("win2 (%d,%d) to (%d,%d)",
- win2->begy, win2->begx, win2->begy + win2->maxy,
- ! win2->begx + win2->maxx));
- if (starty >= endy || startx >= endx)
- ! DBUG_RETURN (OK);
- starty -= win2->begy;
- startx -= win2->begx;
- endy -= win2->begy;
- endx -= win2->begx;
- for (--endx, y = starty; y < endy; y++)
- __touchline(win2, y, startx, endx, 0);
- ! DBUG_RETURN (OK);
- }
-
- diff -rc --new-file libcurses-8.3/touchwin.c /gnu/src/amiga/libcurses-8.3/touchwin.c
- *** libcurses-8.3/touchwin.c Fri Jun 4 17:49:40 1993
- --- /gnu/src/amiga/libcurses-8.3/touchwin.c Wed Jan 11 17:08:36 1995
- ***************
- *** 47,53 ****
- WINDOW *win;
- register int y, sx, ex;
- {
- ! return (__touchline(win, y, sx, ex, 1));
- }
-
-
- --- 47,57 ----
- WINDOW *win;
- register int y, sx, ex;
- {
- ! int ret;
- !
- ! DBUG_ENTER ("touchline");
- ! ret = __touchline(win, y, sx, ex, 1);
- ! DBUG_RETURN (ret);
- }
-
-
- ***************
- *** 61,73 ****
- {
- register int y, maxy;
-
- ! #ifdef DEBUG
- ! __CTRACE("touchwin: (%0.2o)\n", win);
- ! #endif
- maxy = win->maxy;
- for (y = 0; y < maxy; y++)
- __touchline(win, y, 0, win->maxx - 1, 1);
- ! return (OK);
- }
-
-
- --- 65,76 ----
- {
- register int y, maxy;
-
- ! DBUG_ENTER ("touchwin");
- ! DBUG_PRINT ("touchwin", ("(%0.2o)", win));
- maxy = win->maxy;
- for (y = 0; y < maxy; y++)
- __touchline(win, y, 0, win->maxx - 1, 1);
- ! DBUG_RETURN (OK);
- }
-
-
- ***************
- *** 77,89 ****
- {
- register int y, maxy;
-
- ! #ifdef DEBUG
- ! __CTRACE("touchwin: (%0.2o)\n", win);
- ! #endif
- maxy = win->maxy;
- for (y = 0; y < maxy; y++)
- __touchline(win, y, 0, win->maxx - 1, 0);
- ! return (OK);
- }
-
- int
- --- 80,91 ----
- {
- register int y, maxy;
-
- ! DBUG_ENTER ("__touchwin");
- ! DBUG_PRINT ("touchwin", ("(%0.2o)", win));
- maxy = win->maxy;
- for (y = 0; y < maxy; y++)
- __touchline(win, y, 0, win->maxx - 1, 0);
- ! DBUG_RETURN (OK);
- }
-
- int
- ***************
- *** 92,102 ****
- register int y, sx, ex;
- int force;
- {
- ! #ifdef DEBUG
- ! __CTRACE("touchline: (%0.2o, %d, %d, %d, %d)\n", win, y, sx, ex, force);
- ! __CTRACE("touchline: first = %d, last = %d\n",
- ! *win->lines[y]->firstchp, *win->lines[y]->lastchp);
- ! #endif
- if (force)
- win->lines[y]->flags |= __FORCEPAINT;
- sx += win->ch_off;
- --- 94,103 ----
- register int y, sx, ex;
- int force;
- {
- ! DBUG_ENTER ("__touchline");
- ! DBUG_PRINT ("touchline", ("(%0.2o, %d, %d, %d, %d)", win, y, sx, ex, force));
- ! DBUG_PRINT ("touchline", ("first = %d, last = %d",
- ! *win->lines[y]->firstchp, *win->lines[y]->lastchp));
- if (force)
- win->lines[y]->flags |= __FORCEPAINT;
- sx += win->ch_off;
- ***************
- *** 111,121 ****
- if (*win->lines[y]->lastchp < ex)
- *win->lines[y]->lastchp = ex;
- }
- ! #ifdef DEBUG
- ! __CTRACE("touchline: first = %d, last = %d\n",
- ! *win->lines[y]->firstchp, *win->lines[y]->lastchp);
- ! #endif
- ! return (OK);
- }
-
-
- --- 112,120 ----
- if (*win->lines[y]->lastchp < ex)
- *win->lines[y]->lastchp = ex;
- }
- ! DBUG_PRINT ("touchline", ("first = %d, last = %d",
- ! *win->lines[y]->firstchp, *win->lines[y]->lastchp));
- ! DBUG_RETURN (OK);
- }
-
-
- diff -rc --new-file libcurses-8.3/tscroll.c /gnu/src/amiga/libcurses-8.3/tscroll.c
- *** libcurses-8.3/tscroll.c Fri Apr 15 10:45:44 1994
- --- /gnu/src/amiga/libcurses-8.3/tscroll.c Wed Jan 11 17:10:47 1995
- ***************
- *** 69,74 ****
- --- 69,75 ----
- int c;
- char *dp;
-
- + DBUG_ENTER ("__tscroll");
- if (cap == NULL)
- goto err;
- for (dp = result; (c = *cap++) != '\0';) {
- ***************
- *** 132,138 ****
- }
- }
- *dp = '\0';
- ! return (result);
-
- ! err: return("curses: __tscroll failed");
- }
- --- 133,139 ----
- }
- }
- *dp = '\0';
- ! DBUG_RETURN (result);
-
- ! err: DBUG_RETURN("curses: __tscroll failed");
- }
- diff -rc --new-file libcurses-8.3/tstp.c /gnu/src/amiga/libcurses-8.3/tstp.c
- *** libcurses-8.3/tstp.c Sun Jan 2 14:29:28 1994
- --- /gnu/src/amiga/libcurses-8.3/tstp.c Wed Jan 11 17:12:09 1995
- ***************
- *** 53,61 ****
- struct termios save;
- sigset_t oset, set;
-
- /* Get the current terminal state (which the user may have changed). */
- if (tcgetattr(STDIN_FILENO, &save))
- ! return;
-
- /*
- * Block window change and timer signals. The latter is because
- --- 53,62 ----
- struct termios save;
- sigset_t oset, set;
-
- + DBUG_ENTER ("__stop_signal_handler");
- /* Get the current terminal state (which the user may have changed). */
- if (tcgetattr(STDIN_FILENO, &save))
- ! DBUG_VOID_RETURN;
-
- /*
- * Block window change and timer signals. The latter is because
- ***************
- *** 101,106 ****
- --- 102,108 ----
-
- /* Reset the signals. */
- (void)sigprocmask(SIG_SETMASK, &oset, NULL);
- + DBUG_VOID_RETURN;
- }
-
- static void (*otstpfn)() = SIG_DFL;
- ***************
- *** 111,117 ****
- --- 113,121 ----
- void
- __set_stophandler()
- {
- + DBUG_ENTER ("__set_stophandler");
- otstpfn = signal(SIGTSTP, __stop_signal_handler);
- + DBUG_VOID_RETURN;
- }
-
- /*
- ***************
- *** 120,124 ****
- --- 124,130 ----
- void
- __restore_stophandler()
- {
- + DBUG_ENTER ("__restore_stophandler");
- (void)signal(SIGTSTP, otstpfn);
- + DBUG_VOID_RETURN;
- }
- diff -rc --new-file libcurses-8.3/tty.c /gnu/src/amiga/libcurses-8.3/tty.c
- *** libcurses-8.3/tty.c Sun Jan 2 14:30:06 1994
- --- /gnu/src/amiga/libcurses-8.3/tty.c Wed Jan 11 17:31:15 1995
- ***************
- *** 73,82 ****
- int
- gettmode()
- {
- useraw = 0;
- -
- if (tcgetattr(STDIN_FILENO, &__orig_termios))
- ! return (ERR);
-
- __baset = __orig_termios;
- __baset.c_oflag &= ~OXTABS;
- --- 73,84 ----
- int
- gettmode()
- {
- + int ret;
- +
- + DBUG_ENTER ("gettmode");
- useraw = 0;
- if (tcgetattr(STDIN_FILENO, &__orig_termios))
- ! DBUG_RETURN (ERR);
-
- __baset = __orig_termios;
- __baset.c_oflag &= ~OXTABS;
- ***************
- *** 116,190 ****
- }
-
- curt = &__baset;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt) ? ERR : OK);
- }
-
- int
- raw()
- {
- useraw = __pfast = __rawmode = 1;
- curt = &rawt;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- noraw()
- {
- useraw = __pfast = __rawmode = 0;
- curt = &__baset;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- cbreak()
- {
-
- __rawmode = 1;
- curt = useraw ? &rawt : &cbreakt;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- nocbreak()
- {
-
- __rawmode = 0;
- curt = useraw ? &rawt : &__baset;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- echo()
- {
- rawt.c_lflag |= ECHO;
- cbreakt.c_lflag |= ECHO;
- __baset.c_lflag |= ECHO;
-
- __echoit = 1;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- noecho()
- {
- rawt.c_lflag &= ~ECHO;
- cbreakt.c_lflag &= ~ECHO;
- __baset.c_lflag &= ~ECHO;
-
- __echoit = 0;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- nl()
- {
- rawt.c_iflag |= ICRNL;
- rawt.c_oflag |= ONLCR;
- cbreakt.c_iflag |= ICRNL;
- --- 118,218 ----
- }
-
- curt = &__baset;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt) ? ERR : OK);
- + DBUG_RETURN (ret);
- }
-
- int
- raw()
- {
- + int ret;
- +
- + DBUG_ENTER ("raw");
- useraw = __pfast = __rawmode = 1;
- curt = &rawt;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- noraw()
- {
- + int ret;
- +
- + DBUG_ENTER ("noraw");
- useraw = __pfast = __rawmode = 0;
- curt = &__baset;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- cbreak()
- {
- + int ret;
-
- + DBUG_ENTER ("cbreak");
- __rawmode = 1;
- curt = useraw ? &rawt : &cbreakt;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- nocbreak()
- {
- + int ret;
-
- + DBUG_ENTER ("nocbreak");
- __rawmode = 0;
- curt = useraw ? &rawt : &__baset;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- echo()
- {
- + int ret;
- +
- + DBUG_ENTER ("echo");
- rawt.c_lflag |= ECHO;
- cbreakt.c_lflag |= ECHO;
- __baset.c_lflag |= ECHO;
-
- __echoit = 1;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- noecho()
- {
- + int ret;
- +
- + DBUG_ENTER ("noecho");
- rawt.c_lflag &= ~ECHO;
- cbreakt.c_lflag &= ~ECHO;
- __baset.c_lflag &= ~ECHO;
-
- __echoit = 0;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- nl()
- {
- + int ret;
- +
- + DBUG_ENTER ("nl");
- rawt.c_iflag |= ICRNL;
- rawt.c_oflag |= ONLCR;
- cbreakt.c_iflag |= ICRNL;
- ***************
- *** 193,205 ****
- __baset.c_oflag |= ONLCR;
-
- __pfast = __rawmode;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- int
- nonl()
- {
- rawt.c_iflag &= ~ICRNL;
- rawt.c_oflag &= ~ONLCR;
- cbreakt.c_iflag &= ~ICRNL;
- --- 221,237 ----
- __baset.c_oflag |= ONLCR;
-
- __pfast = __rawmode;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- int
- nonl()
- {
- + int ret;
- +
- + DBUG_ENTER ("nonl");
- rawt.c_iflag &= ~ICRNL;
- rawt.c_oflag &= ~ONLCR;
- cbreakt.c_iflag &= ~ICRNL;
- ***************
- *** 208,230 ****
- __baset.c_oflag &= ~ONLCR;
-
- __pfast = 1;
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- }
-
- void
- __startwin()
- {
- (void)fflush(stdout);
- (void)setvbuf(stdout, NULL, _IOFBF, 0);
-
- tputs(TI, 0, __cputchar);
- tputs(VS, 0, __cputchar);
- }
-
- int
- endwin()
- {
- __restore_stophandler();
-
- if (curscr != NULL) {
- --- 240,268 ----
- __baset.c_oflag &= ~ONLCR;
-
- __pfast = 1;
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, curt));
- + DBUG_RETURN (ret);
- }
-
- void
- __startwin()
- {
- + DBUG_ENTER ("__startwin");
- (void)fflush(stdout);
- (void)setvbuf(stdout, NULL, _IOFBF, 0);
-
- tputs(TI, 0, __cputchar);
- tputs(VS, 0, __cputchar);
- + DBUG_VOID_RETURN;
- }
-
- int
- endwin()
- {
- + int ret;
- +
- + DBUG_ENTER ("endwin");
- __restore_stophandler();
-
- if (curscr != NULL) {
- ***************
- *** 240,247 ****
- (void)fflush(stdout);
- (void)setvbuf(stdout, NULL, _IOLBF, 0);
-
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &__orig_termios));
- }
-
- /*
- --- 278,286 ----
- (void)fflush(stdout);
- (void)setvbuf(stdout, NULL, _IOLBF, 0);
-
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &__orig_termios));
- + DBUG_RETURN (ret);
- }
-
- /*
- ***************
- *** 253,264 ****
- int
- savetty()
- {
- ! return (tcgetattr(STDIN_FILENO, &savedtty));
- }
-
- int
- resetty()
- {
- ! return (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &savedtty));
- }
- --- 292,311 ----
- int
- savetty()
- {
- ! int ret;
- !
- ! DBUG_ENTER ("savetty");
- ! ret = (tcgetattr(STDIN_FILENO, &savedtty));
- ! DBUG_RETURN (ret);
- }
-
- int
- resetty()
- {
- ! int ret;
- !
- ! DBUG_ENTER ("resetty");
- ! ret = (tcsetattr(STDIN_FILENO, __tcaction ?
- TCSASOFT | TCSADRAIN : TCSADRAIN, &savedtty));
- + DBUG_RETURN (ret);
- }
-