]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
merge Include/my*.h into Include/pyport.h
authorPeter Schneider-Kamp <nowonder@nowonder.de>
Mon, 31 Jul 2000 15:28:04 +0000 (15:28 +0000)
committerPeter Schneider-Kamp <nowonder@nowonder.de>
Mon, 31 Jul 2000 15:28:04 +0000 (15:28 +0000)
marked my*.h as obsolete

31 files changed:
Include/Python.h
Include/mymalloc.h
Include/mymath.h
Include/myselect.h
Include/mytime.h
Include/objimpl.h
Include/pgenheaders.h
Include/pyport.h
Modules/_tkinter.c
Modules/audioop.c
Modules/cPickle.c
Modules/cmathmodule.c
Modules/mathmodule.c
Modules/posixmodule.c
Modules/pypcre.c
Modules/resource.c
Modules/rotormodule.c
Modules/selectmodule.c
Modules/socketmodule.c
Modules/structmodule.c
Modules/timemodule.c
Objects/complexobject.c
Objects/floatobject.c
Objects/longobject.c
Objects/object.c
Objects/stringobject.c
Objects/unicodeobject.c
Parser/intrcheck.c
Python/bltinmodule.c
Python/fmod.c
Python/hypot.c

index 8ba466fe42cfb06d0fe20de64785c57f94be270a..f89f3e7821de3271841d9bc3c3ed4ae086ee42ec 100644 (file)
@@ -54,8 +54,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "pyport.h"
 
-#include "myproto.h"
-
 #include "object.h"
 #include "objimpl.h"
 
@@ -85,7 +83,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "codecs.h"
 #include "pyerrors.h"
-#include "mymalloc.h"
 
 #include "pystate.h"
 
index 5bbd1e576aa19a93458e7297eaea64c7960f1d13..2af58e450f23dd63e7e1d0ee8796470cf9f58074 100644 (file)
@@ -10,6 +10,11 @@ See the file "Misc/COPYRIGHT" for information on usage and
 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 ******************************************************************/
 
+/***************************************
+THIS FILE IS OBSOLETE
+USE "pyport.h" INSTEAD
+***************************************/
+
 /* Lowest-level memory allocation interface */
 
 #define ANY void /* For API compatibility only. Obsolete, do not use. */
index cba65e820292f9a5c1f605ed924253c88e9d4583..1bfd6ddd44ed7ee0f71fdc324165bfe4ec3b5b3e 100644 (file)
@@ -1,3 +1,8 @@
+/***************************************
+THIS FILE IS OBSOLETE
+USE "pyport.h" INSTEAD
+***************************************/
+
 /* On the 68K Mac, when using CFM (Code Fragment Manager),
    <math.h> requires special treatment -- we need to surround it with
    #pragma lib_export off / on...
index 6696251b3b454ffd558f36fd3e85fa02c580070f..53e924d1071451b94639d3d230cd474ceabe2808 100644 (file)
@@ -14,6 +14,11 @@ See the file "Misc/COPYRIGHT" for information on usage and
 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 ******************************************************************/
 
+/***************************************
+THIS FILE IS OBSOLETE
+USE "pyport.h" INSTEAD
+***************************************/
+
 /* Include file for users of select() */
 
 /* NB caller must include <sys/types.h> */
index 40670d9dd23f947fc04a3a3fc1eeb4fae108b057..bfad575682ffb269db044b155d0eed70d4123cd8 100644 (file)
@@ -14,6 +14,11 @@ See the file "Misc/COPYRIGHT" for information on usage and
 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 ******************************************************************/
 
+/***************************************
+THIS FILE IS OBSOLETE
+USE "pyport.h" INSTEAD
+***************************************/
+
 /* Include file instead of <time.h> and/or <sys/time.h> */
 
 #ifdef TIME_WITH_SYS_TIME
