#! /bin/sh
##############################################################################
-# Copyright (c) 1998,2000 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"), #
#
# Author: Thomas E. Dickey <dickey@clark.net> 1997
#
-# $Id: MKexpanded.sh,v 1.10 2000/12/10 00:24:33 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,
cat <<EOF
/* generated by MKexpanded.sh */
+#define NEED_NCURSES_CH_T 1
#include <curses.priv.h>
#include <term.h>
#if NCURSES_EXPANDED
{
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 (chtype c)
+NCURSES_EXPORT(void) _nc_UpdateAttrs (NCURSES_CH_T c)
{
- UpdateAttrs(c);
+ _nc_safe_UpdateAttrs(CURRENT_SCREEN,c);
}
EOF