Staging
v0.5.1
https://github.com/python/cpython
Revision 858346e4847475137d2e8eaf5e76bfe6deacedb1 authored by Tim Peters on 25 September 2000, 21:01:28 UTC, committed by Tim Peters on 25 September 2000, 21:01:28 UTC
fncs are allowed to raise SIGFPE (see the C std), but OK by me if
people using --with-fpectl want to pay for checking anyway.
1 parent 7f577e7
Raw File
Tip revision: 858346e4847475137d2e8eaf5e76bfe6deacedb1 authored by Tim Peters on 25 September 2000, 21:01:28 UTC
Replace SIGFPE paranoia around strtod and atof. I don't believe these
Tip revision: 858346e
getbuildinfo.c
#include "config.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];
	sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
	return buildinfo;
}
back to top