diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-22 06:48:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-22 06:48:22 -0700 |
commit | 7804b5af1f14c0f35977543a637cf5ff7c285fec (patch) | |
tree | 6e95c9fc8105ef875ee063dca6dc7f3ba3279df8 /parser.c | |
parent | 1f57463ee7f381bd527f2b8ea1638ae8a3916834 (diff) | |
download | txr-7804b5af1f14c0f35977543a637cf5ff7c285fec.tar.gz txr-7804b5af1f14c0f35977543a637cf5ff7c285fec.tar.bz2 txr-7804b5af1f14c0f35977543a637cf5ff7c285fec.zip |
C++ upkeep: cannot assign to volatile sigset_t.
This is a hack for an ugly problem. A plain old
struct is actually a class in C++, and assignment
to a struct goes thorugh a generated assignment
operator. Unfortunately, C++ doesn't generate
an assignment operator for volatile destinations,
so assignment to a volatile-qualified struct object
is erroneous.
* signal.h (copy_sigset): New inline function
to copy a sigset_t, even if the left hand side
is volatile. This works by stripping the
qualifier.
(sig_save_enable): Use the function.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions