1 /* $XConsortium: Xfuncproto.h,v 1.7 91/05/13 20:49:21 rws Exp $ */ 2 /* 3 * Copyright 1989, 1991 by the Massachusetts Institute of Technology 4 * 5 * Permission to use, copy, modify, and distribute this software and its 6 * documentation for any purpose and without fee is hereby granted, provided 7 * that the above copyright notice appear in all copies and that both that 8 * copyright notice and this permission notice appear in supporting 9 * documentation, and that the name of M.I.T. not be used in advertising 10 * or publicity pertaining to distribution of the software without specific, 11 * written prior permission. M.I.T. makes no representations about the 12 * suitability of this software for any purpose. It is provided "as is" 13 * without express or implied warranty. 14 * 15 */ 16 17 /* Definitions to make function prototypes manageable */ 18 19 #ifndef _XFUNCPROTO_H_ 20 #define _XFUNCPROTO_H_ 21 22 #ifndef NeedFunctionPrototypes 23 #define NeedFunctionPrototypes 1 24 #endif /* NeedFunctionPrototypes */ 25 26 #ifndef NeedVarargsPrototypes 27 #define NeedVarargsPrototypes 0 28 #endif /* NeedVarargsPrototypes */ 29 30 #if NeedFunctionPrototypes 31 32 #ifndef NeedNestedPrototypes 33 #define NeedNestedPrototypes 1 34 #endif /* NeedNestedPrototypes */ 35 36 #ifndef _Xconst 37 #define _Xconst const 38 #endif /* _Xconst */ 39 40 #ifndef NeedWidePrototypes 41 #ifdef NARROWPROTO 42 #define NeedWidePrototypes 0 43 #else 44 #define NeedWidePrototypes 1 /* default to make interropt. easier */ 45 #endif 46 #endif /* NeedWidePrototypes */ 47 48 #endif /* NeedFunctionPrototypes */ 49 50 #ifdef __cplusplus 51 #define _XFUNCPROTOBEGIN extern "C" { 52 #define _XFUNCPROTOEND } 53 #endif 54 55 #ifndef _XFUNCPROTOBEGIN 56 #define _XFUNCPROTOBEGIN 57 #define _XFUNCPROTOEND 58 #endif /* _XFUNCPROTOBEGIN */ 59 60 #endif /* _XFUNCPROTO_H_ */ 61