view Python/getplatform.c @ 39189:17d5671fffcc legacy-trunk

Part of bug #1523610: fix miscalculation of buffer length. Also add a guard against NULL in converttuple and add a test case (that previously would have crashed).
author Georg Brandl <georg@python.org>
date Wed, 26 Jul 2006 08:03:10 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}