Mercurial > cpython-lru_cache-weakref
comparison Python/fileutils.c @ 65346:cc1d8a2db348
Mark _Py_char2wchar() input argument as constant
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 15 Oct 2010 11:15:54 +0000 |
| parents | a27fc0ff3678 |
| children | e1dc9861b43f |
comparison
equal
deleted
inserted
replaced
| 65345:e512372f7494 | 65346:cc1d8a2db348 |
|---|---|
| 15 | 15 |
| 16 Return a pointer to a newly allocated (wide) character string (use | 16 Return a pointer to a newly allocated (wide) character string (use |
| 17 PyMem_Free() to free the memory), or NULL on error (conversion error or | 17 PyMem_Free() to free the memory), or NULL on error (conversion error or |
| 18 memory error). */ | 18 memory error). */ |
| 19 wchar_t* | 19 wchar_t* |
| 20 _Py_char2wchar(char* arg) | 20 _Py_char2wchar(const char* arg) |
| 21 { | 21 { |
| 22 wchar_t *res; | 22 wchar_t *res; |
| 23 #ifdef HAVE_BROKEN_MBSTOWCS | 23 #ifdef HAVE_BROKEN_MBSTOWCS |
| 24 /* Some platforms have a broken implementation of | 24 /* Some platforms have a broken implementation of |
| 25 * mbstowcs which does not count the characters that | 25 * mbstowcs which does not count the characters that |
