[Stackless-checkins] CVS: slpdev/src/2.2/src/PC pyconfig.h, 1.1.1.1, 1.2

Christian Tismer tismer at centera.de
Mon May 3 18:54:32 CEST 2004


Update of /home/cvs/slpdev/src/2.2/src/PC
In directory centera.de:/tmp/cvs-serv20604/src/2.2/src/PC

Modified Files:
	pyconfig.h 
Log Message:
completely back-ported Stackless to Python 2.2.3.
It passes all relevant tests, supports pickling etc.
The gola is to keep the core files identical as long
as possible. This caused a few changes to the test files,
which need to figure out which tests to omit, for instance.

This 2.2.3 versiion is almost identical to the original, but
a few changes:
- Pickling does not check for __safe_for_unpickling__
- Generators don't need from __future__ import generators
- code objects have a builtin tp_new method.

These changes *all* vanish if STACKLESS_OFF is defined.

Index: pyconfig.h
===================================================================
RCS file: /home/cvs/slpdev/src/2.2/src/PC/pyconfig.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** pyconfig.h	21 Jan 2002 01:01:15 -0000	1.1.1.1
--- pyconfig.h	3 May 2004 16:54:29 -0000	1.2
***************
*** 295,298 ****
--- 295,336 ----
  #endif
  
+ /********************************************************
+  this is a part of 2.3's pyconfig.h, to make new compiler
+  options compatible to old ones on Windows.
+  ********************************************************/
+  
+ /* For Windows the Python core is in a DLL by default.  Test
+ Py_NO_ENABLE_SHARED to find out.  Also support MS_NO_COREDLL for b/w compat */
+ #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
+ #	define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
+ #	define MS_COREDLL	/* deprecated old symbol */
+ #endif /* !MS_NO_COREDLL && ... */
+ 
+ /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
+ #ifdef USE_DL_EXPORT
+ #	define Py_BUILD_CORE
+ #endif /* USE_DL_EXPORT */
+  
+ /*  All windows compilers that use this header support __declspec */
+ #define HAVE_DECLSPEC_DLL
+  
+ /* For an MSVC DLL, we can nominate the .lib files used by extensions */
+ #ifdef MS_COREDLL
+ #	ifndef Py_BUILD_CORE /* not building the core - must be an ext */
+ #		if defined(_MSC_VER)
+ 			/* So MSVC users need not specify the .lib file in
+ 			their Makefile (other compilers are generally
+ 			taken care of by distutils.) */
+ #			ifdef _DEBUG
+ #				pragma comment(lib,"python22_d.lib")
+ #			else
+ #				pragma comment(lib,"python22.lib")
+ #			endif /* _DEBUG */
+ #		endif /* _MSC_VER */
+ #	endif /* Py_BUILD_CORE */
+ #endif /* MS_COREDLL */
+ 
+ /********************************************************/
+ 
  #if defined(MS_WIN64)
  /* maintain "win32" sys.platform for backward compatibility of Python code,


_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins



More information about the Stackless-checkins mailing list