From: Guido van Rossum Date: Sat, 19 Jul 1997 19:48:41 +0000 (+0000) Subject: Make it return a _const_ char*. X-Git-Tag: v1.5a3~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fb26ede517491ccb3f1076ee592e8d255549688;p=python Make it return a _const_ char*. --- diff --git a/Python/getcompiler.c b/Python/getcompiler.c index 57240eb592..93329905a0 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 f9b4dc3538..aea2ef5c3e 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 c697f43086..4553357c18 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() {