view Python/getplatform.c @ 33925:e4404046e552 legacy-trunk

SF patch 1025636: Check for NULL returns in compile.c:com_import_stmt There is no test for this change, because there is no way to provoke memory errors on demand. Test suite passes, though.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Sun, 07 Nov 2004 14:04:00 +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;
}