FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123961: add `curses` prefix to global variable names in `_cursesmodule.c` by picnixz · Pull Request #124047 · python/cpython · GitHub

/ cpython Public

gh-123961: add curses prefix to global variable names in _cursesmodule.c - #124047

Merged
vstinner merged 4 commits into
python:mainfrom
picnixz:curses/rename-global-variables-124046
Sep 13, 2024
Merged

gh-123961: add curses prefix to global variable names in _cursesmodule.c#124047
vstinner merged 4 commits into
python:mainfrom
picnixz:curses/rename-global-variables-124046

Conversation

picnixz commented Sep 13, 2024
edited
Loading

Copy link
Copy Markdown
Member

picnixz requested review from vstinner and removed request for ericsnowcurrently September 13, 2024 11:57
picnixz changed the title gh-124046: add curses prefix to global variable names in _cursesmodule.c gh-123961: add curses prefix to global variable names in _cursesmodule.c Sep 13, 2024

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.

In general, I prefer having a prefix, it avoids name conflicts when I debug in gdb.

Comment thread Modules/_cursesmodule.c
static int curses_start_color_called = FALSE;

static char *screen_encoding = NULL;
static const char *curses_screen_encoding = NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There is no new compiler warning, so changing type from char* to const char* looks safe.

vstinner enabled auto-merge (squash) September 13, 2024 12:19
vstinner merged commit acb3f87 into python:main Sep 13, 2024
picnixz deleted the curses/rename-global-variables-124046 branch September 13, 2024 12:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL