annotate Include/mymath.h @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents 315a50cb15e3
children 2dfc707d6e68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2373
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 /* On the 68K Mac, when using CFM (Code Fragment Manager),
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 <math.h> requires special treatment -- we need to surround it with
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 #pragma lib_export off / on...
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 This is because MathLib.o is a static library, and exporting its
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 symbols doesn't quite work...
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 XXX Not sure now... Seems to be something else going on as well... */
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
7
2792
af3aab6b07c4 Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents: 2373
diff changeset
8 #ifdef SYMANTEC__CFM68K__
2373
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 #pragma lib_export off
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 #endif
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
11
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 #include <math.h>
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
13
2792
af3aab6b07c4 Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its own
Jack Jansen <jack.jansen@cwi.nl>
parents: 2373
diff changeset
14 #ifdef SYMANTEC__CFM68K__
2373
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 #pragma lib_export on
582b00fbab16 changes for Mac CFM-68K
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 #endif
3842
210816d348ba Added extern defn of hypot().
Guido van Rossum <guido@python.org>
parents: 2792
diff changeset
17
4177
315a50cb15e3 Change comments/#ifdef structure for declaration for hypot().
Guido van Rossum <guido@python.org>
parents: 3961
diff changeset
18 #ifndef HAVE_HYPOT
315a50cb15e3 Change comments/#ifdef structure for declaration for hypot().
Guido van Rossum <guido@python.org>
parents: 3961
diff changeset
19 extern double hypot Py_PROTO((double, double));
3842
210816d348ba Added extern defn of hypot().
Guido van Rossum <guido@python.org>
parents: 2792
diff changeset
20 #endif