diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-10-16 06:25:25 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-10-16 06:25:25 (GMT) |
commit | 61376409a9ff1d7e218f3945d0565719b6bfefb4 (patch) | |
tree | 16de6bd50fe6d7be13c65063bf2ec9eaf211a820 /Modules | |
parent | 6ae94ee299648c93ab76a97beec2943dcf050a2b (diff) | |
download | cpython-61376409a9ff1d7e218f3945d0565719b6bfefb4.zip cpython-61376409a9ff1d7e218f3945d0565719b6bfefb4.tar.gz cpython-61376409a9ff1d7e218f3945d0565719b6bfefb4.tar.bz2 |
removed unused _PyUnicode_FromFileSystemEncodedObject.
made win32_chdir, win32_wchdir static.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 4c580c4..39387a9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -474,10 +474,6 @@ win32_error_unicode(char* function, Py_UNICODE* filename) return PyErr_SetFromWindowsErr(errno); } -static PyObject *_PyUnicode_FromFileSystemEncodedObject(register PyObject *obj) -{ -} - static int convert_to_unicode(PyObject **param) { @@ -688,7 +684,7 @@ win32_1str(PyObject* args, char* func, chdir is essentially a wrapper around SetCurrentDirectory; however, it also needs to set "magic" environment variables indicating the per-drive current directory, which are of the form =<drive>: */ -BOOL __stdcall +static BOOL __stdcall win32_chdir(LPCSTR path) { char new_path[MAX_PATH+1]; @@ -713,7 +709,7 @@ win32_chdir(LPCSTR path) /* The Unicode version differs from the ANSI version since the current directory might exceed MAX_PATH characters */ -BOOL __stdcall +static BOOL __stdcall win32_wchdir(LPCWSTR path) { wchar_t _new_path[MAX_PATH+1], *new_path = _new_path; |