Rev 489 | Rev 500 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 489 | Rev 492 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include "file_compat.h" |
32 | #include "file_compat.h" |
33 | #include "symtab.h" |
33 | #include "symtab.h" |
34 | #include "PARM.h" |
34 | #include "PARM.h" |
35 | #include "preview.h" |
35 | #include "preview.h" |
36 | #include "ff_misc.h" |
36 | #include "ff_misc.h" |
- | 37 | #include "language.h" |
|
37 | 38 | ||
38 | #define HOSTSIG_GIMP 'PMIG' // sic: NOT 'GIMP' |
39 | #define HOSTSIG_GIMP 'PMIG' // sic: NOT 'GIMP' |
39 | #define HOSTSIG_IRFANVIEW 'UP20' |
40 | #define HOSTSIG_IRFANVIEW 'UP20' |
40 | #define HOSTSIG_PHOTOSHOP '8BIM' |
41 | #define HOSTSIG_PHOTOSHOP '8BIM' |
41 | //#define HOSTSIG_PLUGINCOMMANDER '8BIM' // meh. |
42 | //#define HOSTSIG_PLUGINCOMMANDER '8BIM' // meh. |
Line 93... | Line 94... | ||
93 | extern globals_t *gdata; |
94 | extern globals_t *gdata; |
94 | 95 | ||
95 | #define NUM_CELLS 0x100 |
96 | #define NUM_CELLS 0x100 |
96 | 97 | ||
97 | extern struct node *tree[4]; |
98 | extern struct node *tree[4]; |
98 | extern char *err[4]; |
99 | extern TCHAR *err[4]; |
99 | extern int errpos[4],errstart[4];//,nplanes; |
100 | extern int errpos[4],errstart[4];//,nplanes; |
100 | extern uint8_t slider[8]; |
101 | extern uint8_t slider[8]; |
101 | extern value_type cell[NUM_CELLS]; |
102 | extern value_type cell[NUM_CELLS]; |
102 | extern char *expr[4]; |
103 | extern char *expr[4]; |
103 | 104 | ||
104 | extern int tokpos,tokstart,varused[]; |
105 | extern int tokpos,tokstart,varused[]; |
105 | extern char *errstr; |
106 | extern TCHAR *errstr; |
106 | 107 | ||
107 | //#define DEBUG |
108 | //#define DEBUG |
108 | 109 | ||
109 | typedef struct InternalState_ { |
110 | typedef struct InternalState_ { |
110 | Boolean bak_obfusc; |
111 | Boolean bak_obfusc; |
Line 124... | Line 125... | ||
124 | void RequestNext(FilterRecordPtr epb); |
125 | void RequestNext(FilterRecordPtr epb); |
125 | InternalState saveInternalState(); |
126 | InternalState saveInternalState(); |
126 | void restoreInternalState(InternalState state); |
127 | void restoreInternalState(InternalState state); |
127 | 128 | ||
128 | // from read.c |
129 | // from read.c |
129 | Boolean readparams_afs_pff(Handle h,char **reason); |
130 | Boolean readparams_afs_pff(Handle h, TCHAR**reason); |
130 | void convert_premiere_to_photoshop(PARM_T* photoshop, PARM_T_PREMIERE* premiere); |
131 | void convert_premiere_to_photoshop(PARM_T* photoshop, PARM_T_PREMIERE* premiere); |
131 | Boolean readfile_8bf(StandardFileReply *sfr,char **reason); |
132 | Boolean readfile_8bf(StandardFileReply *sfr, TCHAR**reason); |
132 | Handle readfileintohandle(FILEREF r); |
133 | Handle readfileintohandle(FILEREF r); |
133 | Boolean readfile_afs_pff(StandardFileReply* sfr, char** reason); |
134 | Boolean readfile_afs_pff(StandardFileReply* sfr, TCHAR** reason); |
134 | Boolean readfile_ffx(StandardFileReply* sfr, char** reason); |
135 | Boolean readfile_ffx(StandardFileReply* sfr, TCHAR** reason); |
135 | Boolean readfile_picotxt(StandardFileReply* sfr, char** reason); |
136 | Boolean readfile_picotxt(StandardFileReply* sfr, TCHAR** reason); |
136 | Boolean readPARM(PARM_T* parm,Ptr h); |
137 | Boolean readPARM(PARM_T* parm,Ptr h); |
137 | 138 | ||
138 | // from save.c |
139 | // from save.c |
139 | OSErr saveparams_afs_pff(Handle h); |
140 | OSErr saveparams_afs_pff(Handle h); |
140 | OSErr saveparams_picotxt(Handle h, Boolean useparm); |
141 | OSErr saveparams_picotxt(Handle h, Boolean useparm); |
Line 158... | Line 159... | ||
158 | int obfuscation_version(PARM_T* pparm); |
159 | int obfuscation_version(PARM_T* pparm); |
159 | uint64_t obfusc(PARM_T* pparm); |
160 | uint64_t obfusc(PARM_T* pparm); |
160 | void deobfusc(PARM_T* pparm); |
161 | void deobfusc(PARM_T* pparm); |
161 | 162 | ||
162 | // from loadfile_*.c |
163 | // from loadfile_*.c |
163 | Boolean loadfile(StandardFileReply *sfr,char **reason); |
164 | Boolean loadfile(StandardFileReply *sfr, TCHAR**reason); |
164 | Boolean readPARMresource(HMODULE hm,char **reason); |
165 | Boolean readPARMresource(HMODULE hm, TCHAR**reason); |
165 | 166 | ||
166 | // from main.c |
167 | // from main.c |
167 | int64_t maxspace(); |
168 | int64_t maxspace(); |
168 | Boolean maxspace_available(); |
169 | Boolean maxspace_available(); |
169 | Boolean host_preserves_parameters(); |
170 | Boolean host_preserves_parameters(); |