X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Flib_has_cap.c;h=a501453f2f79d1423568d768c1746d97712ce823;hp=6fb7b3a9c8c0d588248b239afe5a7bd3a73acf9e;hb=78e49873c69dc0494bb34c62f897f8b446584a33;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/ncurses/tinfo/lib_has_cap.c b/ncurses/tinfo/lib_has_cap.c index 6fb7b3a9..a501453f 100644 --- a/ncurses/tinfo/lib_has_cap.c +++ b/ncurses/tinfo/lib_has_cap.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998,2000 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 * @@ -29,6 +29,8 @@ /**************************************************************************** * Author: Zeyd M. Ben-Halim 1992,1995 * * and: Eric S. Raymond * + * and: Thomas E. Dickey 1996-2003 * + * and: Juergen Pfeifer 2009 * ****************************************************************************/ /* @@ -42,10 +44,10 @@ #include -MODULE_ID("$Id: lib_has_cap.c,v 1.3 2000/12/10 02:55:07 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 && @@ -54,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