update for ANSI C from jonathan@comp.vuw.ac.nz (4.3BSD/include/8)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 17 Oct 1989 08:17:58 +0000 (00:17 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 17 Oct 1989 08:17:58 +0000 (00:17 -0800)
SCCS-vsn: include/setjmp.h 4.2

usr/src/include/setjmp.h

index a8c173c..33cc015 100644 (file)
@@ -1,3 +1,28 @@
-/*     setjmp.h        4.1     83/05/03        */
+/*     setjmp.h        4.2     89/10/16        */
 
 
-typedef int jmp_buf[10];
+#ifndef _SETJMP_
+#define _SETJMP_
+
+#ifdef vax
+#define _JBLEN 10
+#endif
+
+#ifdef tahoe
+#define _JBLEN 10
+#endif
+
+#ifdef hp300
+#define _JBLEN 17
+#endif
+
+typedef int jmp_buf[_JBLEN];
+
+#ifdef __STDC__
+extern int setjmp(jmp_buf), _setjmp(jmp_buf);
+extern void longjmp(jmp_buf, int), _longjmp(jmp_buf, int);
+#else  /* !__STDC__ */
+extern int setjmp(), _setjmp();
+extern int longjmp(), _longjmp();
+#endif /* !__STDC__ */
+
+#endif