ncurses 5.9 - patch 20140308
[ncurses.git] / ncurses / base / lib_slktouch.c
index c2829aed0e183a7a7fd2e9b7ce1ecdb4ef5ffdb6..ba77fd2375b7a162aab327545e5cc6da824fe0d2 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            *
@@ -27,8 +27,8 @@
  ****************************************************************************/
 
 /****************************************************************************
- *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
- *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
+ *  Author: Juergen Pfeifer                         1997,2009               *
+ *     and: Thomas E. Dickey                        1996-on                 *
  ****************************************************************************/
 
 /*
  */
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_slktouch.c,v 1.3 1998/02/11 12:13:56 tom Exp $")
+MODULE_ID("$Id: lib_slktouch.c,v 1.8 2009/10/24 22:12:21 tom Exp $")
 
-int
-slk_touch(void)
+NCURSES_EXPORT(int)
+NCURSES_SP_NAME(slk_touch) (NCURSES_SP_DCL0)
 {
-       T((T_CALLED("slk_touch()")));
+    T((T_CALLED("slk_touch(%p)"), (void *) SP_PARM));
+
+    if (SP_PARM == 0 || SP_PARM->_slk == 0)
+       returnCode(ERR);
+    SP_PARM->_slk->dirty = TRUE;
 
-       if (SP == NULL || SP->_slk == NULL)
-               returnCode(ERR);
-       SP->_slk->dirty = TRUE;
+    returnCode(OK);
+}
 
-       returnCode(OK);
+#if NCURSES_SP_FUNCS
+NCURSES_EXPORT(int)
+slk_touch(void)
+{
+    return NCURSES_SP_NAME(slk_touch) (CURRENT_SCREEN);
 }
+#endif