view Python/getplatform.c @ 26664:fe2d422385b1 legacy-trunk

Fixed potential crash: v can be NULL here, so use Py_XDECREF rather than Py_DECREF
author Just van Rossum <just@letterror.com>
date Sun, 15 Dec 2002 13:45:32 +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;
}