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