Staging
v0.5.1
https://github.com/python/cpython
Revision aaed9710e9c0f7362c683c56c0bf086aa3914445 authored by Fred Drake on 10 December 1998, 20:25:30 UTC, committed by Fred Drake on 10 December 1998, 20:25:30 UTC
	<moduleinfo> element based on various meta information, and
	strip some cruftiness.  This is more usable for information
	extraction, and organizes the information more clearly.

cleanup_synopses():  Rewrite to use create_module_info(), so this
	will work with multi-rooted "documents".
1 parent fee6abe
Raw File
Tip revision: aaed9710e9c0f7362c683c56c0bf086aa3914445 authored by Fred Drake on 10 December 1998, 20:25:30 UTC
create_module_info(): New function: Modify a <section> to create a
Tip revision: aaed971
getbuildinfo.c
#include "config.h"

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

#include <stdio.h>

#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()
{
	static char buildinfo[40];
	sprintf(buildinfo, "#%d, %.12s, %.8s", BUILD, DATE, TIME);
	return buildinfo;
}
back to top