X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftty%2FMKexpanded.sh;h=845e77592583f9a07b42e2f2f8f3abb2e8a68000;hp=bf9acf21aa434088e5d894bbda68d2f91cda806d;hb=3ce2c58251fe1353768cc630103cdb12ecc8be0a;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/ncurses/tty/MKexpanded.sh b/ncurses/tty/MKexpanded.sh index bf9acf21..845e7759 100755 --- a/ncurses/tty/MKexpanded.sh +++ b/ncurses/tty/MKexpanded.sh @@ -1,6 +1,6 @@ #! /bin/sh ############################################################################## -# Copyright (c) 1998-2000,2005 Free Software Foundation, Inc. # +# Copyright (c) 1998-2005,2008 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 "Software"), # @@ -29,7 +29,7 @@ # # Author: Thomas E. Dickey 1997 # -# $Id: MKexpanded.sh,v 1.11 2005/01/02 01:06:40 tom Exp $ +# $Id: MKexpanded.sh,v 1.12 2008/11/16 00:19:59 juergen Exp $ # # Script to generate 'expanded.c', a dummy source that contains functions # corresponding to complex macros used in this library. By making functions, @@ -52,6 +52,7 @@ trap "rm -f $TMP" 0 1 2 5 15 cat < #include #if NCURSES_EXPANDED @@ -76,17 +77,29 @@ NCURSES_EXPORT(void) _nc_toggle_attr_off (attr_t *S, attr_t at) { toggle_attr_off(*S,at); } +NCURSES_EXPORT(int) _nc_safe_DelCharCost (SCREEN* sp, int count) +{ + return DelCharCost(sp,count); +} NCURSES_EXPORT(int) _nc_DelCharCost (int count) { - return DelCharCost(count); + return _nc_safe_DelCharCost (CURRENT_SCREEN, count); +} +NCURSES_EXPORT(int) _nc_safe_InsCharCost (SCREEN* sp, int count) +{ + return InsCharCost(sp, count); } NCURSES_EXPORT(int) _nc_InsCharCost (int count) { - return InsCharCost(count); + return _nc_safe_InsCharCost(CURRENT_SCREEN, count); +} +NCURSES_EXPORT(void) _nc_safe_UpdateAttrs (SCREEN* sp, NCURSES_CH_T c) +{ + UpdateAttrs(sp,c); } NCURSES_EXPORT(void) _nc_UpdateAttrs (NCURSES_CH_T c) { - UpdateAttrs(c); + _nc_safe_UpdateAttrs(CURRENT_SCREEN,c); } EOF