Xfuncproto.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /* Definitions to make function prototypes manageable */
  17. #ifndef _XFUNCPROTO_H_
  18. #define _XFUNCPROTO_H_
  19. #ifndef NeedFunctionPrototypes
  20. #define NeedFunctionPrototypes 1
  21. #endif /* NeedFunctionPrototypes */
  22. #ifndef NeedVarargsPrototypes
  23. #define NeedVarargsPrototypes 0
  24. #endif /* NeedVarargsPrototypes */
  25. #if NeedFunctionPrototypes
  26. #ifndef NeedNestedPrototypes
  27. #define NeedNestedPrototypes 1
  28. #endif /* NeedNestedPrototypes */
  29. #ifndef _Xconst
  30. #define _Xconst const
  31. #endif /* _Xconst */
  32. #ifndef NeedWidePrototypes
  33. #ifdef NARROWPROTO
  34. #define NeedWidePrototypes 0
  35. #else
  36. #define NeedWidePrototypes 1 /* default to make interropt. easier */
  37. #endif
  38. #endif /* NeedWidePrototypes */
  39. #endif /* NeedFunctionPrototypes */
  40. #ifdef __cplusplus
  41. #define _XFUNCPROTOBEGIN extern "C" {
  42. #define _XFUNCPROTOEND }
  43. #endif
  44. #ifndef _XFUNCPROTOBEGIN
  45. #define _XFUNCPROTOBEGIN
  46. #define _XFUNCPROTOEND
  47. #endif /* _XFUNCPROTOBEGIN */
  48. #endif /* _XFUNCPROTO_H_ */