diff options
author | Ken Brown <kbrown@cornell.edu> | 2022-05-23 22:52:52 +0300 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2022-05-30 00:45:52 +0300 |
commit | 2126f966aeba1616c3bb8b3886061f6235126dcc (patch) | |
tree | ba7df348570dd3c8df151b5c0a6c71490a69865c /winsup/cygwin/miscfuncs.h | |
parent | 2d9b48760c48f19b2941f05ee6720f510700823c (diff) |
Cygwin: remove regparm.h
This file defines the macros __reg1, __reg2, and __reg3, which are
defined to be empty on 64-bit Cygwin. Remove all occurrences of these
macros.
Diffstat (limited to 'winsup/cygwin/miscfuncs.h')
-rw-r--r-- | winsup/cygwin/miscfuncs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/miscfuncs.h b/winsup/cygwin/miscfuncs.h index f571031eb..b0f8c242c 100644 --- a/winsup/cygwin/miscfuncs.h +++ b/winsup/cygwin/miscfuncs.h @@ -44,10 +44,10 @@ is_alt_numpad_event (PINPUT_RECORD pirec) && pirec->Event.KeyEvent.wVirtualScanCode == 0x38; } -int __reg1 winprio_to_nice (DWORD); -DWORD __reg1 nice_to_winprio (int &); +int winprio_to_nice (DWORD); +DWORD nice_to_winprio (int &); -bool __reg3 create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD); +bool create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD); BOOL WINAPI CreatePipeOverlapped (PHANDLE read_handle, PHANDLE write_handle, LPSECURITY_ATTRIBUTES sa); @@ -78,11 +78,11 @@ public: extern "C" void yield (); #define import_address(x) __import_address ((void *)(x)) -void * __reg1 __import_address (void *); +void * __import_address (void *); #define caller_return_address() \ __caller_return_address (__builtin_return_address (0)) -void * __reg1 __caller_return_address (void *); +void * __caller_return_address (void *); void backslashify (const char *, char *, bool); void slashify (const char *, char *, bool); @@ -102,9 +102,9 @@ PWCHAR transform_chars_af_unix (PWCHAR, const char *, __socklen_t); ULONG get_obj_handle_count (HANDLE h); /* Memory checking */ -int __reg2 check_invalid_virtual_addr (const void *s, unsigned sz); +int check_invalid_virtual_addr (const void *s, unsigned sz); -ssize_t __reg3 check_iovec (const struct iovec *, int, bool); +ssize_t check_iovec (const struct iovec *, int, bool); #define check_iovec_for_read(a, b) check_iovec ((a), (b), false) #define check_iovec_for_write(a, b) check_iovec ((a), (b), true) |