Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2d4aed33
Commit
2d4aed33
authored
Jul 26, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
parent
9a4a0d2f
Changes
31
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
320 additions
and
320 deletions
+320
-320
Doc/ext/ext.tex
Doc/ext/ext.tex
+2
-2
Doc/lib/libexcs.tex
Doc/lib/libexcs.tex
+1
-1
Doc/lib/libsys.tex
Doc/lib/libsys.tex
+2
-2
Include/Python.h
Include/Python.h
+1
-1
Include/pgenheaders.h
Include/pgenheaders.h
+1
-1
Include/pyport.h
Include/pyport.h
+1
-1
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_ext.py
+2
-2
Lib/distutils/cygwinccompiler.py
Lib/distutils/cygwinccompiler.py
+8
-8
Lib/distutils/sysconfig.py
Lib/distutils/sysconfig.py
+3
-3
Makefile.pre.in
Makefile.pre.in
+5
-5
Misc/Porting
Misc/Porting
+2
-2
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+1
-1
Modules/getbuildinfo.c
Modules/getbuildinfo.c
+1
-1
Modules/posixmodule.c
Modules/posixmodule.c
+1
-1
PC/dl_nt.c
PC/dl_nt.c
+1
-1
PC/os2vacpp/makefile
PC/os2vacpp/makefile
+136
-136
PC/os2vacpp/makefile.omk
PC/os2vacpp/makefile.omk
+137
-137
PC/os2vacpp/pyconfig.h
PC/os2vacpp/pyconfig.h
+0
-0
PC/pyconfig.h
PC/pyconfig.h
+0
-0
PCbuild/python20.wse
PCbuild/python20.wse
+3
-3
Python/atof.c
Python/atof.c
+1
-1
Python/fmod.c
Python/fmod.c
+1
-1
Python/getmtime.c
Python/getmtime.c
+1
-1
Python/hypot.c
Python/hypot.c
+1
-1
Python/pyfpe.c
Python/pyfpe.c
+1
-1
Python/strtod.c
Python/strtod.c
+1
-1
Python/thread.c
Python/thread.c
+1
-1
RISCOS/pyconfig.h
RISCOS/pyconfig.h
+0
-0
configure
configure
+3
-3
configure.in
configure.in
+1
-1
pyconfig.h.in
pyconfig.h.in
+1
-1
No files found.
Doc/ext/ext.tex
View file @
2d4aed33
...
@@ -2380,10 +2380,10 @@ Windows.
...
@@ -2380,10 +2380,10 @@ Windows.
Grab the binary installer from
\url
{
http:
//
www.python.org
/
}
and
Grab the binary installer from
\url
{
http:
//
www.python.org
/
}
and
install Python. The binary installer has all of the required header
install Python. The binary installer has all of the required header
files except for
\file
{
config.h
}
.
files except for
\file
{
py
config.h
}
.
Get the source distribution and extract it into a convenient location.
Get the source distribution and extract it into a convenient location.
Copy the
\file
{
config.h
}
from the
\file
{
PC
/
}
directory into the
Copy the
\file
{
py
config.h
}
from the
\file
{
PC
/
}
directory into the
\file
{
include
/
}
directory created by the installer.
\file
{
include
/
}
directory created by the installer.
Create a
\file
{
Setup
}
file for your extension module, as described in
Create a
\file
{
Setup
}
file for your extension module, as described in
...
...
Doc/lib/libexcs.tex
View file @
2d4aed33
...
@@ -140,7 +140,7 @@ Raised when an \keyword{assert} statement fails.
...
@@ -140,7 +140,7 @@ Raised when an \keyword{assert} statement fails.
always defined, but can only be raised when Python is configured
always defined, but can only be raised when Python is configured
with the
\longprogramopt
{
with-fpectl
}
option, or the
with the
\longprogramopt
{
with-fpectl
}
option, or the
\constant
{
WANT
_
SIGFPE
_
HANDLER
}
symbol is defined in the
\constant
{
WANT
_
SIGFPE
_
HANDLER
}
symbol is defined in the
\file
{
config.h
}
file.
\file
{
py
config.h
}
file.
\end{excdesc}
\end{excdesc}
\begin{excdesc}
{
IOError
}
\begin{excdesc}
{
IOError
}
...
...
Doc/lib/libsys.tex
View file @
2d4aed33
...
@@ -129,7 +129,7 @@ It is always available.
...
@@ -129,7 +129,7 @@ It is always available.
also
\code
{
'/usr/local'
}
. This can be set at build time with the
also
\code
{
'/usr/local'
}
. This can be set at build time with the
\longprogramopt
{
exec-prefix
}
argument to the
\program
{
configure
}
\longprogramopt
{
exec-prefix
}
argument to the
\program
{
configure
}
script. Specifically, all configuration files (e.g. the
script. Specifically, all configuration files (e.g. the
\file
{
config.h
}
header file) are installed in the directory
\file
{
py
config.h
}
header file) are installed in the directory
\code
{
exec
_
prefix + '/lib/python
\var
{
version
}
/config'
}
, and shared
\code
{
exec
_
prefix + '/lib/python
\var
{
version
}
/config'
}
, and shared
library modules are installed in
\code
{
exec
_
prefix +
library modules are installed in
\code
{
exec
_
prefix +
'/lib/python
\var
{
version
}
/lib-dynload'
}
, where
\var
{
version
}
is
'/lib/python
\var
{
version
}
/lib-dynload'
}
, where
\var
{
version
}
is
...
@@ -298,7 +298,7 @@ else:
...
@@ -298,7 +298,7 @@ else:
the
\longprogramopt
{
prefix
}
argument to the
\program
{
configure
}
the
\longprogramopt
{
prefix
}
argument to the
\program
{
configure
}
script. The main collection of Python library modules is installed
script. The main collection of Python library modules is installed
in the directory
\code
{
prefix + '/lib/python
\var
{
version
}
'
}
while
in the directory
\code
{
prefix + '/lib/python
\var
{
version
}
'
}
while
the platform independent header files (all except
\file
{
config.h
}
)
the platform independent header files (all except
\file
{
py
config.h
}
)
are stored in
\code
{
prefix + '/include/python
\var
{
version
}
'
}
, where
are stored in
\code
{
prefix + '/include/python
\var
{
version
}
'
}
, where
\var
{
version
}
is equal to
\code
{
version[:3]
}
.
\var
{
version
}
is equal to
\code
{
version[:3]
}
.
\end{datadesc}
\end{datadesc}
...
...
Include/Python.h
View file @
2d4aed33
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
/* Include nearly all Python header files */
/* Include nearly all Python header files */
#include "patchlevel.h"
#include "patchlevel.h"
#include "config.h"
#include "
py
config.h"
#ifdef HAVE_LIMITS_H
#ifdef HAVE_LIMITS_H
#include <limits.h>
#include <limits.h>
...
...
Include/pgenheaders.h
View file @
2d4aed33
...
@@ -7,7 +7,7 @@ extern "C" {
...
@@ -7,7 +7,7 @@ extern "C" {
/* Include files and extern declarations used by most of the parser. */
/* Include files and extern declarations used by most of the parser. */
#include "config.h"
#include "
py
config.h"
/* config.h may or may not define DL_IMPORT */
/* config.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT
/* declarations for DLL import/export */
#ifndef DL_IMPORT
/* declarations for DLL import/export */
...
...
Include/pyport.h
View file @
2d4aed33
#ifndef Py_PYPORT_H
#ifndef Py_PYPORT_H
#define Py_PYPORT_H
#define Py_PYPORT_H
#include "config.h"
/* include for defines */
#include "
py
config.h"
/* include for defines */
/**************************************************************************
/**************************************************************************
Symbols and macros to supply platform-independent interfaces to basic
Symbols and macros to supply platform-independent interfaces to basic
...
...
Lib/distutils/command/build_ext.py
View file @
2d4aed33
...
@@ -125,7 +125,7 @@ class build_ext (Command):
...
@@ -125,7 +125,7 @@ class build_ext (Command):
self
.
extensions
=
self
.
distribution
.
ext_modules
self
.
extensions
=
self
.
distribution
.
ext_modules
# Make sure Python's include directories (for Python.h, config.h,
# Make sure Python's include directories (for Python.h,
py
config.h,
# etc.) are in the include search path.
# etc.) are in the include search path.
py_include
=
sysconfig
.
get_python_inc
()
py_include
=
sysconfig
.
get_python_inc
()
plat_py_include
=
sysconfig
.
get_python_inc
(
plat_specific
=
1
)
plat_py_include
=
sysconfig
.
get_python_inc
(
plat_specific
=
1
)
...
@@ -592,7 +592,7 @@ class build_ext (Command):
...
@@ -592,7 +592,7 @@ class build_ext (Command):
"""
"""
# The python library is always needed on Windows. For MSVC, this
# The python library is always needed on Windows. For MSVC, this
# is redundant, since the library is mentioned in a pragma in
# is redundant, since the library is mentioned in a pragma in
# config.h that MSVC groks. The other Windows compilers all seem
#
py
config.h that MSVC groks. The other Windows compilers all seem
# to need it mentioned explicitly, though, so that's what we do.
# to need it mentioned explicitly, though, so that's what we do.
# Append '_d' to the python import library on debug builds.
# Append '_d' to the python import library on debug builds.
from
distutils.msvccompiler
import
MSVCCompiler
from
distutils.msvccompiler
import
MSVCCompiler
...
...
Lib/distutils/cygwinccompiler.py
View file @
2d4aed33
...
@@ -73,7 +73,7 @@ class CygwinCCompiler (UnixCCompiler):
...
@@ -73,7 +73,7 @@ class CygwinCCompiler (UnixCCompiler):
(
status
,
details
))
(
status
,
details
))
if
status
is
not
CONFIG_H_OK
:
if
status
is
not
CONFIG_H_OK
:
self
.
warn
(
self
.
warn
(
"Python's config.h doesn't seem to support your compiler. "
+
"Python's
py
config.h doesn't seem to support your compiler. "
+
(
"Reason: %s."
%
details
)
+
(
"Reason: %s."
%
details
)
+
"Compiling may fail because of undefined preprocessor macros."
)
"Compiling may fail because of undefined preprocessor macros."
)
...
@@ -335,7 +335,7 @@ class Mingw32CCompiler (CygwinCCompiler):
...
@@ -335,7 +335,7 @@ class Mingw32CCompiler (CygwinCCompiler):
# class Mingw32CCompiler
# class Mingw32CCompiler
# Because these compilers aren't configured in Python's config.h file by
# Because these compilers aren't configured in Python's
py
config.h file by
# default, we should at least warn the user if he is using a unmodified
# default, we should at least warn the user if he is using a unmodified
# version.
# version.
...
@@ -345,7 +345,7 @@ CONFIG_H_UNCERTAIN = "uncertain"
...
@@ -345,7 +345,7 @@ CONFIG_H_UNCERTAIN = "uncertain"
def
check_config_h
():
def
check_config_h
():
"""Check if the current Python installation (specifically, config.h)
"""Check if the current Python installation (specifically,
py
config.h)
appears amenable to building extensions with GCC. Returns a tuple
appears amenable to building extensions with GCC. Returns a tuple
(status, details), where 'status' is one of the following constants:
(status, details), where 'status' is one of the following constants:
CONFIG_H_OK
CONFIG_H_OK
...
@@ -353,21 +353,21 @@ def check_config_h():
...
@@ -353,21 +353,21 @@ def check_config_h():
CONFIG_H_NOTOK
CONFIG_H_NOTOK
doesn't look good
doesn't look good
CONFIG_H_UNCERTAIN
CONFIG_H_UNCERTAIN
not sure -- unable to read config.h
not sure -- unable to read
py
config.h
'details' is a human-readable string explaining the situation.
'details' is a human-readable string explaining the situation.
Note there are two ways to conclude "OK": either 'sys.version' contains
Note there are two ways to conclude "OK": either 'sys.version' contains
the string "GCC" (implying that this Python was built with GCC), or the
the string "GCC" (implying that this Python was built with GCC), or the
installed "config.h" contains the string "__GNUC__".
installed "
py
config.h" contains the string "__GNUC__".
"""
"""
# XXX since this function also checks sys.version, it's not strictly a
# XXX since this function also checks sys.version, it's not strictly a
# "config.h" check -- should probably be renamed...
# "
py
config.h" check -- should probably be renamed...
from
distutils
import
sysconfig
from
distutils
import
sysconfig
import
string
import
string
# if sys.version contains GCC then python was compiled with
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
# GCC, and the
py
config.h file should be OK
if
string
.
find
(
sys
.
version
,
"GCC"
)
>=
0
:
if
string
.
find
(
sys
.
version
,
"GCC"
)
>=
0
:
return
(
CONFIG_H_OK
,
"sys.version mentions 'GCC'"
)
return
(
CONFIG_H_OK
,
"sys.version mentions 'GCC'"
)
...
@@ -386,7 +386,7 @@ def check_config_h():
...
@@ -386,7 +386,7 @@ def check_config_h():
"couldn't read '%s': %s"
%
(
fn
,
exc
.
strerror
))
"couldn't read '%s': %s"
%
(
fn
,
exc
.
strerror
))
else
:
else
:
# "config.h" contains an "#ifdef __GNUC__" or something similar
# "
py
config.h" contains an "#ifdef __GNUC__" or something similar
if
string
.
find
(
s
,
"__GNUC__"
)
>=
0
:
if
string
.
find
(
s
,
"__GNUC__"
)
>=
0
:
return
(
CONFIG_H_OK
,
"'%s' mentions '__GNUC__'"
%
fn
)
return
(
CONFIG_H_OK
,
"'%s' mentions '__GNUC__'"
%
fn
)
else
:
else
:
...
...
Lib/distutils/sysconfig.py
View file @
2d4aed33
...
@@ -43,7 +43,7 @@ def get_python_inc(plat_specific=0, prefix=None):
...
@@ -43,7 +43,7 @@ def get_python_inc(plat_specific=0, prefix=None):
If 'plat_specific' is false (the default), this is the path to the
If 'plat_specific' is false (the default), this is the path to the
non-platform-specific header files, i.e. Python.h and so on;
non-platform-specific header files, i.e. Python.h and so on;
otherwise, this is the path to platform-specific header files
otherwise, this is the path to platform-specific header files
(namely config.h).
(namely
py
config.h).
If 'prefix' is supplied, use it instead of sys.prefix or
If 'prefix' is supplied, use it instead of sys.prefix or
sys.exec_prefix -- i.e., ignore 'plat_specific'.
sys.exec_prefix -- i.e., ignore 'plat_specific'.
...
@@ -137,10 +137,10 @@ def customize_compiler(compiler):
...
@@ -137,10 +137,10 @@ def customize_compiler(compiler):
def
get_config_h_filename
():
def
get_config_h_filename
():
"""Return full pathname of installed config.h file."""
"""Return full pathname of installed
py
config.h file."""
if
python_build
:
inc_dir
=
'.'
if
python_build
:
inc_dir
=
'.'
else
:
inc_dir
=
get_python_inc
(
plat_specific
=
1
)
else
:
inc_dir
=
get_python_inc
(
plat_specific
=
1
)
return
os
.
path
.
join
(
inc_dir
,
"config.h"
)
return
os
.
path
.
join
(
inc_dir
,
"
py
config.h"
)
def
get_makefile_filename
():
def
get_makefile_filename
():
...
...
Makefile.pre.in
View file @
2d4aed33
...
@@ -118,7 +118,7 @@ SRCDIRS= @SRCDIRS@
...
@@ -118,7 +118,7 @@ SRCDIRS= @SRCDIRS@
SUBDIRSTOO
=
Include Lib Misc Demo
SUBDIRSTOO
=
Include Lib Misc Demo
# Files and directories to be distributed
# Files and directories to be distributed
CONFIGFILES
=
configure configure.in acconfig.h config.h.in Makefile.pre.in
CONFIGFILES
=
configure configure.in acconfig.h
py
config.h.in Makefile.pre.in
DISTFILES
=
README ChangeLog
$(CONFIGFILES)
DISTFILES
=
README ChangeLog
$(CONFIGFILES)
DISTDIRS
=
$(SUBDIRS)
$(SUBDIRSTOO)
Ext-dummy
DISTDIRS
=
$(SUBDIRS)
$(SUBDIRSTOO)
Ext-dummy
DIST
=
$(DISTFILES)
$(DISTDIRS)
DIST
=
$(DISTFILES)
$(DISTDIRS)
...
@@ -417,7 +417,7 @@ Mac/Python/macglue.o: $(srcdir)/Mac/Python/macglue.c
...
@@ -417,7 +417,7 @@ Mac/Python/macglue.o: $(srcdir)/Mac/Python/macglue.c
PYTHON_HEADERS
=
\
PYTHON_HEADERS
=
\
Include/Python.h
\
Include/Python.h
\
config.h
\
py
config.h
\
Include/patchlevel.h
\
Include/patchlevel.h
\
Include/pyport.h
\
Include/pyport.h
\
Include/pymem.h
\
Include/pymem.h
\
...
@@ -650,7 +650,7 @@ inclinstall:
...
@@ -650,7 +650,7 @@ inclinstall:
echo
$(INSTALL_DATA)
$$
i
$(INCLUDEPY)
;
\
echo
$(INSTALL_DATA)
$$
i
$(INCLUDEPY)
;
\
$(INSTALL_DATA)
$$
i
$(INCLUDEPY)
;
\
$(INSTALL_DATA)
$$
i
$(INCLUDEPY)
;
\
done
done
$(INSTALL_DATA)
config.h
$(CONFINCLUDEPY)
/
config.h
$(INSTALL_DATA)
pyconfig.h
$(CONFINCLUDEPY)
/py
config.h
# Install the library and miscellaneous stuff needed for extending/embedding
# Install the library and miscellaneous stuff needed for extending/embedding
# This goes into $(exec_prefix)
# This goes into $(exec_prefix)
...
@@ -732,7 +732,7 @@ recheck:
...
@@ -732,7 +732,7 @@ recheck:
$(SHELL)
config.status
--recheck
$(SHELL)
config.status
--recheck
$(SHELL)
config.status
$(SHELL)
config.status
# Rebuild the configure script from configure.in; also rebuild config.h.in
# Rebuild the configure script from configure.in; also rebuild
py
config.h.in
autoconf
:
autoconf
:
(
cd
$(srcdir)
;
autoconf
)
(
cd
$(srcdir)
;
autoconf
)
(
cd
$(srcdir)
;
autoheader
)
(
cd
$(srcdir)
;
autoheader
)
...
@@ -762,7 +762,7 @@ clean:
...
@@ -762,7 +762,7 @@ clean:
clobber
:
clean
clobber
:
clean
-
rm
-f
$(PYTHON)
$(PGEN)
$(LIBRARY)
$(LDLIBRARY)
$(DLLLIBRARY)
\
-
rm
-f
$(PYTHON)
$(PGEN)
$(LIBRARY)
$(LDLIBRARY)
$(DLLLIBRARY)
\
tags TAGS
\
tags TAGS
\
config.cache config.log config.h Modules/config.c
config.cache config.log
py
config.h Modules/config.c
-
rm
-rf
build platform
-
rm
-rf
build platform
# Make things extra clean, before making a distribution:
# Make things extra clean, before making a distribution:
...
...
Misc/Porting
View file @
2d4aed33
...
@@ -19,8 +19,8 @@ for Python. Not all source files are relevant -- some are platform
...
@@ -19,8 +19,8 @@ for Python. Not all source files are relevant -- some are platform
specific, others are only used in emergencies (e.g. getopt.c). The
specific, others are only used in emergencies (e.g. getopt.c). The
Makefiles tell the story.
Makefiles tell the story.
You'll also need a config.h file tailored for your platform. You can
You'll also need a
py
config.h file tailored for your platform. You can
start with config.h.in, read the comments and turn on definitions that
start with
py
config.h.in, read the comments and turn on definitions that
apply to your platform.
apply to your platform.
And you'll need a config.c file, which lists the built-in modules you
And you'll need a config.c file, which lists the built-in modules you
...
...
Modules/_testcapimodule.c
View file @
2d4aed33
...
@@ -25,7 +25,7 @@ raiseTestError(const char* test_name, const char* msg)
...
@@ -25,7 +25,7 @@ raiseTestError(const char* test_name, const char* msg)
return
NULL
;
return
NULL
;
}
}
/* Test #defines from config.h (particularly the SIZEOF_* defines).
/* Test #defines from
py
config.h (particularly the SIZEOF_* defines).
The ones derived from autoconf on the UNIX-like OSes can be relied
The ones derived from autoconf on the UNIX-like OSes can be relied
upon (in the absence of sloppy cross-compiling), but the Windows
upon (in the absence of sloppy cross-compiling), but the Windows
...
...
Modules/getbuildinfo.c
View file @
2d4aed33
#include "config.h"
#include "
py
config.h"
#ifdef macintosh
#ifdef macintosh
#include "macbuildno.h"
#include "macbuildno.h"
...
...
Modules/posixmodule.c
View file @
2d4aed33
...
@@ -46,7 +46,7 @@ corresponding Unix manual entries for more information on calls.";
...
@@ -46,7 +46,7 @@ corresponding Unix manual entries for more information on calls.";
#endif
/* HAVE_UNISTD_H */
#endif
/* HAVE_UNISTD_H */
/* Various compilers have only certain posix functions */
/* Various compilers have only certain posix functions */
/* XXX Gosh I wish these were all moved into config.h */
/* XXX Gosh I wish these were all moved into
py
config.h */
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
#include <process.h>
#include <process.h>
#else
#else
...
...
PC/dl_nt.c
View file @
2d4aed33
...
@@ -10,7 +10,7 @@ forgotten) from the programmer.
...
@@ -10,7 +10,7 @@ forgotten) from the programmer.
#include "windows.h"
#include "windows.h"
/* NT and Python share these */
/* NT and Python share these */
#include "config.h"
#include "
py
config.h"
#include "Python.h"
#include "Python.h"
char
dllVersionBuffer
[
16
]
=
""
;
// a private buffer
char
dllVersionBuffer
[
16
]
=
""
;
// a private buffer
...
...
PC/os2vacpp/makefile
View file @
2d4aed33
This diff is collapsed.
Click to expand it.
PC/os2vacpp/makefile.omk
View file @
2d4aed33
This diff is collapsed.
Click to expand it.
PC/os2vacpp/config.h
→
PC/os2vacpp/
py
config.h
View file @
2d4aed33
File moved
PC/config.h
→
PC/
py
config.h
View file @
2d4aed33
File moved
PCbuild/python20.wse
View file @
2d4aed33
...
@@ -926,9 +926,9 @@ item: Install File
...
@@ -926,9 +926,9 @@ item: Install File
Flags=0000000000000010
Flags=0000000000000010
end
end
item: Install File
item: Install File
Source=%_SRC_%\PC\config.h
Source=%_SRC_%\PC\
py
config.h
Destination=%MAINDIR%\include\config.h
Destination=%MAINDIR%\include\
py
config.h
Description=Header files (config.h)
Description=Header files (
py
config.h)
Flags=0000000000000010
Flags=0000000000000010
end
end
item: Install File
item: Install File
...
...
Python/atof.c
View file @
2d4aed33
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
and is slow and inaccurate.
and is slow and inaccurate.
But it's good enough for the occasional string literal... */
But it's good enough for the occasional string literal... */
#include "config.h"
#include "
py
config.h"
#include <ctype.h>
#include <ctype.h>
...
...
Python/fmod.c
View file @
2d4aed33
/* Portable fmod(x, y) implementation for systems that don't have it */
/* Portable fmod(x, y) implementation for systems that don't have it */
#include "config.h"
#include "
py
config.h"
#include "pyport.h"
#include "pyport.h"
#include <errno.h>
#include <errno.h>
...
...
Python/getmtime.c
View file @
2d4aed33
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
/* (A separate file because this may be OS dependent) */
/* (A separate file because this may be OS dependent) */
#include "Python.h"
#include "Python.h"
#include "config.h"
#include "
py
config.h"
time_t
time_t
PyOS_GetLastModificationTime
(
char
*
path
,
FILE
*
fp
)
PyOS_GetLastModificationTime
(
char
*
path
,
FILE
*
fp
)
...
...
Python/hypot.c
View file @
2d4aed33
/* hypot() replacement */
/* hypot() replacement */
#include "config.h"
#include "
py
config.h"
#include "pyport.h"
#include "pyport.h"
double
hypot
(
double
x
,
double
y
)
double
hypot
(
double
x
,
double
y
)
...
...
Python/pyfpe.c
View file @
2d4aed33
#include "config.h"
#include "
py
config.h"
#include "pyfpe.h"
#include "pyfpe.h"
/*
/*
* The signal handler for SIGFPE is actually declared in an external
* The signal handler for SIGFPE is actually declared in an external
...
...
Python/strtod.c
View file @
2d4aed33
#include "config.h"
#include "
py
config.h"
/* comp.sources.misc strtod(), as posted in comp.lang.tcl,
/* comp.sources.misc strtod(), as posted in comp.lang.tcl,
with bugfix for "123000.0" and acceptance of space after 'e' sign nuked.
with bugfix for "123000.0" and acceptance of space after 'e' sign nuked.
...
...
Python/thread.c
View file @
2d4aed33
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
which is included by this file dependent on config settings.
which is included by this file dependent on config settings.
Stuff shared by all thread_*.h files is collected here. */
Stuff shared by all thread_*.h files is collected here. */
#include "config.h"
#include "
py
config.h"
/* config.h may or may not define DL_IMPORT */
/* config.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT
/* declarations for DLL import/export */
#ifndef DL_IMPORT
/* declarations for DLL import/export */
...
...
RISCOS/config.h
→
RISCOS/
py
config.h
View file @
2d4aed33
File moved
configure
View file @
2d4aed33
#! /bin/sh
#! /bin/sh
# From configure.in Revision: 1.23
4
# From configure.in Revision: 1.23
5
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Generated automatically using autoconf version 2.13
...
@@ -7107,7 +7107,7 @@ done
...
@@ -7107,7 +7107,7 @@ done
ac_given_srcdir=
$srcdir
ac_given_srcdir=
$srcdir
ac_given_INSTALL="
$INSTALL
"
ac_given_INSTALL="
$INSTALL
"
trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "Makefile.pre Modules/Setup.config
py
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
EOF
cat
>>
$CONFIG_STATUS
<<
EOF
cat
>>
$CONFIG_STATUS
<<
EOF
...
@@ -7305,7 +7305,7 @@ ac_eD='%g'
...
@@ -7305,7 +7305,7 @@ ac_eD='%g'
if test "
${
CONFIG_HEADERS
+set
}
" != set; then
if test "
${
CONFIG_HEADERS
+set
}
" != set; then
EOF
EOF
cat
>>
$CONFIG_STATUS
<<
EOF
cat
>>
$CONFIG_STATUS
<<
EOF
CONFIG_HEADERS="config.h"
CONFIG_HEADERS="
py
config.h"
EOF
EOF
cat
>>
$CONFIG_STATUS
<<
\
EOF
cat
>>
$CONFIG_STATUS
<<
\
EOF
fi
fi
...
...
configure.in
View file @
2d4aed33
...
@@ -2,7 +2,7 @@ dnl Process this file with autoconf 2.0 or later to make a configure script.
...
@@ -2,7 +2,7 @@ dnl Process this file with autoconf 2.0 or later to make a configure script.
AC_REVISION($Revision$)
AC_REVISION($Revision$)
AC_PREREQ(2.0)
AC_PREREQ(2.0)
AC_INIT(Include/object.h)
AC_INIT(Include/object.h)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_HEADER(
py
config.h)
# Set VERSION so we only need to edit in one place (i.e., here)
# Set VERSION so we only need to edit in one place (i.e., here)
AC_SUBST(VERSION)
AC_SUBST(VERSION)
...
...
config.h.in
→
py
config.h.in
View file @
2d4aed33
/* config.h.in. Generated automatically from configure.in by autoheader. */
/*
py
config.h.in. Generated automatically from configure.in by autoheader. */
/* Define if on AIX 3.
/* Define if on AIX 3.
System headers sometimes define this.
System headers sometimes define this.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment