diff options
| author | Karl Heuer | 1995-04-12 02:32:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-12 02:32:26 +0000 |
| commit | 3360970aa277b32e8b46df80fbf7b64f37e77acb (patch) | |
| tree | 9c8f5b2769efc4611727a983cf9a2d786f4e142e /src/s | |
| parent | 0534d577c72012d935788856cfa25ce80c6a5998 (diff) | |
| download | emacs-3360970aa277b32e8b46df80fbf7b64f37e77acb.tar.gz emacs-3360970aa277b32e8b46df80fbf7b64f37e77acb.zip | |
(HAVE_RANDOM): Defined.
(random): Macro undefined.
(srandom): Macro undefined.
(HAVE_UTIME): Defined.
(utime): Defined.
(EMACS_CONFIGURATION): Defined.
(_VARARGS_): Defined.
(_CALLBACK_): Defined.
(ctime): Defined to be nt_ctime.
(NULL): Defined when missing from included system files.
(EMACS_CONFIG_OPTIONS): Defined.
(LISP_FLOAT_TYPE): Defined.
(HAVE_TZNAME): Defined.
(HAVE_TIMEVAL): Defined.
(struct timeval): Defined.
(struct timezone): Defined.
(struct nt_stat): Defined.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/ms-w32.h | 88 |
1 files changed, 75 insertions, 13 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 7ea725866fe..fcd02138b84 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* System description file for Windows NT. | 1 | /* System description file for Windows NT. |
| 2 | Copyright (C) 1993, 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -39,6 +39,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 39 | #define DOS_NT /* MSDOS or WINDOWSNT */ | 39 | #define DOS_NT /* MSDOS or WINDOWSNT */ |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | /* If you are compiling with a non-C calling convention but need to | ||
| 43 | declare vararg routines differently, put it here */ | ||
| 44 | #define _VARARGS_ __cdecl | ||
| 45 | |||
| 46 | /* If you are providing a function to something that will call the | ||
| 47 | function back (like a signal handler and signal, or main) its calling | ||
| 48 | convention must be whatever standard the libraries expect */ | ||
| 49 | #define _CALLBACK_ __cdecl | ||
| 50 | |||
| 42 | /* SYSTEM_TYPE should indicate the kind of system you are using. | 51 | /* SYSTEM_TYPE should indicate the kind of system you are using. |
| 43 | It sets the Lisp variable system-type. */ | 52 | It sets the Lisp variable system-type. */ |
| 44 | 53 | ||
| @@ -103,7 +112,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 103 | * Look in <sys/time.h> for a timeval structure. | 112 | * Look in <sys/time.h> for a timeval structure. |
| 104 | */ | 113 | */ |
| 105 | 114 | ||
| 106 | /* #define HAVE_TIMEVAL */ | 115 | #define HAVE_TIMEVAL |
| 116 | struct timeval | ||
| 117 | { | ||
| 118 | long tv_sec; /* seconds */ | ||
| 119 | long tv_usec; /* microseconds */ | ||
| 120 | }; | ||
| 121 | struct timezone | ||
| 122 | { | ||
| 123 | int tz_minuteswest; /* minutes west of Greenwich */ | ||
| 124 | int tz_dsttime; /* type of dst correction */ | ||
| 125 | }; | ||
| 126 | |||
| 127 | void gettimeofday (struct timeval *, struct timezone *); | ||
| 128 | |||
| 107 | 129 | ||
| 108 | /* | 130 | /* |
| 109 | * Define HAVE_SELECT if the system supports the `select' system call. | 131 | * Define HAVE_SELECT if the system supports the `select' system call. |
| @@ -197,12 +219,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 197 | #define MAXPATHLEN _MAX_PATH | 219 | #define MAXPATHLEN _MAX_PATH |
| 198 | #endif | 220 | #endif |
| 199 | 221 | ||
| 200 | #define HAVE_DUP2 1 | 222 | #define LISP_FLOAT_TYPE |
| 201 | #define HAVE_RENAME 1 | 223 | |
| 202 | #define HAVE_RMDIR 1 | 224 | #define HAVE_DUP2 1 |
| 203 | #define HAVE_MKDIR 1 | 225 | #define HAVE_RENAME 1 |
| 226 | #define HAVE_RMDIR 1 | ||
| 227 | #define HAVE_MKDIR 1 | ||
| 204 | #define HAVE_GETHOSTNAME 1 | 228 | #define HAVE_GETHOSTNAME 1 |
| 205 | #define HAVE_MOUSE 1 | 229 | #define HAVE_RANDOM 1 |
| 230 | #define USE_UTIME 1 | ||
| 231 | #define HAVE_MOUSE 1 | ||
| 232 | #define HAVE_TZNAME 1 | ||
| 206 | 233 | ||
| 207 | #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") | 234 | #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") |
| 208 | 235 | ||
| @@ -227,19 +254,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 227 | #define mktemp _mktemp | 254 | #define mktemp _mktemp |
| 228 | #define open _open | 255 | #define open _open |
| 229 | #define pipe _pipe | 256 | #define pipe _pipe |
| 230 | #define random rand | ||
| 231 | #define read _read | 257 | #define read _read |
| 232 | #define rmdir _rmdir | 258 | #define rmdir _rmdir |
| 233 | #define sleep nt_sleep | 259 | #define sleep nt_sleep |
| 234 | #define srandom srand | ||
| 235 | #define unlink _unlink | 260 | #define unlink _unlink |
| 236 | #define umask _umask | 261 | #define umask _umask |
| 262 | #define utime _utime | ||
| 237 | #define write _write | 263 | #define write _write |
| 238 | #define _longjmp longjmp | 264 | #define _longjmp longjmp |
| 239 | #define spawnve win32_spawnve | 265 | #define spawnve win32_spawnve |
| 240 | #define wait win32_wait | 266 | #define wait win32_wait |
| 241 | #define signal win32_signal | 267 | #define signal win32_signal |
| 242 | #define rindex strrchr | 268 | #define rindex strrchr |
| 269 | #define ctime nt_ctime /* Place a wrapper around ctime (see nt.c). */ | ||
| 243 | 270 | ||
| 244 | /* Defines that we need that aren't in the standard signal.h */ | 271 | /* Defines that we need that aren't in the standard signal.h */ |
| 245 | #define SIGHUP 1 /* Hang up */ | 272 | #define SIGHUP 1 /* Hang up */ |
| @@ -254,6 +281,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 254 | #define getdisk() (_getdrive () - 1) | 281 | #define getdisk() (_getdrive () - 1) |
| 255 | #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | 282 | #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) |
| 256 | 283 | ||
| 284 | #define EMACS_CONFIGURATION get_emacs_configuration () | ||
| 285 | #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ | ||
| 286 | |||
| 257 | /* Define this so that winsock.h definitions don't get included when windows.h | 287 | /* Define this so that winsock.h definitions don't get included when windows.h |
| 258 | is... I don't know if they do the right thing for emacs. For this to | 288 | is... I don't know if they do the right thing for emacs. For this to |
| 259 | have proper effect, config.h must always be included before windows.h. */ | 289 | have proper effect, config.h must always be included before windows.h. */ |
| @@ -262,8 +292,40 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 262 | /* Defines size_t and alloca (). */ | 292 | /* Defines size_t and alloca (). */ |
| 263 | #include <malloc.h> | 293 | #include <malloc.h> |
| 264 | 294 | ||
| 265 | /* ============================================================ */ | 295 | /* We have to handle stat specially. However, #defining stat to |
| 266 | 296 | something else not only redefines uses of the function, but also | |
| 267 | /* Give us extra pure storage. */ | 297 | redefines uses of the type struct stat. What unfortunate parallel |
| 298 | naming. */ | ||
| 299 | #include <sys/stat.h> | ||
| 300 | struct nt_stat | ||
| 301 | { | ||
| 302 | struct _stat statbuf; | ||
| 303 | }; | ||
| 304 | |||
| 305 | #ifdef stat | ||
| 306 | #undef stat | ||
| 307 | #endif | ||
| 308 | #define stat nt_stat | ||
| 309 | #define st_dev statbuf.st_dev | ||
| 310 | #define st_ino statbuf.st_ino | ||
| 311 | #define st_mode statbuf.st_mode | ||
| 312 | #define st_nlink statbuf.st_nlink | ||
| 313 | #define st_uid statbuf.st_uid | ||
| 314 | #define st_gid statbuf.st_gid | ||
| 315 | #define st_rdev statbuf.st_rdev | ||
| 316 | #define st_size statbuf.st_size | ||
| 317 | #define st_atime statbuf.st_atime | ||
| 318 | #define st_mtime statbuf.st_mtime | ||
| 319 | #define st_ctime statbuf.st_ctime | ||
| 320 | |||
| 321 | /* Define for those source files that do not include enough NT | ||
| 322 | system files. */ | ||
| 323 | #ifndef NULL | ||
| 324 | #ifdef __cplusplus | ||
| 325 | #define NULL 0 | ||
| 326 | #else | ||
| 327 | #define NULL ((void *)0) | ||
| 328 | #endif | ||
| 329 | #endif | ||
| 268 | 330 | ||
| 269 | #define SYSTEM_PURESIZE_EXTRA 52000 | 331 | /* ============================================================ */ |