version 1.1, 2001/10/02 11:17:07 |
version 1.2, 2002/09/11 07:26:58 |
Line 37 Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
|
Line 37 Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
|
# define ENDEXTERN } |
# define ENDEXTERN } |
# define INLINE inline |
# define INLINE inline |
# ifdef __GNUC__ |
# ifdef __GNUC__ |
# define ASMINLINE |
|
# define VOLATILE volatile |
# define VOLATILE volatile |
# else |
# else |
# define VOLATILE |
# define VOLATILE |
Line 47 Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
|
Line 46 Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
|
# define BEGINEXTERN |
# define BEGINEXTERN |
# define ENDEXTERN |
# define ENDEXTERN |
# ifdef __GNUC__ |
# ifdef __GNUC__ |
# define ASMINLINE |
|
# define VOLATILE __volatile__ |
# define VOLATILE __volatile__ |
# ifdef GCC_INLINE |
# ifdef GCC_INLINE |
# ifndef __OPTIMIZE__ |
# define INLINE __inline__ static |
# error "no inlining without -O. Put back -O or remove -DGCC_INLINE" |
|
# else |
|
# define INLINE __inline__ static |
|
# endif |
|
# endif |
# endif |
# else |
# else |
# define VOLATILE |
# define VOLATILE |
|
|
# endif |
# endif |
#endif |
#endif |
|
|
#ifdef _WIN32 |
#ifdef _WIN32 |
/* ANSI C does not allow to longjmp() out of a signal handler, in particular, |
/* ANSI C does not allow to longjmp() out of a signal handler, in particular, |
* the SIGINT handler. On Win32, the handler is executed in another thread, and |
* the SIGINT handler. On Win32, the handler is executed in another thread, and |
* longjmp'ing into another thread's stack will utterly confuse the system. |
* longjmp'ing into another thread's stack will utterly confuse the system. |
* Instead, we check whether win32ctrlc is set in new_chunk(). |
* Instead, we check whether win32ctrlc is set in new_chunk(). */ |
*/ |
|
extern int win32ctrlc; |
extern int win32ctrlc; |
void dowin32ctrlc(); |
void dowin32ctrlc(); |
#endif |
#endif |