summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvi2tty/dvi2tty-5.3.3/UNIXtoMacLib/macintosh.h
blob: 24843f507c724397a3a741b91bf6ca29fb2dcfb6 (plain)
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
/* macintosh.h  24.2.1996  Alex Viskovatoff
 *
 * Header file accompanying unix-to-macintosh.c.
 *
 * Written and copyright (c) 1996 by Alex Viskovatoff.
 * Permission is granted to distribute and modify this file.
 */


#define PATHNAME_LENGTH 256

#define isascii(c)	(((unsigned) c) <= 0x7f)


/* "DVI2ODVI" is equivalent to an arry of static unsigned long
   initialized to {'DVI2', 'ODVI'} - Textures and OzTeX
   type signatures of dvi files, respectively.                */

#define process_dvi_command_line(args) \
    docommand(args,0L,2,(unsigned long*)"DVI2ODVI")

int docommand(char ***,void*,int,unsigned long*);
void set_creator(const unsigned char *outfilename);
int getopt(int nargc, char * const *nargv, const char *ostr);
char *get_home_dir(void);
char *get_file_from_dialog(void);
pascal unsigned char not_rtf_file_p(void *parms);


/* The following are defined in getopt.c */

#define	index	strchr
#define rindex  strrchr
int getopt(int nargc, char * const *nargv, const char *ostr);