Staging
v0.5.1
https://github.com/python/cpython
Revision 12cb99b33ffca180ec8ea2efcad0289d3cf11eca authored by Jack Jansen on 22 July 2003, 14:31:34 UTC, committed by Jack Jansen on 22 July 2003, 14:31:34 UTC
1 parent f753816
Raw File
Tip revision: 12cb99b33ffca180ec8ea2efcad0289d3cf11eca authored by Jack Jansen on 22 July 2003, 14:31:34 UTC
Various tweaks to make the packages work better. Still not 100%, though.
Tip revision: 12cb99b
getbuildinfo.c
#include "Python.h"

#ifdef macintosh
#include "macbuildno.h"
#endif

#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

#ifndef BUILD
#define BUILD 0
#endif

const char *
Py_GetBuildInfo(void)
{
	static char buildinfo[50];
	PyOS_snprintf(buildinfo, sizeof(buildinfo),
		      "#%d, %.20s, %.9s", BUILD, DATE, TIME);
	return buildinfo;
}
back to top