/****************************************************************************
- * 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 *
* 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 &&
&& (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