Subversion Repositories filter_foundry

Rev

Rev 87 | Rev 102 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87 Rev 94
Line 26... Line 26...
26
#include "choosefile.h"
26
#include "choosefile.h"
27
#include "ui.h"
27
#include "ui.h"
28
#include "file_compat.h"
28
#include "file_compat.h"
29
#include "symtab.h"
29
#include "symtab.h"
30
#include "PARM.h"
30
#include "PARM.h"
-
 
31
#include "preview.h"
-
 
32
#include "misc.h"
31
 
33
 
32
enum{
34
enum{
33
        TAB = 011,
35
        TAB = 011,
34
        LF  = 012,
36
        LF  = 012,
35
        CR  = 015,
37
        CR  = 015,
Line 48... Line 50...
48
        Boolean standalone,parmloaded,obfusc;
50
        Boolean standalone,parmloaded,obfusc;
49
        PARM_T parm;
51
        PARM_T parm;
50
} globals_t;
52
} globals_t;
51
 
53
 
52
extern globals_t *gdata;
54
extern globals_t *gdata;
53
extern FilterRecordPtr gpb;
-
 
54
 
55
 
55
extern struct node *tree[4];
56
extern struct node *tree[4];
56
extern char *err[4];
57
extern char *err[4];
57
extern int errpos[4],errstart[4],nplanes;
58
extern int errpos[4],errstart[4];//,nplanes;
58
extern value_type slider[8],cell[0x100],map[4][0x100];
59
extern value_type slider[8],cell[0x100],map[4][0x100];
59
extern char *expr[4];
60
extern char *expr[4];
60
extern long maxSpace;
61
extern long maxSpace;
61
 
62
 
62
extern int tokpos,tokstart,varused[];
63
extern int tokpos,tokstart,varused[];
63
extern char *errstr;
64
extern char *errstr;
64
 
65
 
65
#if 1
-
 
66
#define PINEWHANDLE             gpb->handleProcs->newProc
-
 
67
#define PIDISPOSEHANDLE gpb->handleProcs->disposeProc
-
 
68
#define PIGETHANDLESIZE gpb->handleProcs->getSizeProc
-
 
69
#define PISETHANDLESIZE gpb->handleProcs->setSizeProc
-
 
70
#define PILOCKHANDLE    gpb->handleProcs->lockProc
-
 
71
#define PIUNLOCKHANDLE  gpb->handleProcs->unlockProc
-
 
72
#else
-
 
73
// avoid host callbacks for AE
-
 
74
#define PINEWHANDLE             NewHandle
-
 
75
#define PIDISPOSEHANDLE DisposeHandle
-
 
76
#define PIGETHANDLESIZE GetHandleSize
-
 
77
#define PISETHANDLESIZE(h,s) ( SetHandleSize(h,s),MemError() )
-
 
78
#define PILOCKHANDLE(h,f) ( HLock(h),*(h) )
-
 
79
#define PIUNLOCKHANDLE  HUnlock
-
 
80
#endif
-
 
81
 
-
 
82
#define MIN(a,b) ((a) < (b) ? (a) : (b))
-
 
83
#define MAX(a,b) ((a) > (b) ? (a) : (b))
-
 
84
 
-
 
85
#define DBG(x)
66
#define DBG(x)
86
//#define DEBUG
67
//#define DEBUG
87
 
68
 
88
 
69
 
89
DLLEXPORT MACPASCAL
70
DLLEXPORT MACPASCAL
Line 106... Line 87...
106
 
87
 
107
OSErr make_standalone(StandardFileReply *sfr);
88
OSErr make_standalone(StandardFileReply *sfr);
108
 
89
 
109
Boolean setup(FilterRecordPtr pb);
90
Boolean setup(FilterRecordPtr pb);
110
void evalpixel(unsigned char *outp,unsigned char *inp);
91
void evalpixel(unsigned char *outp,unsigned char *inp);
111
OSErr process_scaled(FilterRecordPtr pb, Boolean progress,
-
 
112
                                         Rect *filterRect, Rect *outRect,
-
 
113
                                         void *outData, long outRowBytes, double zoom);
-
 
114
 
92
 
115
unsigned long printablehash(unsigned long hash);
93
unsigned long printablehash(unsigned long hash);
116
long fixpipl(PIPropertyList *pipl,long origsize,StringPtr title);
94
long fixpipl(PIPropertyList *pipl,long origsize,StringPtr title);
117
long fixaete(unsigned char *p,long origsize,StringPtr title);
95
long fixaete(unsigned char *p,long origsize,StringPtr title);
118
void obfusc(unsigned char *pparm,size_t size);
96
void obfusc(unsigned char *pparm,size_t size);