File: macmpack.h

package info (click to toggle)
mpack 1.6-8.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,144 kB
  • ctags: 1,184
  • sloc: ansic: 8,785; sh: 330; makefile: 75; perl: 25
file content (156 lines) | stat: -rw-r--r-- 4,563 bytes parent folder | download | duplicates (9)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/* macmpack.h -- resources for mac interface to mpack
 */
/* (C) Copyright 1995 by Carnegie Mellon University
 * All Rights Reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation for any purpose is hereby granted without
 * fee, provided that the above copyright notice appear in all copies
 * and that both that copyright notice and this permission notice
 * appear in supporting documentation, and that the name of Carnegie
 * Mellon University not be used in advertising or publicity
 * pertaining to distribution of the software without specific,
 * written prior permission.  Carnegie Mellon University makes no
 * representations about the suitability of this software for any
 * purpose.  It is provided "as is" without express or implied
 * warranty.
 *
 * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 */
/* (C) Copyright 1993-1995 by Christopher J. Newman
 * All Rights Reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Christopher J. Newman not be used in
 * advertising or publicity pertaining to distribution of the software without
 * specific, written prior permission.  Christopher J. Newman makes no
 * representations about the suitability of this software for any purpose.  It
 * is provided "as is" without express or implied warranty.
 *
 * CHRISTOPHER J. NEWMAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
 * SHALL CHRISTOPHER J. NEWMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 * OF THIS SOFTWARE.
 */

#define progDLOG	128
#define decodeDLOG	129
#define warnALRT	131
#define errorALRT	133
#define prefsDLOG	134
#define dstatDLOG	135
#define sendDLOG	136

#define prefsID		128
#define IDnaID		1000

#define mainMBAR	128

#define textWIND	128
#define helpWIND	129

#define helpTEXT	128
#define helpSTYL	128

/* file menu */
#define iEncode		1
#define iDecode		2
#define iInsert		3
#define iClose		4
#define iPrefs      6
#define iQuit		8

/* help menu */
#define iHelp       1

/* progress dialog items */
#define iWorkText	1
#define iProgress	3

/* decode dialog items */
#define iAdd		3
#define iRemove		4
#define iFileList	5
#define iFileScroll	6

/* replace alert */
#define iNewname	1
#define iReplace	2

/* preferences dialog */
#define iHost       3
#define iAuto		6
#define iData		7
#define iSingle		8
#define iDouble		9
#define iTextEncode 10
#define iQuitFinish	11
#define iEmailAddr	12
#define iMailServer	15
#define iSet		16

/* decode status dialog */
#define iStatus		2
#define iStatScroll	3

/* encode/send dialog */
#define iSubj       4
#define iEmail      5
#define iSavefile	6
#define iEmailto    7
#define iLimit      8
#define iPartLimit  9
#define iBar        11
#define iDescEdit	3

/* mpack prefs folder */
extern struct pref_folder {
	short refnum;
	FSSpec fspec;
	unsigned char prefs[257];
} *pfolder;

/* mpack preferences */
extern struct mpack_preferences {
	short encoding;
	short extract_text;
	short quit_finished;
	short reserved[4];
	char internet_host[2];	/* C string */
} **mpack_prefs;

/* encodings */
#define EN_AUTO   0
#define EN_DATA   1
#define EN_DOUBLE 2
#define EN_SINGLE 3

/* shared routines */
FILE *Macopen(FILE *, Str255, short, long, short, short, SignedByte);
void maccleanup(void);
void MapTypeCreator(char *, OSType);

/* used for chatting */
void statrefresh(void);
void stattext(Str255, unsigned char);
extern short didchat;

/* buffer for copy operations */
#define COPY_BUFSIZE 1024
extern char copy_buf[COPY_BUFSIZE];

/* watch cursor */
extern Cursor watch;