summaryrefslogtreecommitdiffstats
path: root/PC/_msi.c
diff options
context:
space:
mode:
authorCharles-Francois Natali <cf.natali@gmail.com>2013-05-20 17:13:19 (GMT)
committerCharles-Francois Natali <cf.natali@gmail.com>2013-05-20 17:13:19 (GMT)
commit74ca886788fd116b026fdaa5980a48f09bce9bef (patch)
treee28c3c619a57f1cb35659b51adfdb53c2d68b68f /PC/_msi.c
parentd66b10e165d784ae7ea0d875f11153f1dff76fd8 (diff)
downloadcpython-74ca886788fd116b026fdaa5980a48f09bce9bef.zip
cpython-74ca886788fd116b026fdaa5980a48f09bce9bef.tar.gz
cpython-74ca886788fd116b026fdaa5980a48f09bce9bef.tar.bz2
Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
Diffstat (limited to 'PC/_msi.c')
-rw-r--r--PC/_msi.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 0b5b94e..6aba8b0 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -1030,40 +1030,40 @@ PyInit__msi(void)
PyModule_AddIntConstant(m, "MSIDBOPEN_TRANSACT", (int)MSIDBOPEN_TRANSACT);
PyModule_AddIntConstant(m, "MSIDBOPEN_PATCHFILE", (int)MSIDBOPEN_PATCHFILE);
- PyModule_AddIntConstant(m, "MSICOLINFO_NAMES", MSICOLINFO_NAMES);
- PyModule_AddIntConstant(m, "MSICOLINFO_TYPES", MSICOLINFO_TYPES);
-
- PyModule_AddIntConstant(m, "MSIMODIFY_SEEK", MSIMODIFY_SEEK);
- PyModule_AddIntConstant(m, "MSIMODIFY_REFRESH", MSIMODIFY_REFRESH);
- PyModule_AddIntConstant(m, "MSIMODIFY_INSERT", MSIMODIFY_INSERT);
- PyModule_AddIntConstant(m, "MSIMODIFY_UPDATE", MSIMODIFY_UPDATE);
- PyModule_AddIntConstant(m, "MSIMODIFY_ASSIGN", MSIMODIFY_ASSIGN);
- PyModule_AddIntConstant(m, "MSIMODIFY_REPLACE", MSIMODIFY_REPLACE);
- PyModule_AddIntConstant(m, "MSIMODIFY_MERGE", MSIMODIFY_MERGE);
- PyModule_AddIntConstant(m, "MSIMODIFY_DELETE", MSIMODIFY_DELETE);
- PyModule_AddIntConstant(m, "MSIMODIFY_INSERT_TEMPORARY", MSIMODIFY_INSERT_TEMPORARY);
- PyModule_AddIntConstant(m, "MSIMODIFY_VALIDATE", MSIMODIFY_VALIDATE);
- PyModule_AddIntConstant(m, "MSIMODIFY_VALIDATE_NEW", MSIMODIFY_VALIDATE_NEW);
- PyModule_AddIntConstant(m, "MSIMODIFY_VALIDATE_FIELD", MSIMODIFY_VALIDATE_FIELD);
- PyModule_AddIntConstant(m, "MSIMODIFY_VALIDATE_DELETE", MSIMODIFY_VALIDATE_DELETE);
-
- PyModule_AddIntConstant(m, "PID_CODEPAGE", PID_CODEPAGE);
- PyModule_AddIntConstant(m, "PID_TITLE", PID_TITLE);
- PyModule_AddIntConstant(m, "PID_SUBJECT", PID_SUBJECT);
- PyModule_AddIntConstant(m, "PID_AUTHOR", PID_AUTHOR);
- PyModule_AddIntConstant(m, "PID_KEYWORDS", PID_KEYWORDS);
- PyModule_AddIntConstant(m, "PID_COMMENTS", PID_COMMENTS);
- PyModule_AddIntConstant(m, "PID_TEMPLATE", PID_TEMPLATE);
- PyModule_AddIntConstant(m, "PID_LASTAUTHOR", PID_LASTAUTHOR);
- PyModule_AddIntConstant(m, "PID_REVNUMBER", PID_REVNUMBER);
- PyModule_AddIntConstant(m, "PID_LASTPRINTED", PID_LASTPRINTED);
- PyModule_AddIntConstant(m, "PID_CREATE_DTM", PID_CREATE_DTM);
- PyModule_AddIntConstant(m, "PID_LASTSAVE_DTM", PID_LASTSAVE_DTM);
- PyModule_AddIntConstant(m, "PID_PAGECOUNT", PID_PAGECOUNT);
- PyModule_AddIntConstant(m, "PID_WORDCOUNT", PID_WORDCOUNT);
- PyModule_AddIntConstant(m, "PID_CHARCOUNT", PID_CHARCOUNT);
- PyModule_AddIntConstant(m, "PID_APPNAME", PID_APPNAME);
- PyModule_AddIntConstant(m, "PID_SECURITY", PID_SECURITY);
+ PyModule_AddIntMacro(m, MSICOLINFO_NAMES);
+ PyModule_AddIntMacro(m, MSICOLINFO_TYPES);
+
+ PyModule_AddIntMacro(m, MSIMODIFY_SEEK);
+ PyModule_AddIntMacro(m, MSIMODIFY_REFRESH);
+ PyModule_AddIntMacro(m, MSIMODIFY_INSERT);
+ PyModule_AddIntMacro(m, MSIMODIFY_UPDATE);
+ PyModule_AddIntMacro(m, MSIMODIFY_ASSIGN);
+ PyModule_AddIntMacro(m, MSIMODIFY_REPLACE);
+ PyModule_AddIntMacro(m, MSIMODIFY_MERGE);
+ PyModule_AddIntMacro(m, MSIMODIFY_DELETE);
+ PyModule_AddIntMacro(m, MSIMODIFY_INSERT_TEMPORARY);
+ PyModule_AddIntMacro(m, MSIMODIFY_VALIDATE);
+ PyModule_AddIntMacro(m, MSIMODIFY_VALIDATE_NEW);
+ PyModule_AddIntMacro(m, MSIMODIFY_VALIDATE_FIELD);
+ PyModule_AddIntMacro(m, MSIMODIFY_VALIDATE_DELETE);
+
+ PyModule_AddIntMacro(m, PID_CODEPAGE);
+ PyModule_AddIntMacro(m, PID_TITLE);
+ PyModule_AddIntMacro(m, PID_SUBJECT);
+ PyModule_AddIntMacro(m, PID_AUTHOR);
+ PyModule_AddIntMacro(m, PID_KEYWORDS);
+ PyModule_AddIntMacro(m, PID_COMMENTS);
+ PyModule_AddIntMacro(m, PID_TEMPLATE);
+ PyModule_AddIntMacro(m, PID_LASTAUTHOR);
+ PyModule_AddIntMacro(m, PID_REVNUMBER);
+ PyModule_AddIntMacro(m, PID_LASTPRINTED);
+ PyModule_AddIntMacro(m, PID_CREATE_DTM);
+ PyModule_AddIntMacro(m, PID_LASTSAVE_DTM);
+ PyModule_AddIntMacro(m, PID_PAGECOUNT);
+ PyModule_AddIntMacro(m, PID_WORDCOUNT);
+ PyModule_AddIntMacro(m, PID_CHARCOUNT);
+ PyModule_AddIntMacro(m, PID_APPNAME);
+ PyModule_AddIntMacro(m, PID_SECURITY);
MSIError = PyErr_NewException ("_msi.MSIError", NULL, NULL);
if (!MSIError)