| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e7cc64e commit 9d6a2d0
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -351,16 +351,11 @@ PyMapping_Length | |||
| 351 | 351 | PyMapping_SetItemString | |
| 352 | 352 | PyMapping_Size | |
| 353 | 353 | PyMapping_Values | |
| 354 | - PyMarshal_ReadObjectFromString | ||
| 355 | - PyMarshal_WriteLongToFile | ||
| 356 | - PyMarshal_WriteObjectToFile | ||
| 357 | - PyMarshal_WriteObjectToString | ||
| 354 | + PyMem_Calloc | ||
| 358 | 355 | PyMem_Free | |
| 359 | 356 | PyMem_Malloc | |
| 360 | 357 | PyMem_Realloc | |
| 361 | 358 | PyMemberDescr_Type | |
| 362 | - PyMember_GetOne | ||
| 363 | - PyMember_SetOne | ||
| 364 | 359 | PyMemoryView_FromMemory | |
| 365 | 360 | PyMemoryView_FromObject | |
| 366 | 361 | PyMemoryView_GetContiguous | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,6 +32,9 @@ PyAPI_FUNC(int) _Py_EncodeLocaleEx( | |||
| 32 | 32 | int current_locale, | |
| 33 | 33 | _Py_error_handler errors); | |
| 34 | 34 | ||
| 35 | + PyAPI_FUNC(char*) _Py_EncodeLocaleRaw( | ||
| 36 | + const wchar_t *text, | ||
| 37 | + size_t *error_pos); | ||
| 35 | 38 | ||
| 36 | 39 | PyAPI_FUNC(PyObject *) _Py_device_encoding(int); | |
| 37 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,6 @@ PyAPI_FUNC(void) PyMem_RawFree(void *ptr); | |||
| 10 | 10 | /* Try to get the allocators name set by _PyMem_SetupAllocators(). */ | |
| 11 | 11 | PyAPI_FUNC(const char*) _PyMem_GetCurrentAllocatorName(void); | |
| 12 | 12 | ||
| 13 | - PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize); | ||
| 14 | - | ||
| 15 | 13 | /* strdup() using PyMem_RawMalloc() */ | |
| 16 | 14 | PyAPI_FUNC(char *) _PyMem_RawStrdup(const char *str); | |
| 17 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,10 +12,6 @@ PyAPI_FUNC(wchar_t *) Py_DecodeLocale( | |||
| 12 | 12 | PyAPI_FUNC(char*) Py_EncodeLocale( | |
| 13 | 13 | const wchar_t *text, | |
| 14 | 14 | size_t *error_pos); | |
| 15 | - | ||
| 16 | - PyAPI_FUNC(char*) _Py_EncodeLocaleRaw( | ||
| 17 | - const wchar_t *text, | ||
| 18 | - size_t *error_pos); | ||
| 19 | 15 | #endif | |
| 20 | 16 | ||
| 21 | 17 | #ifndef Py_LIMITED_API | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,15 +76,13 @@ typedef union { | |||
| 76 | 76 | } expat; | |
| 77 | 77 | } _Py_HashSecret_t; | |
| 78 | 78 | PyAPI_DATA(_Py_HashSecret_t) _Py_HashSecret; | |
| 79 | - #endif | ||
| 80 | 79 | ||
| 81 | 80 | #ifdef Py_DEBUG | |
| 82 | 81 | PyAPI_DATA(int) _Py_HashSecret_Initialized; | |
| 83 | 82 | #endif | |
| 84 | 83 | ||
| 85 | 84 | ||
| 86 | 85 | /* hash function definition */ | |
| 87 | - #ifndef Py_LIMITED_API | ||
| 88 | 86 | typedef struct { | |
| 89 | 87 | Py_hash_t (*const hash)(const void *, Py_ssize_t); | |
| 90 | 88 | const char *name; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,7 @@ extern "C" { | |||
| 50 | 50 | */ | |
| 51 | 51 | ||
| 52 | 52 | PyAPI_FUNC(void *) PyMem_Malloc(size_t size); | |
| 53 | + PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize); | ||
| 53 | 54 | PyAPI_FUNC(void *) PyMem_Realloc(void *ptr, size_t new_size); | |
| 54 | 55 | PyAPI_FUNC(void) PyMem_Free(void *ptr); | |
| 55 | 56 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + :c:func:`PyMem_Calloc` is now available in the limited C API | ||
| 2 | + (``Py_LIMITED_API``). | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments