diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-08-07 20:53:13 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-08-08 10:20:42 +0200 |
commit | 8dc18957903e56c2a54fea5ffdf568a6eb1b545f (patch) | |
tree | b0348119c5c3391587560c9e2973a6cc4899e1c5 /Cython/Utility/ModuleSetupCode.c | |
parent | 06b21b1720f91f9fa4b65d15114325e8789be721 (diff) | |
download | cython-8dc18957903e56c2a54fea5ffdf568a6eb1b545f.tar.gz |
make C char* string literals "const" unless specified otherwise
prevent non-const char* string literals from being interned
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 06c18f2da..0bcf74e04 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -310,7 +310,7 @@ static CYTHON_INLINE float __PYX_NAN() { # endif #endif -typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding; +typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/ /////////////// ForceInitThreads.proto /////////////// |