Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 72510:b534b56379cb
Use the new Py_ARRAY_LENGTH macro
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 29 Sep 2011 00:42:28 +0200 |
| parents | 606652491366 |
| children | 5e33219492bc |
comparison
equal
deleted
inserted
replaced
| 72509:876a36feb508 | 72510:b534b56379cb |
|---|---|
| 1769 /* This code here replaces the first element in argv with the full | 1769 /* This code here replaces the first element in argv with the full |
| 1770 path that it represents. Under CE, there are no relative paths so | 1770 path that it represents. Under CE, there are no relative paths so |
| 1771 the argument must be the full path anyway. */ | 1771 the argument must be the full path anyway. */ |
| 1772 wchar_t *ptemp; | 1772 wchar_t *ptemp; |
| 1773 if (GetFullPathNameW(argv0, | 1773 if (GetFullPathNameW(argv0, |
| 1774 sizeof(fullpath)/sizeof(fullpath[0]), | 1774 Py_ARRAY_LENGTH(fullpath), |
| 1775 fullpath, | 1775 fullpath, |
| 1776 &ptemp)) { | 1776 &ptemp)) { |
| 1777 argv0 = fullpath; | 1777 argv0 = fullpath; |
| 1778 } | 1778 } |
| 1779 #endif | 1779 #endif |
