Artifact 6979fc1925d3cd1e1a8e7b844a88dc27823d9602:
- File exec.c — part of check-in [9f57c48591] at 2018-06-24 02:12:44 on branch trunk — Implement stack overflow protection (user: user, size: 445) [annotate] [blame] [check-ins using]
#if 0 gcc ${CFLAGS:--s -O2} -c exec.c `sdl-config --cflags` exit #endif #include "SDL.h" #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sqlite3.h" #include "smallxrm.h" #include "heromesh.h" Uint32 generation_number; Object*objects; Uint32 nobjects; Value globals[0x800]; static jmp_buf my_env; static int my_error; int execute_turn(int key) { if(setjmp(my_env)) return my_error; return 0; }