diff options
author | Christopher Faylor <me@cgf.cx> | 2013-07-19 22:44:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-07-19 22:44:02 +0000 |
commit | bbdd6c47c994fb1d688de594366f28e3b46c7053 (patch) | |
tree | 82d2644736f6d5c984de7cde6245b2ed2e3993d2 /winsup/cygwin/winf.h | |
parent | 132e0f018226396c89ceb8d02c6bb72454c2699c (diff) | |
download | cygnal-bbdd6c47c994fb1d688de594366f28e3b46c7053.tar.gz cygnal-bbdd6c47c994fb1d688de594366f28e3b46c7053.tar.bz2 cygnal-bbdd6c47c994fb1d688de594366f28e3b46c7053.zip |
* spawn.cc (child_info_spawn::worker): Reinstate using temp buffer for wide
character command-line storage. Use wcs method to convert command line.
* winf.h (lb_wcs): Delete.
(linebuf::wcs): Implement new single-argument method.
Diffstat (limited to 'winsup/cygwin/winf.h')
-rw-r--r-- | winsup/cygwin/winf.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/winsup/cygwin/winf.h b/winsup/cygwin/winf.h index d7488c360..ca7d2bdd9 100644 --- a/winsup/cygwin/winf.h +++ b/winsup/cygwin/winf.h @@ -86,6 +86,7 @@ class linebuf wchar_t *wbuf = (wchar_t *) malloc (sizeof (wchar_t) * n); return wcs (wbuf, n); } + wchar_t *wcs (wchar_t *wbuf) { return wcs (wbuf, ix + 1); } wchar_t *wcs (wchar_t *wbuf, size_t n) { if (n == 1) @@ -95,12 +96,3 @@ class linebuf return wbuf; } }; - -/* Return a temporary buffer representing the wide character version - of a linebuf command line. */ -#define lb_wcs(__x) \ -({ \ - wchar_t __wbuf[(size_t) __x]; \ - __x.wcs (__wbuf, sizeof (__wbuf) / sizeof (__wbuf[0])); \ - __wbuf; \ -}) |