1 | |
---|
2 | #include "macface.h" |
---|
3 | |
---|
4 | /* version 3.6 Copyright 1997-2002 by the University of Washington. |
---|
5 | * mac interfacing |
---|
6 | * this is only included and used for macs/powermacs |
---|
7 | * and needs to be used in conjunction with the customized LAMARC-library |
---|
8 | * which is a modification of the Metrowerks custom library. |
---|
9 | * fixmacfile() was written by Sean Lamont 1994. |
---|
10 | * |
---|
11 | * Peter Beerli 1997 |
---|
12 | * beerli@genetics.washington.edu |
---|
13 | */ |
---|
14 | |
---|
15 | #include <SIOUX.h> |
---|
16 | #include "SIOUXGlobals.h" |
---|
17 | #include "SIOUXMenus.h" |
---|
18 | #include "SIOUXWindows.h" |
---|
19 | |
---|
20 | #include <console.h> |
---|
21 | #include <signal.h> |
---|
22 | #include <stdlib.h> |
---|
23 | #include <stdio.h> |
---|
24 | #include <Traps.h> |
---|
25 | #include <Fonts.h> /*//bkoz*/ |
---|
26 | #include <Dialogs.h> |
---|
27 | #include <AppleEvents.h> |
---|
28 | #include <ToolUtils.h> |
---|
29 | #include <DiskInit.h> |
---|
30 | |
---|
31 | /*//defined in unix.c ...*/ |
---|
32 | #ifdef __cplusplus |
---|
33 | extern "C" { |
---|
34 | #endif |
---|
35 | |
---|
36 | int __system7present(void); |
---|
37 | long __myraise(long signal); |
---|
38 | |
---|
39 | |
---|
40 | #ifdef __cplusplus |
---|
41 | } |
---|
42 | #endif |
---|
43 | #include <SIOUX.h> |
---|
44 | #include "SIOUXGlobals.h" |
---|
45 | #include "SIOUXMenus.h" |
---|
46 | #include "SIOUXWindows.h" |
---|
47 | |
---|
48 | #include <console.h> |
---|
49 | #include <signal.h> |
---|
50 | #include <stdlib.h> |
---|
51 | #include <stdio.h> |
---|
52 | #include <Traps.h> |
---|
53 | #include <Fonts.h> /*//bkoz*/ |
---|
54 | #include <Dialogs.h> |
---|
55 | #include <AppleEvents.h> |
---|
56 | #include <ToolUtils.h> |
---|
57 | #include <DiskInit.h> |
---|
58 | |
---|
59 | /*// defined in unix.c ...*/ |
---|
60 | #ifdef __cplusplus |
---|
61 | extern "C" { |
---|
62 | #endif |
---|
63 | |
---|
64 | int __system7present(void); |
---|
65 | long __myraise(long signal); |
---|
66 | |
---|
67 | |
---|
68 | #ifdef __cplusplus |
---|
69 | } |
---|
70 | #endif |
---|
71 | |
---|
72 | #include <Files.h> |
---|
73 | #include "phylip.h" |
---|
74 | |
---|
75 | void fixmacfile(char *filename) |
---|
76 | { |
---|
77 | FInfo fndrinfo; |
---|
78 | char filename1[FNMLNGTH]; |
---|
79 | char filename2[FNMLNGTH]; |
---|
80 | strcpy(filename1,filename); |
---|
81 | strcpy(filename2,filename); |
---|
82 | getfinfo(filename1,0,&fndrinfo); |
---|
83 | fndrinfo.fdType='TEXT'; |
---|
84 | fndrinfo.fdCreator='MSWD'; |
---|
85 | setfinfo(filename2,0,&fndrinfo); |
---|
86 | } |
---|
87 | /* new fixmacfile from interface.c is more versatile and may be desireable here |
---|
88 | LM 7/27*/ |
---|
89 | /* |
---|
90 | void fixmacfile(char *filename, long type, long creator) |
---|
91 | { |
---|
92 | FInfo fndrinfo; |
---|
93 | char filename1[FNMLNGTH]; |
---|
94 | char filename2[FNMLNGTH]; |
---|
95 | strcpy(filename1,filename); |
---|
96 | strcpy(filename2,filename); |
---|
97 | getfinfo(filename1,0,&fndrinfo); |
---|
98 | fndrinfo.fdType=type; |
---|
99 | fndrinfo.fdCreator=creator; |
---|
100 | setfinfo(filename2,0,&fndrinfo); |
---|
101 | } |
---|
102 | */ |
---|
103 | |
---|
104 | |
---|
105 | |
---|