]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/lib_has_cap.c
ncurses 5.6 - patch 20070310
[ncurses.git] / ncurses / tinfo / lib_has_cap.c
index 7121fc758f4f366498498c46d9d4d8bbbaac3549..0dc66bd9b918a4e5f59dab10f1278645389a12b5 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1998-2000,2003 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            *
@@ -29,9 +29,9 @@
 /****************************************************************************
  *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
+ *     and: Thomas E. Dickey                        1996-2003               *
  ****************************************************************************/
 
-
 /*
 **     lib_has_cap.c
 **
 
 #include <term.h>
 
-MODULE_ID("$Id: lib_has_cap.c,v 1.1 1998/10/23 15:32:21 tom Exp $")
+MODULE_ID("$Id: lib_has_cap.c,v 1.4 2003/10/25 19:43:55 tom Exp $")
 
-bool has_ic(void)
+NCURSES_EXPORT(bool)
+has_ic(void)
 {
-       T((T_CALLED("has_ic()")));
-       returnCode(cur_term &&
-         (insert_character || parm_ich
-          ||  (enter_insert_mode && exit_insert_mode))
-         &&  (delete_character || parm_dch));
+    T((T_CALLED("has_ic()")));
+    returnCode(cur_term &&
+              (insert_character || parm_ich
+               || (enter_insert_mode && exit_insert_mode))
+              && (delete_character || parm_dch));
 }
 
-bool has_il(void)
+NCURSES_EXPORT(bool)
+has_il(void)
 {
-       T((T_CALLED("has_il()")));
-       returnCode(cur_term
-               && (insert_line || parm_insert_line)
-               && (delete_line || parm_delete_line));
+    T((T_CALLED("has_il()")));
+    returnCode(cur_term
+              && (insert_line || parm_insert_line)
+              && (delete_line || parm_delete_line));
 }