index dfdbca079af4373a8a4b179de73b66ea18cd3914..3c0c7fc89520a1c2ce28f88105dfb1564137f2cc 100644 (file)
@@ -14,7 +14,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 extern "C" {
 #endif
 
-#include "mymalloc.h"
+#include "pyport.h"
 
 /*
 Functions and macros for modules that implement new object types.
index 9d7e8ac0c01695432bc51e358784eb228fefdf55..15e986193354ed2069f6abcf2166210b2cdee742 100644 (file)
@@ -30,8 +30,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include <stdlib.h>
 #endif
 
-#include "myproto.h"
-#include "mymalloc.h"
+#include "pyport.h"
 
 #include "pydebug.h"
 
index b9a699b4cf9e2f7bef6e4037cd49032b7a95fd65..6026a2bcf238507593afe4eb58dc20f1cd9a8e50 100644 (file)
@@ -29,7 +29,15 @@ Used in:  Py_SAFE_DOWNCAST
 **************************************************************************/
 
 
+#define ANY void /* For API compatibility only. Obsolete, do not use. */
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
 #ifdef __cplusplus
+/* Move this down here since some C++ #include's don't like to be included
+   inside an extern "C" */
 extern "C" {
 #endif
 
@@ -136,6 +144,315 @@ extern int fsync(int fd);
 
 #endif /* 0 */
 
+
+/************************
+ * WRAPPER FOR <math.h> *
+ ************************/
+
+/* On the 68K Mac, when using CFM (Code Fragment Manager),
+   <math.h> requires special treatment -- we need to surround it with
+   #pragma lib_export off / on...
+   This is because MathLib.o is a static library, and exporting its
+   symbols doesn't quite work...
+   XXX Not sure now...  Seems to be something else going on as well... */
+
+#ifndef HAVE_HYPOT
+extern double hypot(double, double);
+#ifdef MWERKS_BEFORE_PRO4
+#define hypot we_dont_want_faulty_hypot_decl
+#endif
+#endif
+
+#include <math.h>
+
+#ifndef HAVE_HYPOT
+#ifdef __MWERKS__
+#undef hypot
+#endif
+#endif
+
+#if defined(USE_MSL) && defined(__MC68K__)
+/* CodeWarrior MSL 2.1.1 has weird define overrides that don't work
+** when you take the address of math functions. If I interpret the
+** ANSI C standard correctly this is illegal, but I haven't been able
+** to convince the MetroWerks folks of this...
+*/
+#undef acos
+#undef asin
+#undef atan
+#undef atan2
+#undef ceil
+#undef cos
+#undef cosh
+#undef exp
+#undef fabs
+#undef floor
+#undef fmod
+#undef log
+#undef log10
+#undef pow
+#undef rint
+#undef sin
+#undef sinh
+#undef sqrt
+#undef tan
+#undef tanh
+#define acos acosd
+#define asin asind
+#define atan atand
+#define atan2 atan2d
+#define ceil ceild
+#define cos cosd
+#define cosh coshd
+#define exp expd
+#define fabs fabsd
+#define floor floord
+#define fmod fmodd
+#define log logd
+#define log10 log10d
+#define pow powd
+#define rint rintd
+#define sin sind
+#define sinh sinhd
+#define sqrt sqrtd
+#define tan tand
+#define tanh tanhd
+#endif 
+
+
+/***********************************
+ * WRAPPER FOR malloc/realloc/free *
+ ***********************************/
+
+#ifndef DL_IMPORT       /* declarations for DLL import */
+#define DL_IMPORT(RTYPE) RTYPE
+#endif
+
+#ifndef NULL
+#define NULL ((void *)0)
+#endif
+
+#ifdef MALLOC_ZERO_RETURNS_NULL
+/* XXX Always allocate one extra byte, since some malloc's return NULL
+   XXX for malloc(0) or realloc(p, 0). */
+#define _PyMem_EXTRA 1
+#else
+#define _PyMem_EXTRA 0
+#endif
+
+/*
+ * Core memory allocator
+ * =====================
+ */
+
+/* To make sure the interpreter is user-malloc friendly, all memory
+   APIs are implemented on top of this one.
+
+   The PyCore_* macros can be defined to make the interpreter use a
+   custom allocator. Note that they are for internal use only. Both
+   the core and extension modules should use the PyMem_* API.
+
+   See the comment block at the end of this file for two scenarios
+   showing how to use this to use a different allocator. */
+
+#ifndef PyCore_MALLOC_FUNC
+#undef PyCore_REALLOC_FUNC
+#undef PyCore_FREE_FUNC
+#define PyCore_MALLOC_FUNC      malloc
+#define PyCore_REALLOC_FUNC     realloc
+#define PyCore_FREE_FUNC        free
+#endif
+
+#ifndef PyCore_MALLOC_PROTO
+#undef PyCore_REALLOC_PROTO
+#undef PyCore_FREE_PROTO
+#define PyCore_MALLOC_PROTO    (size_t)
+#define PyCore_REALLOC_PROTO   (void *, size_t)
+#define PyCore_FREE_PROTO      (void *)
+#endif
+
+#ifdef NEED_TO_DECLARE_MALLOC_AND_FRIEND
+extern void *PyCore_MALLOC_FUNC PyCore_MALLOC_PROTO;
+extern void *PyCore_REALLOC_FUNC PyCore_REALLOC_PROTO;
+extern void PyCore_FREE_FUNC PyCore_FREE_PROTO;
+#endif
+
+#ifndef PyCore_MALLOC
+#undef PyCore_REALLOC
+#undef PyCore_FREE
+#define PyCore_MALLOC(n)        PyCore_MALLOC_FUNC(n)
+#define PyCore_REALLOC(p, n)    PyCore_REALLOC_FUNC((p), (n))
+#define PyCore_FREE(p)          PyCore_FREE_FUNC(p)
+#endif
+
+/* BEWARE:
+
+   Each interface exports both functions and macros. Extension modules
+   should normally use the functions for ensuring binary compatibility
+   of the user's code across Python versions. Subsequently, if the
+   Python runtime switches to its own malloc (different from standard
+   malloc), no recompilation is required for the extensions.
+
+   The macro versions trade compatibility for speed. They can be used
+   whenever there is a performance problem, but their use implies
+   recompilation of the code for each new Python release. The Python
+   core uses the macros because it *is* compiled on every upgrade.
+   This might not be the case with 3rd party extensions in a custom
+   setup (for example, a customer does not always have access to the
+   source of 3rd party deliverables). You have been warned! */
+
+/*
+ * Raw memory interface
+ * ====================
+ */
+
+/* Functions */
+
+/* Function wrappers around PyCore_MALLOC and friends; useful if you
+   need to be sure that you are using the same memory allocator as
+   Python.  Note that the wrappers make sure that allocating 0 bytes
+   returns a non-NULL pointer, even if the underlying malloc
+   doesn't. Returned pointers must be checked for NULL explicitly.
+   No action is performed on failure. */
+extern DL_IMPORT(void *) PyMem_Malloc(size_t);
+extern DL_IMPORT(void *) PyMem_Realloc(void *, size_t);
+extern DL_IMPORT(void) PyMem_Free(void *);
+
+/* Starting from Python 1.6, the wrappers Py_{Malloc,Realloc,Free} are
+   no longer supported. They used to call PyErr_NoMemory() on failure. */
+
+/* Macros */
+#define PyMem_MALLOC(n)         PyCore_MALLOC(n)
+#define PyMem_REALLOC(p, n)     PyCore_REALLOC((void *)(p), (n))
+#define PyMem_FREE(p)           PyCore_FREE((void *)(p))
+
+/*
+ * Type-oriented memory interface
+ * ==============================
+ */
+
+/* Functions */
+#define PyMem_New(type, n) \
+       ( (type *) PyMem_Malloc((n) * sizeof(type)) )
+#define PyMem_Resize(p, type, n) \
+       ( (p) = (type *) PyMem_Realloc((n) * sizeof(type)) )
+#define PyMem_Del(p) PyMem_Free(p)
+
+/* Macros */
+#define PyMem_NEW(type, n) \
+       ( (type *) PyMem_MALLOC(_PyMem_EXTRA + (n) * sizeof(type)) )
+#define PyMem_RESIZE(p, type, n) \
+       if ((p) == NULL) \
+               (p) = (type *)(PyMem_MALLOC( \
+                                   _PyMem_EXTRA + (n) * sizeof(type))); \
+       else \
+               (p) = (type *)(PyMem_REALLOC((p), \
+                                   _PyMem_EXTRA + (n) * sizeof(type)))
+#define PyMem_DEL(p) PyMem_FREE(p)
+
+/* PyMem_XDEL is deprecated. To avoid the call when p is NULL,
+   it is recommended to write the test explicitly in the code.
+   Note that according to ANSI C, free(NULL) has no effect. */
+
+/* SCENARIOS
+
+   Here are two scenarios by Vladimir Marangozov (the author of the
+   memory allocation redesign).
+
+   1) Scenario A
+
+   Suppose you want to use a debugging malloc library that collects info on
+   where the malloc calls originate from. Assume the interface is:
+
+   d_malloc(size_t n, char* src_file, unsigned long src_line) c.s.
+
+   In this case, you would define (for example in config.h) :
+
+   #define PyCore_MALLOC_FUNC      d_malloc
+   ...
+   #define PyCore_MALLOC_PROTO (size_t, char *, unsigned long)
+   ...
+   #define NEED_TO_DECLARE_MALLOC_AND_FRIEND
+
+   #define PyCore_MALLOC(n)    PyCore_MALLOC_FUNC((n), __FILE__, __LINE__)
+   ...
+
+   2) Scenario B
+
+   Suppose you want to use malloc hooks (defined & initialized in a 3rd party
+   malloc library) instead of malloc functions.  In this case, you would
+   define:
+
+   #define PyCore_MALLOC_FUNC  (*malloc_hook)
+   ...
+   #define NEED_TO_DECLARE_MALLOC_AND_FRIEND
+
+   and ignore the previous definitions about PyCore_MALLOC_FUNC, etc.
+
+
+*/
+
+/********************************************
+ * WRAPPER FOR <time.h> and/or <sys/time.h> *
+ ********************************************/
+
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else /* !TIME_WITH_SYS_TIME */
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else /* !HAVE_SYS_TIME_H */
+#include <time.h>
+#endif /* !HAVE_SYS_TIME_H */
+#endif /* !TIME_WITH_SYS_TIME */
+
+
+/******************************
+ * WRAPPER FOR <sys/select.h> *
+ ******************************/
+
+/* NB caller must include <sys/types.h> */
+
+#ifdef HAVE_SYS_SELECT_H
+
+#include <sys/select.h>
+
+#else /* !HAVE_SYS_SELECT_H */
+
+#ifdef USE_GUSI1
+/* If we don't have sys/select the definition may be in unistd.h */
+#include <GUSI.h>
+#endif
+
+#endif /* !HAVE_SYS_SELECT_H */
+
+/* If the fd manipulation macros aren't defined,
+   here is a set that should do the job */
+
+#ifndef        FD_SETSIZE
+#define        FD_SETSIZE      256
+#endif
+
+#ifndef FD_SET
+
+typedef long fd_mask;
+
+#define NFDBITS        (sizeof(fd_mask) * NBBY)        /* bits per mask */
+#ifndef howmany
+#define        howmany(x, y)   (((x)+((y)-1))/(y))
+#endif /* howmany */
+
+typedef        struct fd_set {
+       fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];
+} fd_set;
+
+#define        FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
+#define        FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
+#define        FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
+#define FD_ZERO(p)     memset((char *)(p), '\0', sizeof(*(p)))
+
+#endif /* FD_SET */
 #ifdef __cplusplus
 }
 #endif
