Rev 193 | Rev 268 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
259 | daniel-mar | 1 | /* |
2 | This file is part of a common library |
||
3 | Copyright (C) 1990-2006 Toby Thain, toby@telegraphics.com.au |
||
4 | |||
5 | This program is free software; you can redistribute it and/or modify |
||
6 | it under the terms of the GNU General Public License as published by |
||
7 | the Free Software Foundation; either version 2 of the License, or |
||
8 | (at your option) any later version. |
||
9 | |||
10 | This program is distributed in the hope that it will be useful, |
||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
13 | GNU General Public License for more details. |
||
14 | |||
15 | You should have received a copy of the GNU General Public License |
||
16 | along with this program; if not, write to the Free Software |
||
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
18 | */ |
||
19 | |||
20 | #include <lists.h> |
||
21 | #include <lowmem.h> // LMGetResLoad |
||
22 | #include <memory.h> |
||
23 | #include <resources.h> |
||
24 | #include <fp.h> |
||
25 | |||
26 | #define LDEF(f) \ |
||
27 | pascal void f(short lMessage,Boolean lSelect,Rect *lRect,Cell lCell,\ |
||
28 | short lDataOffset,short lDataLen,ListHandle lHandle) |
||
29 | |||
30 | #ifdef __MWERKS__ // TrapAvailable is defined in MPW's fcntl.h (but not CW) |
||
31 | Boolean TrapAvailable(short theTrap); |
||
32 | #endif |
||
33 | |||
34 | Boolean gestalt_attr(OSType s,int a); |
||
35 | int count_selected(ListRef l); |
||
36 | Boolean any_selected(ListRef l); |
||
37 | void select_all(ListRef l); |
||
38 | OSErr read_line(short rn,Handle l); |
||
39 | Boolean starts_with(Handle l,char *key); |
||
40 | OSErr write_pstring(short rn,unsigned char *s); |
||
41 | OSErr debug_err(char *s,OSErr e); // that's a C string, Floyd |
||
42 | Boolean GZCritical(void); |
||
43 | OSErr remove1resource(ResType t,short id); |
||
44 | void init_toolbox(void); |
||
45 | OSErr open_driver(StringPtr driver_name,short *rn); |
||
46 | void open_app_files(void); |
||
47 | void flt(double_t x,char *s,int places); |