musl/arch/i386
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
..
bits reduce impact of REG_* namespace pollution in x86[_64] signal.h 2017-01-04 17:08:19 -05:00
atomic_arch.h fix regression disabling use of pause instruction for x86 a_spin 2016-03-29 21:27:28 -04:00
crt_arch.h dynamic linker bootstrap overhaul 2015-04-13 03:04:42 -04:00
pthread_arch.h properly access mcontext_t program counter in cancellation handler 2015-11-02 12:41:49 -05:00
reloc.h introduce new symbol-lookup-free rcrt1/dlstart stage chaining 2015-09-17 06:30:55 +00:00
syscall_arch.h change the internal socketcall selection logic 2016-01-26 18:27:44 -05:00