X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftty%2FMKexpanded.sh;h=7a5f5993c48777a03833cdd7c81b0560fd999223;hp=b008becc4f07c4e2d8d54350e618579228b04985;hb=7d3e03f12f3e179f5780f733fa5b78d981080d48;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce diff --git a/ncurses/tty/MKexpanded.sh b/ncurses/tty/MKexpanded.sh index b008becc..7a5f5993 100755 --- a/ncurses/tty/MKexpanded.sh +++ b/ncurses/tty/MKexpanded.sh @@ -1,6 +1,6 @@ #! /bin/sh ############################################################################## -# Copyright (c) 1998 Free Software Foundation, Inc. # +# Copyright (c) 1998-2009,2010 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"), # @@ -27,9 +27,9 @@ # authorization. # ############################################################################## # -# Author: Thomas E. Dickey 1997 +# Author: Thomas E. Dickey, 1997-on # -# $Id: MKexpanded.sh,v 1.7 1998/11/11 20:15:39 Alexander.V.Lukyanov Exp $ +# $Id: MKexpanded.sh,v 1.17 2010/01/23 17:57:43 tom Exp $ # # Script to generate 'expanded.c', a dummy source that contains functions # corresponding to complex macros used in this library. By making functions, @@ -52,9 +52,14 @@ trap "rm -f $TMP" 0 1 2 5 15 cat < -#include -#ifdef NCURSES_EXPANDED + +#ifndef CUR +#define CUR SP_TERMTYPE +#endif + +#if NCURSES_EXPANDED EOF cat >$TMP <$TMP </dev/null | sed -e '1,/^IGNORE$/d' +$preprocessor $TMP 2>/dev/null | \ + sed -e '1,/^IGNORE$/d' -e 's/^@/#/' -e 's/^#if_/#if /' cat <