]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/lib_has_cap.c
ncurses 5.7 - patch 20090228
[ncurses.git] / ncurses / tinfo / lib_has_cap.c
index 0dc66bd9b918a4e5f59dab10f1278645389a12b5..a501453f2f79d1423568d768c1746d97712ce823 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2003,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            *
@@ -30,6 +30,7 @@
  *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
  *     and: Thomas E. Dickey                        1996-2003               *
+ *     and: Juergen Pfeifer                         2009                    *
  ****************************************************************************/
 
 /*
 
 #include <term.h>
 
-MODULE_ID("$Id: lib_has_cap.c,v 1.4 2003/10/25 19:43:55 tom Exp $")
+MODULE_ID("$Id: lib_has_cap.c,v 1.5 2009/02/15 00:47:12 tom Exp $")
 
 NCURSES_EXPORT(bool)
-has_ic(void)
+NCURSES_SP_NAME(has_ic) (NCURSES_SP_DCL0)
 {
     T((T_CALLED("has_ic()")));
     returnCode(cur_term &&
@@ -55,11 +56,27 @@ has_ic(void)
               && (delete_character || parm_dch));
 }
 
+#if NCURSES_SP_FUNCS
 NCURSES_EXPORT(bool)
-has_il(void)
+has_ic(void)
+{
+    return NCURSES_SP_NAME(has_ic) (CURRENT_SCREEN);
+}
+#endif
+
+NCURSES_EXPORT(bool)
+NCURSES_SP_NAME(has_il) (NCURSES_SP_DCL0)
 {
     T((T_CALLED("has_il()")));
     returnCode(cur_term
               && (insert_line || parm_insert_line)
               && (delete_line || parm_delete_line));
 }
+
+#if NCURSES_SP_FUNCS
+NCURSES_EXPORT(bool)
+has_il(void)
+{
+    return NCURSES_SP_NAME(has_il) (CURRENT_SCREEN);
+}
+#endif