From 8fb26ede517491ccb3f1076ee592e8d255549688 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 19 Jul 1997 19:48:41 +0000 Subject: Make it return a _const_ char*. --- Python/getcompiler.c | 2 +- Python/getplatform.c | 2 +- Python/getversion.c | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Python/getcompiler.c b/Python/getcompiler.c index 57240eb..9332990 100644 --- a/Python/getcompiler.c +++ b/Python/getcompiler.c @@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE. #endif /* !COMPILER */ -char * +const char * Py_GetCompiler() { return COMPILER; diff --git a/Python/getplatform.c b/Python/getplatform.c index f9b4dc3..aea2ef5 100644 --- a/Python/getplatform.c +++ b/Python/getplatform.c @@ -35,7 +35,7 @@ PERFORMANCE OF THIS SOFTWARE. #define PLATFORM "unknown" #endif -char * +const char * Py_GetPlatform() { return PLATFORM; diff --git a/Python/getversion.c b/Python/getversion.c index c697f43..4553357 100644 --- a/Python/getversion.c +++ b/Python/getversion.c @@ -35,9 +35,6 @@ PERFORMANCE OF THIS SOFTWARE. #include "patchlevel.h" -extern const char *Py_GetCompiler(); -extern const char *Py_GetBuildInfo(); - const char * Py_GetVersion() { -- cgit v0.12