freebsd-dev/sys/powerpc/include/setjmp.h

21 lines
559 B
C
Raw Normal View History

2002-07-10 12:26:17 +00:00
/* $FreeBSD$ */
/* $NetBSD: setjmp.h,v 1.3 1998/09/16 23:51:27 thorpej Exp $ */
2002-07-10 12:26:17 +00:00
#ifndef _MACHINE_SETJMP_H_
#define _MACHINE_SETJMP_H_
#define _JBLEN 100
/*
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
* compile-time diagnostics for mismatches. The structs are the same
* internally to avoid some run-time errors for mismatches.
*/
#ifndef _ANSI_SOURCE
2002-07-10 12:26:17 +00:00
typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
#endif
typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
2002-07-10 12:26:17 +00:00
#endif /* _MACHINE_SETJMP_H_ */