index 1569529029b4fa8e71357fe7f59826f01354a7c8..9601f0680f504e5e17aad5309efdc3371ebf6bd0 100644 (file)
@@ -49,11 +49,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #ifdef macintosh
 #define MAC_TCL
-#include "myselect.h"
-#endif
-
-#ifdef PYOS_OS2
-#include "myselect.h"
 #endif
 
 #include <tcl.h>
@@ -255,8 +250,6 @@ Tkinter_Error(PyObject *v)
 
 #ifdef WITH_THREAD
 #ifndef MS_WINDOWS
-#include "mytime.h"
-#include "myselect.h"
 
 /* Millisecond sleep() for Unix platforms. */
 
index 08e8fd43eb7964a449a21e4c111cec091f1569df..8d251892c5276177412039c654499e75fa52c665 100644 (file)
@@ -31,8 +31,6 @@ typedef unsigned long Py_UInt32;
 #endif
 #endif
 
-#include "mymath.h"
-
 /* Code shamelessly stolen from sox,
 ** (c) Craig Reese, Joe Campbell and Jeff Poskanzer 1989 */
 
index a7b275d82c55c1c50c0d29426fd4999a5f164c16..5a136b99d1e8cfc6708dc2a5fa0d9ca61641711e 100644 (file)
@@ -54,7 +54,6 @@ static char cPickle_module_documentation[] =
 
 #include "Python.h"
 #include "cStringIO.h"
