Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-36641: Add "const" to PyDoc_VAR(name) macro
It reduces "data" segment in python about 200KB.
  • Loading branch information
methane committed Apr 16, 2019
commit 1d1075517c6800f0d7a311fac977dc86edbdc25f
2 changes: 1 addition & 1 deletion Include/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@


/* Define macros for inline documentation. */
#define PyDoc_VAR(name) static char name[]
#define PyDoc_VAR(name) static const char name[]
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
#ifdef WITH_DOC_STRINGS
#define PyDoc_STR(str) str
Expand Down