blob: 9e18889e9ed6862fb723027a07ac1f724882970a (
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
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
|
/*
* tclMacInt.h --
*
* Declarations of Macintosh specific shared variables and procedures.
*
* Copyright (c) 1996-1998 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
#ifndef _TCLMACINT
#define _TCLMACINT
#ifndef _TCLINT
#include "tclInt.h"
#endif
#ifndef _TCLPORT
#include "tclPort.h"
#endif
#include <Events.h>
#include <Files.h>
/*
* Defines to control stack behavior.
*
* The Tcl8.2 regexp code is highly recursive for patterns with many
* subexpressions. So we have to increase the stack space to accomodate.
* 512 K is good enough for ordinary work, but you need 768 to pass the Tcl
* regexp testsuite.
*
* For the PPC, you need to set the stack space in the Project file.
*
*/
#ifdef TCL_TEST
# define TCL_MAC_68K_STACK_GROWTH (768*1024)
#else
# define TCL_MAC_68K_STACK_GROWTH (512*1024)
#endif
#define TCL_MAC_STACK_THRESHOLD 16384
#ifdef BUILD_tcl
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLEXPORT
#endif
/*
* This flag is passed to TclMacRegisterResourceFork
* by a file (usually a library) whose resource fork
* should not be closed by the resource command.
*/
#define TCL_RESOURCE_DONT_CLOSE 2
/*
* Typedefs used by Macintosh parts of Tcl.
*/
/*
* Prototypes of Mac only internal functions.
*/
EXTERN char * TclMacGetFontEncoding _ANSI_ARGS_((int fontId));
EXTERN int TclMacHaveThreads _ANSI_ARGS_((void));
EXTERN long TclpGetGMTOffset _ANSI_ARGS_((void));
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLIMPORT
#include "tclIntPlatDecls.h"
#endif /* _TCLMACINT */
|