summaryrefslogtreecommitdiff
path: root/lib/libocurses/printw.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
commit3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch)
tree1a8b19c5db03f8c989fc8228811837b182feb7a3 /lib/libocurses/printw.c
parentcc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'lib/libocurses/printw.c')
-rw-r--r--lib/libocurses/printw.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/libocurses/printw.c b/lib/libocurses/printw.c
index 2a397c1dffb..4b6b3e1c621 100644
--- a/lib/libocurses/printw.c
+++ b/lib/libocurses/printw.c
@@ -35,19 +35,12 @@
static char sccsid[] = "@(#)printw.c 8.3 (Berkeley) 5/4/94";
#endif /* not lint */
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "curses.h"
/*
* printw and friends.
- *
- * These routines make nonportable assumptions about varargs if __STDC__
- * is not in effect.
*/
static int __winwrite(void *, const char *, int);
@@ -57,22 +50,12 @@ static int __winwrite(void *, const char *, int);
* Printf on the standard screen.
*/
int
-#ifdef __STDC__
printw(const char *fmt, ...)
-#else
-printw(fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
int ret;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
ret = vwprintw(stdscr, fmt, ap);
va_end(ap);
return (ret);
@@ -83,23 +66,12 @@ printw(fmt, va_alist)
* Printf on the given window.
*/
int
-#ifdef __STDC__
wprintw(WINDOW * win, const char *fmt, ...)
-#else
-wprintw(win, fmt, va_alist)
- WINDOW *win;
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
int ret;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
ret = vwprintw(win, fmt, ap);
va_end(ap);
return (ret);
@@ -111,23 +83,12 @@ wprintw(win, fmt, va_alist)
* arguments, they cannot be macros. Sigh....
*/
int
-#ifdef __STDC__
mvprintw(register int y, register int x, const char *fmt, ...)
-#else
-mvprintw(y, x, fmt, va_alist)
- register int y, x;
- char *fmt;
- va_dcl
-#endif
{
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);
@@ -136,25 +97,13 @@ mvprintw(y, x, fmt, va_alist)
}
int
-#ifdef __STDC__
mvwprintw(register WINDOW * win, register int y, register int x,
const char *fmt, ...)
-#else
-mvwprintw(win, y, x, fmt, va_alist)
- register WINDOW *win;
- register int y, x;
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
int ret;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
if (wmove(win, y, x) != OK)
return (ERR);