summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/util.h')
-rw-r--r--Build/source/utils/asymptote/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/util.h b/Build/source/utils/asymptote/util.h
index 76614aadc6d..57712ae78f0 100644
--- a/Build/source/utils/asymptote/util.h
+++ b/Build/source/utils/asymptote/util.h
@@ -11,11 +11,15 @@
#include <sys/types.h>
#include <iostream>
#include <cstdlib>
+#include <csignal>
#include "common.h"
#include <strings.h>
+// Demangle a typeid name (if the proper library is installed.
+string demangle(const char *s);
+
// Duplicate a string.
char *Strdup(string s);
char *StrdupNoGC(string s);
@@ -52,6 +56,11 @@ string String(T x)
return buf.str();
}
+typedef void (*sighandler_t)(int);
+
+// Portable signal (sigaction wrapper).
+sighandler_t Signal(int signum, sighandler_t handler);
+
// Split string S and push the pieces onto vector a.
void push_split(mem::vector<string>& a, const string& S);