musl/arch/i386/bits
Rich Felker 150747b41e reduce impact of REG_* namespace pollution in x86[_64] signal.h
when _GNU_SOURCE is defined, which is always the case when compiling
c++ with gcc, these macros for the the indices in gregset_t are
exposed and likely to clash with applications. by using enum constants
rather than macros defined with integer literals, we can make the
clash slightly less likely to break software. the macros are still
defined in case anything checks for them with #ifdef, but they're
defined to expand to themselves so that non-file-scope (e.g.
namespaced) identifiers by the same names still work.

for the sake of avoiding mistakes, the changes were generated with sed
via the command:

sed -i -e 's/#define  *\(REG_[A-Z_0-9]\{1,\}\)  *\([0-9]\{1,\}\)'\
'/enum { \1 = \2 };\n#define \1 \1/' \
arch/i386/bits/signal.h arch/x86_64/bits/signal.h arch/x32/bits/signal.h
2017-01-04 17:08:19 -05:00
..
alltypes.h.in adjust i386 max_align_t definition to work around some broken compilers 2015-12-29 12:46:15 -05:00
endian.h preparing build system to handle ports - step 1 2011-02-15 00:33:23 -05:00
fenv.h remove the __mxcsr member from fenv_t on i386 to follow the glibc abi 2013-08-18 16:27:20 +00:00
float.h fix FLT_ROUNDS to reflect the current rounding mode 2015-03-07 12:05:28 -05:00
io.h fix breakage from introducing bits header for sys/io.h 2012-11-18 19:58:15 -05:00
limits.h fix missing _BSD_SOURCE support in bits/*.h 2012-05-22 22:12:10 -04:00
mman.h deduplicate bits/mman.h 2016-03-18 22:40:28 -04:00
posix.h preparing build system to handle ports - step 1 2011-02-15 00:33:23 -05:00
reg.h preparing build system to handle ports - step 1 2011-02-15 00:33:23 -05:00
setjmp.h change jmp_buf to share an underlying type and struct tag with sigjmp_buf 2013-07-24 02:17:02 -04:00
signal.h reduce impact of REG_* namespace pollution in x86[_64] signal.h 2017-01-04 17:08:19 -05:00
stat.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
stdint.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
syscall.h.in add pkey_{mprotect,alloc,free} syscalls from linux v4.9 2016-12-29 22:10:19 -05:00
user.h make brace placement in public header typedef'd structs consistent 2016-07-03 16:19:28 -04:00