-#include "mymath.h"
 
 #ifndef Py_eval_input
 #include <graminit.h>
index 3c350bf242e007971dbd7c68f69bcc7d7986c5c0..97819838b3f9b61ac3da15e8bd8d6eb5494435da 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "Python.h"
 
-#include "mymath.h"
-
 #ifdef i860
 /* Cray APP has bogus definition of HUGE_VAL in <math.h> */
 #undef HUGE_VAL
index 2aa00717132ab7b679acebe6c555f9cec611b180..f51b63a98bddff3e48402a2edf3fe84e1c48326c 100644 (file)
@@ -12,8 +12,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "Python.h"
 
-#include "mymath.h"
-
 #ifndef _MSC_VER
 #ifndef __STDC__
 extern double fmod (double, double);
index fe63689eef96fb59f6e2a24423117ef6d134908b..e3461245e8dc3559b8518b25ea4fc5b85288d6f9 100644 (file)
@@ -45,8 +45,6 @@ corresponding Unix manual entries for more information on calls.";
 #include <signal.h>
 #endif
 
-#include "mytime.h"            /* For clock_t on some systems */
-
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif /* HAVE_FCNTL_H */
index 18b319be79bc8a03797a9388131ced4c7265ef56..11c7ce95527420665721cfc7559951d87d0d80d6 100644 (file)
@@ -47,7 +47,6 @@ restrictions:
 #define FOR_PYTHON
 #include "pcre-int.h"
 #include "Python.h"
