]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_leaveok.c
ncurses 6.1 - patch 20200118
[ncurses.git] / ncurses / base / lib_leaveok.c
index e83285d714f41c6ab305f2f791ebd5f5e8c9d1ba..e6995f85cb4d843f152e17cfb540036c5cd07ac1 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1998-2000,2009 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            *
@@ -31,7 +31,6 @@
  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
  ****************************************************************************/
 
-
 /*
 **     lib_leaveok.c
 **
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_leaveok.c,v 1.3 1998/03/21 22:54:20 jtc Exp $")
+MODULE_ID("$Id: lib_leaveok.c,v 1.6 2009/10/24 22:34:23 tom Exp $")
 
-int leaveok(WINDOW *win, bool flag)
+NCURSES_EXPORT(int)
+leaveok(WINDOW *win, bool flag)
 {
-       T((T_CALLED("leaveok(%p,%d)"), win, flag));
+    T((T_CALLED("leaveok(%p,%d)"), (void *) win, flag));
 
-       if (win) {
-         win->_leaveok = flag;
-         returnCode(OK);
-       }
-       else
-         returnCode(ERR);
+    if (win) {
+       win->_leaveok = flag;
+       returnCode(OK);
+    } else
+       returnCode(ERR);
 }