]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tty/MKexpanded.sh
ncurses 5.7 - patch 20090613
[ncurses.git] / ncurses / tty / MKexpanded.sh
index bf9acf21aa434088e5d894bbda68d2f91cda806d..845e77592583f9a07b42e2f2f8f3abb2e8a68000 100755 (executable)
@@ -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 <dickey@clark.net> 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 <<EOF
 /* generated by MKexpanded.sh */
+#define NEED_NCURSES_CH_T 1
 #include <curses.priv.h>
 #include <term.h>
 #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