aboutsummaryrefslogtreecommitdiff
path: root/lib/libcurses/standout.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/standout.c')
-rw-r--r--lib/libcurses/standout.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/lib/libcurses/standout.c b/lib/libcurses/standout.c
index 9cdaee6b1074..14a983da6185 100644
--- a/lib/libcurses/standout.c
+++ b/lib/libcurses/standout.c
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 1981 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1981, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,40 +32,37 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)standout.c 5.4 (Berkeley) 6/1/90";
+static char sccsid[] = "@(#)standout.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
-/*
- * routines dealing with entering and exiting standout mode
- *
- */
-
-# include "curses.ext"
+#include <curses.h>
/*
- * enter standout mode
+ * wstandout
+ * Enter standout mode.
*/
-char *
+int
wstandout(win)
-reg WINDOW *win;
+ register WINDOW *win;
{
if (!SO && !UC)
- return FALSE;
+ return (0);
- win->_flags |= _STANDOUT;
- return (SO ? SO : UC);
+ win->flags |= __WSTANDOUT;
+ return (1);
}
/*
- * exit standout mode
+ * wstandend --
+ * Exit standout mode.
*/
-char *
+int
wstandend(win)
-reg WINDOW *win;
+ register WINDOW *win;
{
if (!SO && !UC)
- return FALSE;
+ return (0);
- win->_flags &= ~_STANDOUT;
- return (SE ? SE : UC);
+ win->flags &= ~__WSTANDOUT;
+ return (1);
}