Staging
v0.5.1
https://github.com/python/cpython
Revision d7bbbbc594544318bc6d0f28cb376a11a326c22f authored by Tim Peters on 08 November 2004, 22:30:28 UTC, committed by Tim Peters on 08 November 2004, 22:30:28 UTC
trace_dispatch() result in a more obvious, and more robust way.
1 parent 50c6bdb
Raw File
Tip revision: d7bbbbc594544318bc6d0f28cb376a11a326c22f authored by Tim Peters on 08 November 2004, 22:30:28 UTC
_OutputRedirectingPdb.trace_dispatch(): Return the base class's
Tip revision: d7bbbbc
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

#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