OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tcl/] [mac/] [tclMacInt.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * tclMacInt.h --
3
 *
4
 *      Declarations of Macintosh specific shared variables and procedures.
5
 *
6
 * Copyright (c) 1996-1997 Sun Microsystems, Inc.
7
 *
8
 * See the file "license.terms" for information on usage and redistribution
9
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10
 *
11
 * RCS: @(#) $Id: tclMacInt.h,v 1.1.1.1 2002-01-16 10:25:30 markom Exp $
12
 */
13
 
14
#ifndef _TCLMACINT
15
#define _TCLMACINT
16
 
17
#ifndef _TCL
18
#   include "tcl.h"
19
#endif
20
#ifndef _TCLMAC
21
#   include "tclMac.h"
22
#endif
23
 
24
#include <Events.h>
25
#include <Files.h>
26
 
27
#pragma export on
28
 
29
/*
30
 * Defines to control stack behavior
31
 */
32
 
33
#define TCL_MAC_68K_STACK_GROWTH (256*1024)
34
#define TCL_MAC_STACK_THRESHOLD 16384
35
 
36
/*
37
 * This flag is passed to TclMacRegisterResourceFork
38
 * by a file (usually a library) whose resource fork
39
 * should not be closed by the resource command.
40
 */
41
 
42
#define TCL_RESOURCE_DONT_CLOSE  2
43
 
44
/*
45
 * Typedefs used by Macintosh parts of Tcl.
46
 */
47
typedef pascal void (*ExitToShellProcPtr)(void);
48
 
49
/*
50
 * Prototypes for functions found in the tclMacUtil.c compatability library.
51
 */
52
 
53
EXTERN int      FSpGetDefaultDir _ANSI_ARGS_((FSSpecPtr theSpec));
54
EXTERN int      FSpSetDefaultDir _ANSI_ARGS_((FSSpecPtr theSpec));
55
EXTERN OSErr    FSpFindFolder _ANSI_ARGS_((short vRefNum, OSType folderType,
56
                    Boolean createFolder, FSSpec *spec));
57
EXTERN void     GetGlobalMouse _ANSI_ARGS_((Point *mouse));
58
 
59
/*
60
 * Prototypes of Mac only internal functions.
61
 */
62
 
63
EXTERN void     TclCreateMacEventSource _ANSI_ARGS_((void));
64
EXTERN int      TclMacConsoleInit _ANSI_ARGS_((void));
65
EXTERN void     TclMacExitHandler _ANSI_ARGS_((void));
66
EXTERN void     TclMacInitExitToShell _ANSI_ARGS_((int usePatch));
67
EXTERN OSErr    TclMacInstallExitToShellPatch _ANSI_ARGS_((
68
                    ExitToShellProcPtr newProc));
69
EXTERN int      TclMacOSErrorToPosixError _ANSI_ARGS_((int error));
70
EXTERN void     TclMacRemoveTimer _ANSI_ARGS_((void *timerToken));
71
EXTERN void *   TclMacStartTimer _ANSI_ARGS_((long ms));
72
EXTERN int      TclMacTimerExpired _ANSI_ARGS_((void *timerToken));
73
EXTERN int      TclMacRegisterResourceFork _ANSI_ARGS_((short fileRef, Tcl_Obj *tokenPtr,
74
                    int insert));
75
EXTERN short    TclMacUnRegisterResourceFork _ANSI_ARGS_((char *tokenPtr, Tcl_Obj *resultPtr));
76
 
77
#pragma export reset
78
 
79
#endif /* _TCLMACINT */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.