X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftty%2FMKexpanded.sh;h=7f48ae329dc91d31226162ba9b058d405426cf05;hp=b008becc4f07c4e2d8d54350e618579228b04985;hb=a0b91dc27f0c411e343161b0a4b5459d15a43f85;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce diff --git a/ncurses/tty/MKexpanded.sh b/ncurses/tty/MKexpanded.sh index b008becc..7f48ae32 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-2010,2015 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.18 2015/10/24 23:39:24 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 /' -e "s,$TMP,expanded.c," cat <