*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
37dd31d229
commit
3ea5a30534
7 changed files with 99 additions and 230 deletions
|
|
@ -15,6 +15,9 @@
|
|||
/* Size of signal stack */
|
||||
#define STACK_SIZE 4*SIGSTKSZ
|
||||
|
||||
/* Debugging flag */
|
||||
int wad_debug_mode = 0;
|
||||
|
||||
/* Make the alternate signal stack part of the wad data segment as
|
||||
opposed to putting it on the process heap */
|
||||
|
||||
|
|
@ -26,6 +29,13 @@ void wad_init() {
|
|||
static int init = 0;
|
||||
static stack_t sigstk;
|
||||
|
||||
if (getenv("WAD_DEBUG_SEGMENT")) {
|
||||
wad_debug_mode |= DEBUG_SEGMENT;
|
||||
}
|
||||
if (getenv("WAD_DEBUG_SYMBOL")) {
|
||||
wad_debug_mode |= DEBUG_SYMBOL;
|
||||
}
|
||||
|
||||
if (!init) {
|
||||
/* Set up an alternative stack */
|
||||
sigstk.ss_sp = (char *) wad_sig_stack;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue