Rev 193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 259 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /*------------------------------------------------------------------------------ |
1 | /*------------------------------------------------------------------------------ |
2 | # |
2 | # |
3 | # Macintosh Developer Technical Support |
3 | # Macintosh Developer Technical Support |
4 | # |
4 | # |
5 | # Sample Control Panel Device and INIT Combination |
5 | # Sample Control Panel Device and INIT Combination |
6 | # |
6 | # |
7 | # Program: INIT - CDEV |
7 | # Program: INIT - CDEV |
8 | # File: SAGlobals.h - C Header for SAGlobals.c |
8 | # File: SAGlobals.h - C Header for SAGlobals.c |
9 | # |
9 | # |
10 | # Copyright © 1990 Apple Computer, Inc. |
10 | # Copyright © 1990 Apple Computer, Inc. |
11 | # All rights reserved. |
11 | # All rights reserved. |
12 | # |
12 | # |
13 | ------------------------------------------------------------------------------*/ |
13 | ------------------------------------------------------------------------------*/ |
14 | 14 | ||
15 | /* Stand-alone code modules which need to use global variables |
15 | /* Stand-alone code modules which need to use global variables |
16 | may include the interfaces in this unit. Such code modules |
16 | may include the interfaces in this unit. Such code modules |
17 | must also be linked with Runtime.o and SAGlobals.o. */ |
17 | must also be linked with Runtime.o and SAGlobals.o. */ |
18 | 18 | ||
19 | #include <Types.h> |
19 | #include <Types.h> |
20 | typedef Ptr A5RefType; /* !!! changed from Handle to Ptr for this sample */ |
20 | typedef Ptr A5RefType; /* !!! changed from Handle to Ptr for this sample */ |
21 | 21 | ||
22 | 22 | ||
23 | /* MakeA5World allocates space for an A5 world based on the |
23 | /* MakeA5World allocates space for an A5 world based on the |
24 | size of the global variables defined by the module and its |
24 | size of the global variables defined by the module and its |
25 | units. If sufficient space is not available, MakeA5World |
25 | units. If sufficient space is not available, MakeA5World |
26 | returns NIL for A5Ref and further initialization is aborted. */ |
26 | returns NIL for A5Ref and further initialization is aborted. */ |
27 | pascal void MakeA5World (A5RefType *A5Ref); |
27 | pascal void MakeA5World (A5RefType *A5Ref); |
28 | 28 | ||
29 | 29 | ||
30 | /* SetA5World locks down a previously-allocated handle containing |
30 | /* SetA5World locks down a previously-allocated handle containing |
31 | an A5 world and sets the A5 register appropriately. The return |
31 | an A5 world and sets the A5 register appropriately. The return |
32 | value is the old value of A5 and the client should save it for |
32 | value is the old value of A5 and the client should save it for |
33 | use by RestoreA5World. */ |
33 | use by RestoreA5World. */ |
34 | pascal long SetA5World (A5RefType A5Ref); |
34 | pascal long SetA5World (A5RefType A5Ref); |
35 | 35 | ||
36 | 36 | ||
37 | /* DisposeA5World simply disposes of the A5 world handle. */ |
37 | /* DisposeA5World simply disposes of the A5 world handle. */ |
38 | pascal void DisposeA5World (A5RefType A5Ref); |
38 | pascal void DisposeA5World (A5RefType A5Ref); |