diff options
author | Guido van Rossum <guido@python.org> | 1997-07-19 19:48:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-19 19:48:41 (GMT) |
commit | 8fb26ede517491ccb3f1076ee592e8d255549688 (patch) | |
tree | 31be57e0c411c6e03ca4ef1c197c2967ca0518b9 /Python | |
parent | f6ca6aa8696ff232d2c755fb97cf9264c753d036 (diff) | |
download | cpython-8fb26ede517491ccb3f1076ee592e8d255549688.zip cpython-8fb26ede517491ccb3f1076ee592e8d255549688.tar.gz cpython-8fb26ede517491ccb3f1076ee592e8d255549688.tar.bz2 |
Make it return a _const_ char*.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getcompiler.c | 2 | ||||
-rw-r--r-- | Python/getplatform.c | 2 | ||||
-rw-r--r-- | 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() { |