home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-src.tgz / tar.out / bsd / jove / xjove / exts.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  1KB  |  47 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1991-1996 by C.H.Lindsey, University of   *
  3.  * Manchester.  (X)JOVETOOL is provided to you without charge, and with no *
  4.  * warranty.  You may give away copies of (X)JOVETOOL, including sources,  *
  5.  * provided that this notice is included in all the files, except insofar  *
  6.  * as a more specific copyright notices attaches to the file (x)jovetool.c *
  7.  ***************************************************************************/
  8.  
  9. /* proto: macro to allow us to prototype any function declaration
  10.  * without upsetting old compilers.
  11.  */
  12.  
  13. #ifdef    __STDC__
  14. # define    REALSTDC    1
  15. #else
  16. #define    const    /*const*/
  17. #endif
  18.  
  19. #ifdef    REALSTDC
  20. # define    USE_PROTOTYPES  1
  21. #endif
  22.  
  23. #ifdef    USE_PROTOTYPES
  24. # define proto(x)        x
  25. # ifdef    NO_PTRPROTO
  26.    /* on these systems, a prototype cannot be used for a pointer to function */
  27. #  define ptrproto(x)        ()
  28. # else
  29. #  define ptrproto(x)        x
  30. # endif
  31. #else
  32. # define proto(x)        ()
  33. # define ptrproto(x)        ()
  34. #endif
  35.  
  36. #define private static
  37.  
  38. extern    Tty    ttysw;
  39.  
  40. extern    Menu    main_menu;
  41.  
  42. #ifndef    SUNVIEW
  43. extern    Xv_Font font;    /* ??? not in sunview */
  44. #endif
  45.  
  46. extern void    menu_init proto((void));
  47.