Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision eea8eda317ded5c519e663237c9850482c2cb06e authored by Hirokazu Yamamoto on 14 August 2008, 01:33:44 UTC, committed by Hirokazu Yamamoto on 14 August 2008, 01:33:44 UTC
- PC/VC6/_bsddb.dsp: removed '/nodefaultlib:"msvcrt"' to fix linker error. - PC/VC6/_msi.dsp, PC/VC6/pcbuild.dsw: added new module support. - PC/VC6/_sqlite3.dsp: /D "MODULE_NAME=\"sqlite3\"" caused extra leading space like #define MODULE_NAME " sqlite3" so uses /D MODULE_NAME=\"sqlite3\" instead. - PC/VC6/python.dsp: changed stack size to 2MB to avoid stack overflow on some tests.
1 parent 581a149
Tip revision: eea8eda317ded5c519e663237c9850482c2cb06e authored by Hirokazu Yamamoto on 14 August 2008, 01:33:44 UTC
Issue #2065: VC6 related fix.
Issue #2065: VC6 related fix.
Tip revision: eea8eda
getbuildinfo.c
#include "Python.h"
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif
#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif
#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif
/* on unix, SVNVERSION is passed on the command line.
* on Windows, the string is interpolated using
* subwcrev.exe
*/
#ifndef SVNVERSION
#define SVNVERSION "$WCRANGE$$WCMODS?M:$"
#endif
const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50];
const char *revision = Py_SubversionRevision();
const char *sep = *revision ? ":" : "";
const char *branch = Py_SubversionShortBranch();
PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s%s%s, %.20s, %.9s", branch, sep, revision,
DATE, TIME);
return buildinfo;
}
const char *
_Py_svnversion(void)
{
/* the following string can be modified by subwcrev.exe */
static const char svnversion[] = SVNVERSION;
if (svnversion[0] != '$')
return svnversion; /* it was interpolated, or passed on command line */
return "exported";
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...