diff options
author | 1997-11-26 03:58:43 +0000 | |
---|---|---|
committer | 1997-11-26 03:58:43 +0000 | |
commit | 0107aba4760947842661d0eae137ef21b9cbeec0 (patch) | |
tree | d26862e5ef04640aacc19ed2c471e5f830e864d6 /lib/libmenu/mf_common.h | |
parent | libpanel from ncurses 4.1. Post 4.1 patches to be applied in a separate commit. (diff) | |
download | wireguard-openbsd-0107aba4760947842661d0eae137ef21b9cbeec0.tar.xz wireguard-openbsd-0107aba4760947842661d0eae137ef21b9cbeec0.zip |
libmenu from ncurses 4.1. Post 4.1 patches to be applied in a separate commit.
Diffstat (limited to 'lib/libmenu/mf_common.h')
-rw-r--r-- | lib/libmenu/mf_common.h | 62 |
1 files changed, 40 insertions, 22 deletions
diff --git a/lib/libmenu/mf_common.h b/lib/libmenu/mf_common.h index 518c3f49e10..1e0b3caf6bf 100644 --- a/lib/libmenu/mf_common.h +++ b/lib/libmenu/mf_common.h @@ -1,31 +1,33 @@ - -/*************************************************************************** -* COPYRIGHT NOTICE * -**************************************************************************** -* ncurses is copyright (C) 1992-1995 * -* Zeyd M. Ben-Halim * -* zmbenhal@netcom.com * -* Eric S. Raymond * -* esr@snark.thyrsus.com * -* * -* Permission is hereby granted to reproduce and distribute ncurses * -* by any means and for any fee, whether alone or as part of a * -* larger distribution, in source or in binary form, PROVIDED * -* this notice is included with any such distribution, and is not * -* removed from any of its header files. Mention of ncurses in any * -* applications linked with it is highly appreciated. * -* * -* ncurses comes AS IS with no warranty, implied or expressed. * -* * -***************************************************************************/ +/*-----------------------------------------------------------------------------+ +| The ncurses menu library is Copyright (C) 1995-1997 | +| by Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> | +| All Rights Reserved. | +| | +| Permission to use, copy, modify, and distribute this software and its | +| documentation for any purpose and without fee is hereby granted, provided | +| that the above copyright notice appear in all copies and that both that | +| copyright notice and this permission notice appear in supporting | +| documentation, and that the name of the above listed copyright holder(s) not | +| be used in advertising or publicity pertaining to distribution of the | +| software without specific, written prior permission. | +| | +| THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO | +| THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT- | +| NESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR | +| ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RE- | +| SULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, | +| NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH | +| THE USE OR PERFORMANCE OF THIS SOFTWARE. | ++-----------------------------------------------------------------------------*/ /* Common internal header for menu and form library */ #if HAVE_CONFIG_H -# include <config.h> +# include <ncurses_cfg.h> #endif #include <stdlib.h> +#include <sys/types.h> #include <assert.h> #include <string.h> #include <ctype.h> @@ -45,6 +47,15 @@ extern int errno; # endif #endif +#include <nc_alloc.h> + +#ifdef USE_RCS_IDS +#define MODULE_ID(id) static const char Ident[] = id; +#else +#define MODULE_ID(id) /*nothing*/ +#endif + + /* Maximum regular 8-bit character code */ #define MAX_REGULAR_CHARACTER (0xff) @@ -64,4 +75,11 @@ extern int errno; (object)->status &= ~_IN_DRIVER;\ } -#define INLINE __inline +#define INLINE + +#ifndef TRACE +# if CC_HAS_INLINE_FUNCS +# undef INLINE +# define INLINE inline +# endif +#endif |