-#include "mymalloc.h"
 #include <ctype.h>
 #include "graminit.h"
 
index 76fd73122b7d68968dab493b6ce936bf0b516d3f..cca6d823fe607db9c7f1920480d8eb4cdb5236bd 100644 (file)
@@ -9,7 +9,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 ******************************************************************/
 
 #include "Python.h"
-#include "mytime.h" /* needed for SunOS4.1 */
 #include <sys/resource.h>
 #include <sys/time.h>
 #include <unistd.h>
index 393e73a11daad98eee5db943768e29965570f61d..9f58ff26564c5386ea4d0070293566f849c7f9f0 100644 (file)
@@ -56,7 +56,6 @@ NOTE: you MUST use the SAME key in rotor.newrotor()
 /* Rotor objects */
 
 #include "Python.h"
-#include "mymath.h"
 
 #ifndef TRUE
 #define TRUE   1
index 2860f3758844bb3d42d254a548e75dccff198679..37bc514aaf41604ca2e3022440065f136464855c 100644 (file)
@@ -46,7 +46,6 @@ extern void bzero(void *, int);
 #include <net/socket.h>
 #define SOCKET int
 #else
-#include "myselect.h" /* Also includes mytime.h */
 #define SOCKET int
 #endif
 #endif
index f146e8f12527a0043c8e785f8e669a91eb71e397..56378acf692bde3b284efe1bb0efee720fce9642 100644 (file)
@@ -126,7 +126,6 @@ Socket methods:
 #endif
 
 #include <sys/types.h>
-#include "mytime.h"
 
 #include <signal.h>
 #ifndef MS_WINDOWS
index 12759553c33af194322b9de0f6e36f10c80628be..ff10b18ae909a0a8e950ec1fbeb214f2fcd9fae4 100644 (file)
@@ -39,7 +39,6 @@ Whitespace between formats is ignored.\n\
 The variable struct.error is an exception raised on errors.";
 
 #include "Python.h"
-#include "mymath.h"
 
 #include <limits.h>
 #include <ctype.h>
index 4d2089ca6604378bab6ca7a41cdba4e95074878a..db8e163107c55aae2a81be634a14ffa495c37f07 100644 (file)
@@ -14,10 +14,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include <ctype.h>
 
