Skip to content

Commit 26ff1c2

Browse files
committed
Rename to PyInitConfig_SetStringList()
1 parent 7ea38bf commit 26ff1c2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Include/initconfig.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ typedef struct PyInitConfig PyInitConfig;
99
// Create a new initialization configuration.
1010
// It must be freed by PyInitConfig_Free().
1111
// Return NULL on memory allocation failure.
12+
//
13+
// PyInitConfig_Python_New() has a Python configuration by default.
14+
// PyInitConfig_Isolated_New() has an Isolated configuration by default.
1215
PyAPI_FUNC(PyInitConfig*) PyInitConfig_Python_New(void);
1316
PyAPI_FUNC(PyInitConfig*) PyInitConfig_Isolated_New(void);
1417

@@ -31,7 +34,7 @@ PyAPI_FUNC(int) PyInitConfig_SetString(
3134

3235
// Set a string configuration option.
3336
// Return 0 on success, or return -1 on error.
34-
PyAPI_FUNC(int) PyInitConfig_SetList(
37+
PyAPI_FUNC(int) PyInitConfig_SetStringList(
3538
PyInitConfig *config,
3639
const char *key,
3740
size_t length,

Programs/_testembed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ static int test_initconfig_api(void)
17421742
}
17431743

17441744
wchar_t *argv[] = {PROGRAM_NAME, L"-c", L"pass"};
1745-
if (PyInitConfig_SetList(config, "argv", Py_ARRAY_LENGTH(argv), argv) < 0) {
1745+
if (PyInitConfig_SetStringList(config, "argv", Py_ARRAY_LENGTH(argv), argv) < 0) {
17461746
goto error;
17471747
}
17481748

Python/initconfig.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,8 +3289,8 @@ PyInitConfig_SetString(PyInitConfig *config, const char *key,
32893289
}
32903290

32913291
int
3292-
PyInitConfig_SetList(PyInitConfig *config, const char *key,
3293-
size_t length, wchar_t **items)
3292+
PyInitConfig_SetStringList(PyInitConfig *config, const char *key,
3293+
size_t length, wchar_t **items)
32943294
{
32953295
const PyConfigSpec *spec = initconfig_prepare_set(config, key);
32963296
if (spec == NULL) {

0 commit comments

Comments
 (0)