repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the HTML tarball target to generate the HTML if needed instead of
[python/dscho.git]
/
Modules
/
getbuildinfo.c
blob
3f9ee525fe5d2a6c0273feca0a8d223c77995cdd
1
#include
"config.h"
2
3
#ifdef macintosh
4
#include
"macbuildno.h"
5
#endif
6
7
#include <stdio.h>
8
9
#ifndef DATE
10
#ifdef __DATE__
11
#define DATE __DATE__
12
#else
13
#define DATE
"xx/xx/xx"
14
#endif
15
#endif
16
17
#ifndef TIME
18
#ifdef __TIME__
19
#define TIME __TIME__
20
#else
21
#define TIME
"xx:xx:xx"
22
#endif
23
#endif
24
25
#ifndef BUILD
26
#define BUILD 0
27
#endif
28
29
30
const char
*
31
Py_GetBuildInfo
()
32
{
33
static char
buildinfo
[
40
];
34
sprintf
(
buildinfo
,
"#%d, %.12s, %.8s"
,
BUILD
,
DATE
,
TIME
);
35
return
buildinfo
;
36
}