-#ifdef HAVE_SELECT
-#include "mymath.h"
-#endif
-
 #ifdef macintosh
 #include <time.h>
 #include <OSUtils.h>
@@ -40,12 +36,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include <unistd.h>
 #endif
 
-#if defined(HAVE_SELECT) && !defined(__BEOS__)
-#include "myselect.h"
-#else
-#include "mytime.h"
-#endif
-
 #ifdef HAVE_FTIME
 #include <sys/timeb.h>
 #if !defined(MS_WINDOWS) && !defined(PYOS_OS2)
index eaccfabfc00df9a39f623137ca5840549a5c3647..e8916d5adea5d2a35d3016ed21c5a2f7c7f69497 100644 (file)
@@ -17,7 +17,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #ifndef WITHOUT_COMPLEX
 
 #include "Python.h"
-#include "mymath.h"
 
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
index 7a444ad50980a97860a703eda64f5d36e0d6a7fd..4bed0dc29d8b5d09852212efafcf4b3a8edcf6d1 100644 (file)
@@ -16,7 +16,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include "Python.h"
 
 #include <ctype.h>
-#include "mymath.h"
 
 #ifdef i860
 /* Cray APP has bogus definition of HUGE_VAL in <math.h> */
index df3c6a58860844a6bf85097dbd36a15add4de9d6..37da2447991b09b17b5b9a94c74fddfcf0591639 100644 (file)
@@ -14,7 +14,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "Python.h"
 #include "longintrepr.h"
-#include "mymath.h"
 
 #include <assert.h>
 #include <ctype.h>
index 6fe05f1e8718a1d68cd6978d588bd2a14a3b34c8..72c3013afb36d5c35bd98eb900ae178596e4e79e 100644 (file)
@@ -16,8 +16,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include "macglue.h"
 #endif
 
-#include "mymath.h"
-
 /* just for trashcan: */
 #include "compile.h"
 #include "frameobject.h"
index 80b9defaae6ab06fe874c9d41a0a2046bf565638..6d25ddb4e792eb6503ace6e01b1879da58081421 100644 (file)
@@ -12,7 +12,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "Python.h"
 
-#include "mymath.h"
 #include <ctype.h>
 
 #ifdef COUNT_ALLOCS
index 359a9872ff52fa7585c20be4948b2549ec6e5cac..7a3eb2242baaa4de98b6c0582b976ac3e8ae392a 100644 (file)
@@ -64,7 +64,6 @@ Unicode Integration Proposal (see file Misc/unicode.txt).
 
 #include "Python.h"
 
-#include "mymath.h"
 #include "unicodeobject.h"
 #include "ucnhash.h"
 
index 1b816464e2818122e3285aa67242ed449c34caed..6ed0e5561b9bea98dd74dd2f4e2638a37ef10090 100644 (file)
@@ -17,7 +17,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #define DL_IMPORT(RTYPE) RTYPE
 #endif
 
-#include "myproto.h"
 #include "intrcheck.h"
 
 /* Copied here from ceval.h -- can't include that file. */
index a44c976ffb06e0d810a3398492df7a6a38994727..fd587a093ccf3efb97f4e31152cfe2fe8cf552dc 100644 (file)
@@ -16,8 +16,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #include "compile.h"
 #include "eval.h"
 
-#include "mymath.h"
-
 #include <ctype.h>
 
 #ifdef HAVE_UNISTD_H
index 07283bc12da13f3f9210e9b80a78b63be591fa33..dcd1e62deaf68d91c3e16ccd680b2db61c3b3c0c 100644 (file)
@@ -12,7 +12,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 #include "config.h"
 
-#include "mymath.h"
+#include "pyport.h"
 #include <errno.h>
 
 double
index b21deea8f7cb3f7eb7dafbb8b5add8b0b1e87169..939deddfff2860f0bf6671f0dc0a9980b764c55a 100644 (file)
@@ -1,8 +1,7 @@
 /* hypot() replacement */
 
 #include "config.h"
-#include "myproto.h"
-#include "mymath.h"
+#include "pyport.h"
 
 double hypot(double x, double y)
 {