8000 bpo-1635741: Port grp and pwd to multiphase initialization by tiran · Pull Request #23360 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: Port grp and pwd to multiphase initialization #23360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 19, 2020
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Use C99 initializers
  • Loading branch information
tiran committed Nov 18, 2020
commit 5142fb7894a61ced8ba35007bd67ef3e76d6f926
18 changes: 9 additions & 9 deletions Modules/grpmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ static void grpmodule_free(void *m) {
}

static struct PyModuleDef grpmodule = {
PyModuleDef_HEAD_INIT,
"grp",
grp__doc__,
sizeof(grpmodulestate),
grp_methods,
grpmodule_slots,
grpmodule_traverse,
grpmodule_clear,
grpmodule_free,
PyModuleDef_HEAD_INIT,
.m_name = "grp",
.m_doc = grp__doc__,
.m_size = sizeof(grpmodulestate),
.m_methods = grp_methods,
.m_slots = grpmodule_slots,
.m_traverse = grpmodule_traverse,
.m_clear = grpmodule_clear,
.m_free = grpmodule_free,
};

PyMODINIT_FUNC
Expand Down
16 changes: 8 additions & 8 deletions Modules/pwdmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ static void pwdmodule_free(void *m) {

static struct PyModuleDef pwdmodule = {
PyModuleDef_HEAD_INIT,
"pwd",
pwd__doc__,
sizeof(pwdmodulestate),
pwd_methods,
pwdmodule_slots,
pwdmodule_traverse,
pwdmodule_clear,
pwdmodule_free,
.m_name = "pwd",
.m_doc = pwd__doc__,
.m_size = sizeof(pwdmodulestate),
.m_methods = pwd_methods,
.m_slots = pwdmodule_slots,
.m_traverse = pwdmodule_traverse,
.m_clear = pwdmodule_clear,
.m_free = pwdmodule_free,
};


Expand Down
0