home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xt / VarargsI.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-10  |  1.7 KB  |  66 lines

  1. /* $XConsortium: VarargsI.h,v 1.14 91/04/10 20:28:15 rws Exp $ */
  2. /*
  3.  
  4. Copyright 1985, 1986, 1987, 1988, 1989 by the
  5. Massachusetts Institute of Technology
  6.  
  7. Permission to use, copy, modify, and distribute this
  8. software and its documentation for any purpose and without
  9. fee is hereby granted, provided that the above copyright
  10. notice appear in all copies and that both that copyright
  11. notice and this permission notice appear in supporting
  12. documentation, and that the name of M.I.T. not be used in
  13. advertising or publicity pertaining to distribution of the
  14. software without specific, written prior permission.
  15. M.I.T. makes no representations about the suitability of
  16. this software for any purpose.  It is provided "as is"
  17. without express or implied warranty.
  18.  
  19. */
  20.  
  21. #ifndef _VarargsI_h_ 
  22. #define _VarargsI_h_ 
  23.  
  24. #if NeedVarargsPrototypes
  25. # include <stdarg.h>
  26. # define Va_start(a,b) va_start(a,b)
  27. #else
  28. # include <varargs.h>
  29. # define Va_start(a,b) va_start(a)
  30. #endif
  31.  
  32. typedef struct _XtTypedArg {
  33.     String      name;
  34.     String      type;
  35.     XtArgVal    value;
  36.     int         size;
  37. } XtTypedArg;
  38.  
  39. /* private routines */
  40.  
  41. extern void _XtCountVaList(
  42. #if NeedFunctionPrototypes
  43.     va_list /*var*/, int* /*total_count*/, int* /*typed_count*/
  44. #endif
  45. );
  46.  
  47. extern void _XtVaToArgList(
  48. #if NeedFunctionPrototypes
  49.    Widget /*widget*/, va_list /*var*/, int /*max_count*/, ArgList* /*args_return*/, Cardinal* /*num_args_return*/
  50. #endif
  51. );
  52.  
  53. extern void _XtVaToTypedArgList(
  54. #if NeedFunctionPrototypes
  55.     va_list /*var*/, int /*count*/, XtTypedArgList* /*args_return*/, Cardinal* /*num_args_return*/
  56. #endif
  57. );
  58.  
  59. extern XtTypedArgList _XtVaCreateTypedArgList(
  60. #if NeedFunctionPrototypes
  61.     va_list /*var*/, int /*count*/
  62. #endif
  63. );
  64.  
  65. #endif /* _VarargsI_h_ */
  66.