Remove obsolete setjmp/longjmp
This commit is contained in:
parent
0e3e020323
commit
c2f6e9f999
|
@ -20,8 +20,6 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
#ifndef _INFERNO_H
|
#ifndef _INFERNO_H
|
||||||
#define _INFERNO_H
|
#define _INFERNO_H
|
||||||
|
|
||||||
#include <setjmp.h>
|
|
||||||
|
|
||||||
struct d_event;
|
struct d_event;
|
||||||
|
|
||||||
#if defined(__APPLE__) || defined(macintosh)
|
#if defined(__APPLE__) || defined(macintosh)
|
||||||
|
@ -48,7 +46,6 @@ typedef char d_fname[FILENAME_LEN];
|
||||||
** Global variables
|
** Global variables
|
||||||
**/
|
**/
|
||||||
|
|
||||||
extern jmp_buf LeaveEvents;
|
|
||||||
extern int Quitting;
|
extern int Quitting;
|
||||||
extern int Screen_mode; // editor screen or game screen?
|
extern int Screen_mode; // editor screen or game screen?
|
||||||
#ifdef DXX_BUILD_DESCENT_I
|
#ifdef DXX_BUILD_DESCENT_I
|
||||||
|
|
|
@ -22,7 +22,6 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#include <setjmp.h>
|
|
||||||
|
|
||||||
#ifdef OGL
|
#ifdef OGL
|
||||||
#include "ogl_init.h"
|
#include "ogl_init.h"
|
||||||
|
@ -1140,7 +1139,6 @@ int game_handler(window *wind, d_event *event, unused_window_userdata_t *)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EVENT_WINDOW_CLOSED:
|
case EVENT_WINDOW_CLOSED:
|
||||||
longjmp(LeaveEvents, 0);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -307,7 +307,6 @@ int standard_handler(d_event *event)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
jmp_buf LeaveEvents;
|
|
||||||
#define PROGNAME argv[0]
|
#define PROGNAME argv[0]
|
||||||
|
|
||||||
// DESCENT by Parallax Software
|
// DESCENT by Parallax Software
|
||||||
|
@ -522,7 +521,6 @@ int main(int argc, char *argv[])
|
||||||
DoMenu();
|
DoMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
setjmp(LeaveEvents);
|
|
||||||
while (window_get_front())
|
while (window_get_front())
|
||||||
// Send events to windows and the default handler
|
// Send events to windows and the default handler
|
||||||
event_process();
|
event_process();
|
||||||
|
|
Loading…
Reference in a new issue