summaryrefslogtreecommitdiff
path: root/lib/libcurses/base/lib_insch.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-01-22 18:02:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-01-22 18:02:21 +0000
commit7fe795010750d2e2889d7085abeaa1ee0926c69b (patch)
treeb52138c43e052b09287afed0fb6351cd31249bda /lib/libcurses/base/lib_insch.c
parent85db479b2362c15a2266e01737d835e86cda1b1e (diff)
Update to ncurses-5.2-20010114
Diffstat (limited to 'lib/libcurses/base/lib_insch.c')
-rw-r--r--lib/libcurses/base/lib_insch.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/lib/libcurses/base/lib_insch.c b/lib/libcurses/base/lib_insch.c
index dae6ce048ea..5d6ef421df9 100644
--- a/lib/libcurses/base/lib_insch.c
+++ b/lib/libcurses/base/lib_insch.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: lib_insch.c,v 1.1 1999/01/18 19:09:49 millert Exp $ */
+/* $OpenBSD: lib_insch.c,v 1.2 2001/01/22 18:01:40 millert Exp $ */
/****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc. *
+ * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -33,8 +33,6 @@
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
****************************************************************************/
-
-
/*
** lib_insch.c
**
@@ -44,26 +42,27 @@
#include <curses.priv.h>
-MODULE_ID("$From: lib_insch.c,v 1.10 1998/06/28 00:26:52 tom Exp $")
+MODULE_ID("$From: lib_insch.c,v 1.12 2000/12/10 02:43:27 tom Exp $")
-int winsch(WINDOW *win, chtype c)
+NCURSES_EXPORT(int)
+winsch(WINDOW *win, chtype c)
{
-int code = ERR;
+ int code = ERR;
- T((T_CALLED("winsch(%p, %s)"), win, _tracechtype(c)));
+ T((T_CALLED("winsch(%p, %s)"), win, _tracechtype(c)));
- if (win) {
- struct ldat *line = &(win->_line[win->_cury]);
- chtype *end = &(line->text[win->_curx]);
- chtype *temp1 = &(line->text[win->_maxx]);
- chtype *temp2 = temp1 - 1;
+ if (win) {
+ struct ldat *line = &(win->_line[win->_cury]);
+ chtype *end = &(line->text[win->_curx]);
+ chtype *temp1 = &(line->text[win->_maxx]);
+ chtype *temp2 = temp1 - 1;
- CHANGED_TO_EOL(line, win->_curx, win->_maxx);
- while (temp1 > end)
- *temp1-- = *temp2--;
+ CHANGED_TO_EOL(line, win->_curx, win->_maxx);
+ while (temp1 > end)
+ *temp1-- = *temp2--;
- *temp1 = _nc_render(win, c);
- code = OK;
- }
- returnCode(code);
+ *temp1 = _nc_render(win, c);
+ code = OK;
+ }
+ returnCode(code);
}