| OLD | NEW |
| 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | 5 |
| 6 #ifndef nspr_win95_defs_h___ | 6 #ifndef nspr_win95_defs_h___ |
| 7 #define nspr_win95_defs_h___ | 7 #define nspr_win95_defs_h___ |
| 8 | 8 |
| 9 #include "prio.h" | 9 #include "prio.h" |
| 10 | 10 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 #define _MD_ACCESS _PR_MD_ACCESS | 237 #define _MD_ACCESS _PR_MD_ACCESS |
| 238 #define _MD_DELETE _PR_MD_DELETE | 238 #define _MD_DELETE _PR_MD_DELETE |
| 239 #define _MD_MKDIR _PR_MD_MKDIR | 239 #define _MD_MKDIR _PR_MD_MKDIR |
| 240 #define _MD_MAKE_DIR _PR_MD_MAKE_DIR | 240 #define _MD_MAKE_DIR _PR_MD_MAKE_DIR |
| 241 #define _MD_RMDIR _PR_MD_RMDIR | 241 #define _MD_RMDIR _PR_MD_RMDIR |
| 242 #define _MD_LOCKFILE _PR_MD_LOCKFILE | 242 #define _MD_LOCKFILE _PR_MD_LOCKFILE |
| 243 #define _MD_TLOCKFILE _PR_MD_TLOCKFILE | 243 #define _MD_TLOCKFILE _PR_MD_TLOCKFILE |
| 244 #define _MD_UNLOCKFILE _PR_MD_UNLOCKFILE | 244 #define _MD_UNLOCKFILE _PR_MD_UNLOCKFILE |
| 245 | 245 |
| 246 /* --- UTF16 IO stuff --- */ | 246 /* --- UTF16 IO stuff --- */ |
| 247 extern PRBool _pr_useUnicode; | |
| 248 #ifdef MOZ_UNICODE | 247 #ifdef MOZ_UNICODE |
| 249 #define _MD_OPEN_FILE_UTF16 _PR_MD_OPEN_FILE_UTF16 | 248 #define _MD_OPEN_FILE_UTF16 _PR_MD_OPEN_FILE_UTF16 |
| 250 #define _MD_OPEN_DIR_UTF16 _PR_MD_OPEN_DIR_UTF16 | 249 #define _MD_OPEN_DIR_UTF16 _PR_MD_OPEN_DIR_UTF16 |
| 251 #define _MD_READ_DIR_UTF16 _PR_MD_READ_DIR_UTF16 | 250 #define _MD_READ_DIR_UTF16 _PR_MD_READ_DIR_UTF16 |
| 252 #define _MD_CLOSE_DIR_UTF16 _PR_MD_CLOSE_DIR_UTF16 | 251 #define _MD_CLOSE_DIR_UTF16 _PR_MD_CLOSE_DIR_UTF16 |
| 253 #define _MD_GETFILEINFO64_UTF16 _PR_MD_GETFILEINFO64_UTF16 | 252 #define _MD_GETFILEINFO64_UTF16 _PR_MD_GETFILEINFO64_UTF16 |
| 254 #endif /* MOZ_UNICODE */ | 253 #endif /* MOZ_UNICODE */ |
| 255 | 254 |
| 256 /* --- Socket IO stuff --- */ | 255 /* --- Socket IO stuff --- */ |
| 257 extern void _PR_MD_InitSockets(void); | 256 extern void _PR_MD_InitSockets(void); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 #define _MD_RESUME_THREAD _PR_MD_RESUME_THREAD | 369 #define _MD_RESUME_THREAD _PR_MD_RESUME_THREAD |
| 371 #define _MD_SUSPEND_CPU _PR_MD_SUSPEND_CPU | 370 #define _MD_SUSPEND_CPU _PR_MD_SUSPEND_CPU |
| 372 #define _MD_RESUME_CPU _PR_MD_RESUME_CPU | 371 #define _MD_RESUME_CPU _PR_MD_RESUME_CPU |
| 373 #define _MD_BEGIN_SUSPEND_ALL() | 372 #define _MD_BEGIN_SUSPEND_ALL() |
| 374 #define _MD_BEGIN_RESUME_ALL() | 373 #define _MD_BEGIN_RESUME_ALL() |
| 375 #define _MD_END_SUSPEND_ALL() | 374 #define _MD_END_SUSPEND_ALL() |
| 376 #define _MD_END_RESUME_ALL() | 375 #define _MD_END_RESUME_ALL() |
| 377 | 376 |
| 378 /* --- Lock stuff --- */ | 377 /* --- Lock stuff --- */ |
| 379 #define _PR_LOCK _MD_LOCK | 378 #define _PR_LOCK _MD_LOCK |
| 380 #define _PR_UNLOCK» » » » » _MD_UNLOCK | 379 #define _PR_UNLOCK _MD_UNLOCK |
| 381 | 380 |
| 382 #define _MD_NEW_LOCK(lock) (InitializeCriticalSection(&((lock)->mutex
)),(lock)->notified.length=0,(lock)->notified.link=NULL,PR_SUCCESS) | 381 #define _MD_NEW_LOCK _PR_MD_NEW_LOCK |
| 383 #define _MD_FREE_LOCK(lock) DeleteCriticalSection(&((lock)->mutex)) | 382 #define _MD_FREE_LOCK(lock) DeleteCriticalSection(&((lock)->mutex)) |
| 384 #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex)) | 383 #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex)) |
| 385 #define _MD_TEST_AND_LOCK(lock) (EnterCriticalSection(&((lock)->mutex)),0) | 384 #define _MD_TEST_AND_LOCK(lock) (EnterCriticalSection(&((lock)->mutex)),0) |
| 386 #define _MD_UNLOCK _PR_MD_UNLOCK | 385 #define _MD_UNLOCK _PR_MD_UNLOCK |
| 387 | 386 |
| 388 /* --- lock and cv waiting --- */ | 387 /* --- lock and cv waiting --- */ |
| 389 #define _MD_WAIT _PR_MD_WAIT | 388 #define _MD_WAIT _PR_MD_WAIT |
| 390 #define _MD_WAKEUP_WAITER _PR_MD_WAKEUP_WAITER | 389 #define _MD_WAKEUP_WAITER _PR_MD_WAKEUP_WAITER |
| 391 | 390 |
| 392 /* --- CVar ------------------- */ | 391 /* --- CVar ------------------- */ |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 #define _MD_SET_CURRENT_CPU(_cpu) TlsSetValue(_pr_currentCPUIndex, 0) | 489 #define _MD_SET_CURRENT_CPU(_cpu) TlsSetValue(_pr_currentCPUIndex, 0) |
| 491 #endif /* _PR_USE_STATIC_TLS */ | 490 #endif /* _PR_USE_STATIC_TLS */ |
| 492 | 491 |
| 493 /* --- Scheduler stuff --- */ | 492 /* --- Scheduler stuff --- */ |
| 494 #define LOCK_SCHEDULER() 0 | 493 #define LOCK_SCHEDULER() 0 |
| 495 #define UNLOCK_SCHEDULER() 0 | 494 #define UNLOCK_SCHEDULER() 0 |
| 496 #define _PR_LockSched() 0 | 495 #define _PR_LockSched() 0 |
| 497 #define _PR_UnlockSched() 0 | 496 #define _PR_UnlockSched() 0 |
| 498 | 497 |
| 499 /* --- Initialization stuff --- */ | 498 /* --- Initialization stuff --- */ |
| 500 #define _MD_INIT_LOCKS() | 499 #define _MD_INIT_LOCKS _PR_MD_INIT_LOCKS |
| 501 | 500 |
| 502 /* --- Stack stuff --- */ | 501 /* --- Stack stuff --- */ |
| 503 #define _MD_INIT_STACK(stack, redzone) | 502 #define _MD_INIT_STACK(stack, redzone) |
| 504 #define _MD_CLEAR_STACK(stack) | 503 #define _MD_CLEAR_STACK(stack) |
| 505 | 504 |
| 506 /* --- Memory-mapped files stuff --- */ | 505 /* --- Memory-mapped files stuff --- */ |
| 507 | 506 |
| 508 struct _MDFileMap { | 507 struct _MDFileMap { |
| 509 HANDLE hFileMap; | 508 HANDLE hFileMap; |
| 510 DWORD dwAccess; | 509 DWORD dwAccess; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 528 | 527 |
| 529 /* --- Named semaphores stuff --- */ | 528 /* --- Named semaphores stuff --- */ |
| 530 #define _PR_HAVE_NAMED_SEMAPHORES | 529 #define _PR_HAVE_NAMED_SEMAPHORES |
| 531 #define _MD_OPEN_SEMAPHORE _PR_MD_OPEN_SEMAPHORE | 530 #define _MD_OPEN_SEMAPHORE _PR_MD_OPEN_SEMAPHORE |
| 532 #define _MD_WAIT_SEMAPHORE _PR_MD_WAIT_SEMAPHORE | 531 #define _MD_WAIT_SEMAPHORE _PR_MD_WAIT_SEMAPHORE |
| 533 #define _MD_POST_SEMAPHORE _PR_MD_POST_SEMAPHORE | 532 #define _MD_POST_SEMAPHORE _PR_MD_POST_SEMAPHORE |
| 534 #define _MD_CLOSE_SEMAPHORE _PR_MD_CLOSE_SEMAPHORE | 533 #define _MD_CLOSE_SEMAPHORE _PR_MD_CLOSE_SEMAPHORE |
| 535 #define _MD_DELETE_SEMAPHORE(name) PR_SUCCESS /* no op */ | 534 #define _MD_DELETE_SEMAPHORE(name) PR_SUCCESS /* no op */ |
| 536 | 535 |
| 537 #endif /* nspr_win32_defs_h___ */ | 536 #endif /* nspr_win32_defs_h___ */ |
| OLD | NEW |