diff options
| author | blymn <blymn@NetBSD.org> | 2000-04-15 13:17:02 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2000-04-15 13:17:02 +0000 |
| commit | aaf74682b9c60741dcc474bed53466ea09c14412 (patch) | |
| tree | 84597d219be13ec7a43cd0c2b1fe78ba2fc370d4 /lib/libcurses/underscore.c | |
| parent | 8c1897c2fdc5d44c7dc201b648fde53d95b46e38 (diff) | |
Added functions to replace what were previously macros in curses.h
(this is a requirement of SUSv2) - the old macro behaviour can be
restored by defining _CURSES_USE_MACROS.
Changed function prototypes to use ANSI style.
All externally visible functions now have ANSI style declarations.
Diffstat (limited to 'lib/libcurses/underscore.c')
| -rw-r--r-- | lib/libcurses/underscore.c | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/lib/libcurses/underscore.c b/lib/libcurses/underscore.c index c3d3e1bcc4f..616ca2297f8 100644 --- a/lib/libcurses/underscore.c +++ b/lib/libcurses/underscore.c @@ -1,4 +1,4 @@ -/* $NetBSD: underscore.c,v 1.3 2000/04/12 21:44:42 jdc Exp $ */ +/* $NetBSD: underscore.c,v 1.4 2000/04/15 13:17:05 blymn Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -39,13 +39,37 @@ #include "curses.h" #include "curses_private.h" +#ifndef _CURSES_USE_MACROS + +/* + * underscore + * Enter underscore mode on stdscr. + */ +int +underscore(void) +{ + return wunderscore(stdscr); +} + + +/* + * underend -- + * Exit underscore mode on stdscr. + */ +int +underend(void) +{ + return wunderend(stdscr); +} + +#endif + /* * wunderscore * Enter underscore mode. */ int -wunderscore(win) - WINDOW *win; +wunderscore(WINDOW *win) { /* If can underscore, set the screen underscore bit. */ if ((US != NULL && UE != NULL) || UC != NULL) { @@ -65,8 +89,7 @@ wunderscore(win) * Exit underscore mode. */ int -wunderend(win) - WINDOW *win; +wunderend(WINDOW *win) { if (UE != NULL) { #ifdef DEBUG |
