Stop maintaining the buildno file.

Also, stop determining Unicode sizes with PyString_GET_SIZE.
This commit is contained in:
Martin v. Löwis 2006-01-05 10:00:36 +00:00
parent c6d1f9100f
commit dea59e5755
5 changed files with 88 additions and 37 deletions

View file

@ -20,21 +20,30 @@
#endif
#endif
#ifndef BUILD
#define BUILD "0"
#endif
static const char revision[] = "$Revision$";
static const char headurl[] = "$HeadURL$";
const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50];
#ifdef SVNVERSION
static char svnversion[] = SVNVERSION;
#else
static char svnversion[20] = "unknown";
if (strstr(headurl, "/tags/") != NULL) {
int start = ;
strncpy(svnversion, revision+start, stop-start);
svnversion[stop-start] = '\0';
}
#endif
PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s, %.20s, %.9s", BUILD, DATE, TIME);
"%s, %.20s, %.9s", svnversion, DATE, TIME);
return buildinfo;
}
const char *
Py_GetBuildNumber(void)
{
return BUILD;
return "0";
}