summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-11-11 15:49:58 +0000
committerDavid Mitchell <davem@iabyn.com>2019-11-18 09:34:40 +0000
commitdc37125bb824744e1f528311ca37da59913cda7d (patch)
tree806df16eed1b338b85f3d9e0df59090b3e54576d /embedvar.h
parentddb513d51f5efcde057dad7932a56643647947e1 (diff)
downloadperl-dc37125bb824744e1f528311ca37da59913cda7d.tar.gz
add explicit 1-arg and 3-arg sig handler functions
Currently, whether the OS-level signal handler function is declared as 1-arg or 3-arg depends on the configuration. Add explicit versions of these functions, principally so that POSIX.xs can call which version of the handler it wants regardless of configuration: see next commit.
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h
index d0d281ce58..2f96743593 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -272,6 +272,8 @@
#define PL_setlocale_bufsize (vTHX->Isetlocale_bufsize)
#define PL_sharehook (vTHX->Isharehook)
#define PL_sig_pending (vTHX->Isig_pending)
+#define PL_sighandler1p (vTHX->Isighandler1p)
+#define PL_sighandler3p (vTHX->Isighandler3p)
#define PL_sighandlerp (vTHX->Isighandlerp)
#define PL_signalhook (vTHX->Isignalhook)
#define PL_signals (vTHX->Isignals)
@@ -382,6 +384,10 @@
#define PL_Gcheck (my_vars->Gcheck)
#define PL_check_mutex (my_vars->Gcheck_mutex)
#define PL_Gcheck_mutex (my_vars->Gcheck_mutex)
+#define PL_csighandler1p (my_vars->Gcsighandler1p)
+#define PL_Gcsighandler1p (my_vars->Gcsighandler1p)
+#define PL_csighandler3p (my_vars->Gcsighandler3p)
+#define PL_Gcsighandler3p (my_vars->Gcsighandler3p)
#define PL_csighandlerp (my_vars->Gcsighandlerp)
#define PL_Gcsighandlerp (my_vars->Gcsighandlerp)
#define PL_curinterp (my_vars->Gcurinterp)