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 argument order in pure python version of nsmallest() and nlargest().
[python/dscho.git]
/
Modules
/
getbuildinfo.c
blob
b541bb64c8f4b63d212f533479a21f69a2dde6ce
1
#include
"Python.h"
2
3
#ifndef DONT_HAVE_STDIO_H
4
#include <stdio.h>
5
#endif
6
7
#ifndef DATE
8
#ifdef __DATE__
9
#define DATE __DATE__
10
#else
11
#define DATE
"xx/xx/xx"
12
#endif
13
#endif
14
15
#ifndef TIME
16
#ifdef __TIME__
17
#define TIME __TIME__
18
#else
19
#define TIME
"xx:xx:xx"
20
#endif
21
#endif
22
23
#ifndef BUILD
24
#define BUILD 0
25
#endif
26
27
const char
*
28
Py_GetBuildInfo
(
void
)
29
{
30
static char
buildinfo
[
50
];
31
PyOS_snprintf
(
buildinfo
,
sizeof
(
buildinfo
),
32
"#%d, %.20s, %.9s"
,
BUILD
,
DATE
,
TIME
);
33
return
buildinfo
;
34
}