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