Debian Codegraph @

mac.h

raw
1 /**************************************************************************
2 * This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is *
3 * provided by Jonathan and Jovehacks without charge and without *
4 * warranty. You may copy, modify, and/or distribute JOVE, provided that *
5 * this notice is included in all the source files and documentation. *
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 jmode_t 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 jbool 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 jbool
68 Keyonly,
69 Bufchange,
70 Modechange,
71 EventCmd,
72 Windchange;
73
74 /* Variables: */
75
76 extern jbool
77 Macmode; /* VAR: use Mac file selector */
78
79 #endif /* MAC */