Make it return a _const_ char*.

This commit is contained in:
Guido van Rossum 1997-07-19 19:48:41 +00:00
parent f6ca6aa869
commit 8fb26ede51
3 changed files with 2 additions and 5 deletions

View File

@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
#endif /* !COMPILER */ #endif /* !COMPILER */
char * const char *
Py_GetCompiler() Py_GetCompiler()
{ {
return COMPILER; return COMPILER;

View File

@ -35,7 +35,7 @@ PERFORMANCE OF THIS SOFTWARE.
#define PLATFORM "unknown" #define PLATFORM "unknown"
#endif #endif
char * const char *
Py_GetPlatform() Py_GetPlatform()
{ {
return PLATFORM; return PLATFORM;

View File

@ -35,9 +35,6 @@ PERFORMANCE OF THIS SOFTWARE.
#include "patchlevel.h" #include "patchlevel.h"
extern const char *Py_GetCompiler();
extern const char *Py_GetBuildInfo();
const char * const char *
Py_GetVersion() Py_GetVersion()
{ {