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

  1. /************************************************************************
  2.  * This program is Copyright (C) 1986-1996 by Jonathan Payne.  JOVE is  *
  3.  * provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is *
  5.  * included in all the files.                                           *
  6.  ************************************************************************/
  7.  
  8. /* Macintosh related things. K. Mitchum 2/88 */
  9.  
  10. #ifdef MAC    /* the body is the rest of this file */
  11.  
  12. #include <Menus.h>
  13.  
  14. #define NMENUS 6
  15. #define NMENUITEMS 40    /* This has GOT to be enough! */
  16.  
  17. typedef data_obj *menumap[NMENUITEMS];
  18.  
  19. struct menu {
  20.     char *Name;
  21.     int menu_id;
  22.     MenuHandle Mn;
  23.     menumap m;
  24. };
  25.  
  26. struct stat {
  27.     int st_dev;        /* volume number */
  28.     long st_ino;        /* file number on volume */
  29.     dev_t st_rdev;
  30.     off_t st_size;        /* logical end of file */
  31.     int st_mode;
  32.     time_t st_mtime;    /* last modified */
  33. };
  34.  
  35. /* mask and values for simulating file modes */
  36. #define S_IFMT    03
  37. #define S_IFREG    01
  38. #define S_IFDIR 02
  39.  
  40. int stat proto((const char *, struct stat *));
  41.  
  42. #define SIGHUP    1    /* fake */
  43.  
  44. extern void    MarkVar proto((const struct variable *vp, int mnu, int itm));
  45.  
  46. extern jmp_buf auxjmp;
  47.  
  48. extern char
  49.     *gethome proto((void)),
  50.     *pfile proto((char *)),
  51.     *gfile proto((char *));
  52.  
  53. extern int    getArgs proto((char ***));
  54.  
  55. extern bool    rawchkc proto((void));
  56.  
  57. extern void
  58.     MacInit proto((void)),
  59.     writetext proto((const unsigned char *, size_t)),
  60.     NPlacur proto((int, int)),
  61.     docontrols proto((void)),
  62.     SetScrollBar proto((Window *)),
  63.     RemoveScrollBar proto((Window *)),
  64.     InitEvents proto((void)),
  65.     menus_on proto((void));
  66.  
  67. extern bool
  68.     Keyonly,
  69.     Bufchange,
  70.     Modechange,
  71.     EventCmd,
  72.     Windchange;
  73.  
  74. /* Variables: */
  75.  
  76. extern bool
  77.     Macmode;    /* VAR: use Mac file selector */
  78.  
  79. #endif /* MAC */
  80.