Mercurial > hg > xemacs-beta
comparison src/syswindows.h @ 673:685b588e92d8
[xemacs-hg @ 2001-10-30 05:13:26 by andyp]
merge of windows 21.4.5 codeline
author | andyp |
---|---|
date | Tue, 30 Oct 2001 05:13:31 +0000 |
parents | fdefd0186b75 |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
672:42a8626b741e | 673:685b588e92d8 |
---|---|
83 # include <winspool.h> | 83 # include <winspool.h> |
84 # ifdef HAVE_X_WINDOWS | 84 # ifdef HAVE_X_WINDOWS |
85 # define Status int | 85 # define Status int |
86 # endif | 86 # endif |
87 # include <mmsystem.h> | 87 # include <mmsystem.h> |
88 # include <shlobj.h> | |
88 # include <shellapi.h> | 89 # include <shellapi.h> |
89 # include <ddeml.h> | 90 # include <ddeml.h> |
90 #endif | 91 #endif |
91 | 92 |
92 #include <lmaccess.h> /* next three for NetUserEnum and friends */ | 93 #include <lmaccess.h> /* next three for NetUserEnum and friends */ |
118 #ifndef PHYSICALOFFSETX | 119 #ifndef PHYSICALOFFSETX |
119 #define PHYSICALOFFSETX 112 | 120 #define PHYSICALOFFSETX 112 |
120 #endif | 121 #endif |
121 #ifndef PHYSICALOFFSETY | 122 #ifndef PHYSICALOFFSETY |
122 #define PHYSICALOFFSETY 113 | 123 #define PHYSICALOFFSETY 113 |
124 #endif | |
125 | |
126 /* shlobj.h defines. */ | |
127 #ifndef BIF_EDITBOX | |
128 #define BIF_EDITBOX 0x10 | |
129 #endif | |
130 #ifndef BIF_VALIDATE | |
131 #define BIF_VALIDATE 0x20 | |
132 #endif | |
133 #ifndef BFFM_VALIDATEFAILED | |
134 #define BFFM_VALIDATEFAILED 3 | |
123 #endif | 135 #endif |
124 | 136 |
125 /* windows.h defines. */ | 137 /* windows.h defines. */ |
126 #if defined (CYGWIN) && (CYGWIN_VERSION_DLL_MAJOR < 20) | 138 #if defined (CYGWIN) && (CYGWIN_VERSION_DLL_MAJOR < 20) |
127 typedef NMHDR *LPNMHDR; | 139 typedef NMHDR *LPNMHDR; |
259 conversion functions are *NOT* localized, and will fail if they \ | 271 conversion functions are *NOT* localized, and will fail if they \ |
260 get 7-bit ISO2022-encoded data. We know that our internal format \ | 272 get 7-bit ISO2022-encoded data. We know that our internal format \ |
261 is ASCII-compatible, and so these functions will work fine with \ | 273 is ASCII-compatible, and so these functions will work fine with \ |
262 this data. */ \ | 274 this data. */ \ |
263 Lisp_Object ltwff1 = (path); \ | 275 Lisp_Object ltwff1 = (path); \ |
264 int ltwff2 = \ | 276 Intbyte* ltwffp = XSTRING_DATA (ltwff1); \ |
265 cygwin_posix_to_win32_path_list_buf_size ((char *) \ | 277 if (isalpha (ltwffp[0]) && (IS_DEVICE_SEP (ltwffp[1]))) \ |
266 XSTRING_DATA (ltwff1)); \ | 278 pathout = ltwffp; \ |
267 pathout = (Intbyte *) alloca (ltwff2); \ | 279 else { \ |
268 cygwin_posix_to_win32_path_list ((char *) XSTRING_DATA (ltwff1), \ | 280 int ltwff2 = \ |
269 (char *) pathout); \ | 281 cygwin_posix_to_win32_path_list_buf_size ((char*)ltwffp); \ |
282 pathout = (Intbyte *) alloca (ltwff2); \ | |
283 cygwin_posix_to_win32_path_list ((char*) ltwffp, (char*) pathout); \ | |
284 } \ | |
270 } while (0) | 285 } while (0) |
271 #else | 286 #else |
272 #define LOCAL_TO_WIN32_FILE_FORMAT(path, pathout) \ | 287 #define LOCAL_TO_WIN32_FILE_FORMAT(path, pathout) \ |
273 do { \ | 288 do { \ |
274 (pathout) = XSTRING_DATA (path); \ | 289 (pathout) = XSTRING_DATA (path); \ |