Get rid of the evil trailing spaces and tabs.
This commit is contained in:
parent
4c8cdd6200
commit
e07c905939
@ -1,8 +1,8 @@
|
||||
# $NetBSD: Makefile,v 1.20 1999/04/13 14:08:17 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.21 1999/06/28 13:32:43 simonb Exp $
|
||||
# @(#)Makefile 8.2 (Berkeley) 1/2/94
|
||||
|
||||
CPPFLAGS+=#-DTFILE=\"/dev/ttyp0\"
|
||||
CPPFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
|
||||
CPPFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
|
||||
LIB= curses
|
||||
SRCS= addbytes.c addch.c addnstr.c attributes.c bell.c box.c clear.c \
|
||||
clrtobot.c clrtoeol.c cr_put.c ctrace.c cur_hash.c curses.c delch.c \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: addbytes.c,v 1.13 1999/04/13 14:08:17 mrg Exp $ */
|
||||
/* $NetBSD: addbytes.c,v 1.14 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: addbytes.c,v 1.13 1999/04/13 14:08:17 mrg Exp $");
|
||||
__RCSID("$NetBSD: addbytes.c,v 1.14 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -82,7 +82,7 @@ __waddbytes(win, bytes, count, attr)
|
||||
#ifdef DEBUG
|
||||
__CTRACE("ADDBYTES(%0.2o, %d, %d)\n", win, y, x);
|
||||
#endif
|
||||
|
||||
|
||||
lp = win->lines[y];
|
||||
if (lp->flags & __ISPASTEOL) {
|
||||
lp->flags &= ~__ISPASTEOL;
|
||||
@ -103,7 +103,7 @@ __waddbytes(win, bytes, count, attr)
|
||||
if (c == '\n')
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
attributes = '\0';
|
||||
if (win->flags & __WSTANDOUT || attr & __STANDOUT)
|
||||
attributes |= __STANDOUT;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cr_put.c,v 1.12 1999/04/13 14:08:17 mrg Exp $ */
|
||||
/* $NetBSD: cr_put.c,v 1.13 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)cr_put.c 8.3 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: cr_put.c,v 1.12 1999/04/13 14:08:17 mrg Exp $");
|
||||
__RCSID("$NetBSD: cr_put.c,v 1.13 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -144,7 +144,7 @@ fgoto(in_refresh)
|
||||
* list this won't work. We should probably have an
|
||||
* sc capability but sf will generally take the place
|
||||
* if it works.
|
||||
*
|
||||
*
|
||||
* Superbee glitch: in the middle of the screen have to
|
||||
* use esc B (down) because linefeed screws up in
|
||||
* "Efficient Paging" (what a joke) mode (which is
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: curses.3,v 1.13 1999/04/13 14:08:17 mrg Exp $
|
||||
.\" $NetBSD: curses.3,v 1.14 1999/06/28 13:32:43 simonb Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1985, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -224,5 +224,5 @@ as changed
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm
|
||||
package appeared in
|
||||
package appeared in
|
||||
.Bx 4.0 .
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: curses.c,v 1.10 1999/04/13 14:08:17 mrg Exp $ */
|
||||
/* $NetBSD: curses.c,v 1.11 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)curses.c 8.3 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: curses.c,v 1.10 1999/04/13 14:08:17 mrg Exp $");
|
||||
__RCSID("$NetBSD: curses.c,v 1.11 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -48,9 +48,9 @@ __RCSID("$NetBSD: curses.c,v 1.10 1999/04/13 14:08:17 mrg Exp $");
|
||||
int __echoit = 1; /* If stty indicates ECHO. */
|
||||
int __pfast;
|
||||
int __rawmode = 0; /* If stty indicates RAW mode. */
|
||||
int __noqch = 0; /*
|
||||
* If terminal doesn't have
|
||||
* insert/delete line capabilities
|
||||
int __noqch = 0; /*
|
||||
* If terminal doesn't have
|
||||
* insert/delete line capabilities
|
||||
* for quick change on refresh.
|
||||
*/
|
||||
char AM, BS, CA, DA, EO, HC, IN, MI, MS, NC, NS, OS, PC, UL, XB, XN,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: curses.h,v 1.23 1999/06/28 12:32:07 simonb Exp $ */
|
||||
/* $NetBSD: curses.h,v 1.24 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -107,9 +107,9 @@ extern char *AL, *BC, *BL, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC,
|
||||
#define KEY_BACKSPACE 0x107 /* Backspace */
|
||||
|
||||
/* First function key (block of 64 follow) */
|
||||
#define KEY_F0 0x108
|
||||
#define KEY_F0 0x108
|
||||
/* Function defining other function key values*/
|
||||
#define KEY_F(n) (KEY_F0+(n))
|
||||
#define KEY_F(n) (KEY_F0+(n))
|
||||
|
||||
#define KEY_DL 0x148 /* Delete Line */
|
||||
#define KEY_IL 0x149 /* Insert Line*/
|
||||
@ -216,7 +216,7 @@ extern char __unctrllen[256]; /* Control strings length. */
|
||||
* A line is an array of __LDATA structures pointed to by the 'line' pointer.
|
||||
*
|
||||
* IMPORTANT: the __LDATA structure must NOT induce any padding, so if new
|
||||
* fields are added -- padding fields with *constant values* should ensure
|
||||
* fields are added -- padding fields with *constant values* should ensure
|
||||
* that the compiler will not generate any padding when storing an array of
|
||||
* __LDATA structures. This is to enable consistent use of memcmp, and memcpy
|
||||
* for comparing and copying arrays.
|
||||
@ -270,7 +270,7 @@ typedef struct __window { /* Window structure. */
|
||||
#define __SCROLLOK 0x00020 /* Scrolling ok. */
|
||||
#define __CLEAROK 0x00040 /* Clear on next refresh. */
|
||||
#define __WSTANDOUT 0x00080 /* Standout window */
|
||||
#define __LEAVEOK 0x00100 /* If curser left */
|
||||
#define __LEAVEOK 0x00100 /* If curser left */
|
||||
#define __WUNDERSCORE 0x00200 /* Underscored window */
|
||||
#define __WREVERSE 0x00400 /* Reverse video window */
|
||||
#define __WBLINK 0x00800 /* Blinking window */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getch.c,v 1.13 1999/06/15 04:50:28 simonb Exp $ */
|
||||
/* $NetBSD: getch.c,v 1.14 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: getch.c,v 1.13 1999/06/15 04:50:28 simonb Exp $");
|
||||
__RCSID("$NetBSD: getch.c,v 1.14 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -212,14 +212,14 @@ static char termcap[1024];
|
||||
|
||||
/* need for next key */
|
||||
the_key->value.next = new_keymap();
|
||||
|
||||
|
||||
/* put into key array */
|
||||
if ((current->key = realloc(current->key, (current->count + 1) * sizeof(key_entry_t *))) == NULL) {
|
||||
fprintf(stderr,
|
||||
"Could not malloc for key entry\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
current->key[current->count++] = the_key;
|
||||
|
||||
}
|
||||
@ -285,7 +285,7 @@ new_keymap(void)
|
||||
perror("Could not malloc first key ent");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
return (new_map);
|
||||
}
|
||||
|
||||
@ -371,7 +371,7 @@ reread:
|
||||
return ERR;
|
||||
if ((to || delay) && (__notimeout() == ERR))
|
||||
return ERR;
|
||||
|
||||
|
||||
k = (unsigned int) c;
|
||||
#ifdef DEBUG
|
||||
__CTRACE("inkey (state assembling) got '%s'\n", unctrl(k));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: initscr.c,v 1.10 1999/04/13 14:08:18 mrg Exp $ */
|
||||
/* $NetBSD: initscr.c,v 1.11 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)initscr.c 8.2 (Berkeley) 5/4/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: initscr.c,v 1.10 1999/04/13 14:08:18 mrg Exp $");
|
||||
__RCSID("$NetBSD: initscr.c,v 1.11 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -75,7 +75,7 @@ initscr()
|
||||
return (NULL);
|
||||
|
||||
/* Need either homing or cursor motion for refreshes */
|
||||
if (!HO && !CM)
|
||||
if (!HO && !CM)
|
||||
return (NULL);
|
||||
|
||||
if (curscr != NULL)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: setterm.c,v 1.11 1999/04/13 14:08:19 mrg Exp $ */
|
||||
/* $NetBSD: setterm.c,v 1.12 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1981, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: setterm.c,v 1.11 1999/04/13 14:08:19 mrg Exp $");
|
||||
__RCSID("$NetBSD: setterm.c,v 1.12 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -196,7 +196,7 @@ zap()
|
||||
__CTRACE("%2.2s = %s\n", namp, *fp[-1] ? "TRUE" : "FALSE");
|
||||
#endif
|
||||
namp += 2;
|
||||
|
||||
|
||||
} while (*namp);
|
||||
namp = "ALbcblbtcdceclcmcrcsdcDLdmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullmambmdmemhmkmpmrndnlpcrcscseSFsoSRtatetiucueupusvbvsvealdlsfsrALDLUPDOLERI";
|
||||
sp = sstrs;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tty.c,v 1.11 1999/04/13 14:08:19 mrg Exp $ */
|
||||
/* $NetBSD: tty.c,v 1.12 1999/06/28 13:32:43 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tty.c 8.6 (Berkeley) 1/10/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: tty.c,v 1.11 1999/04/13 14:08:19 mrg Exp $");
|
||||
__RCSID("$NetBSD: tty.c,v 1.12 1999/06/28 13:32:43 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -338,7 +338,7 @@ noecho()
|
||||
rawt.c_lflag &= ~ECHO;
|
||||
cbreakt.c_lflag &= ~ECHO;
|
||||
__baset.c_lflag &= ~ECHO;
|
||||
|
||||
|
||||
__echoit = 0;
|
||||
return (tcsetattr(STDIN_FILENO, __tcaction ?
|
||||
TCSASOFT | TCSADRAIN : TCSADRAIN, curt) ? ERR : OK);
|
||||
|
Loading…
Reference in New Issue
Block a user