Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.14 $; site uiucdcs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!goldberg From: goldberg@uiucdcs.UUCP Newsgroups: net.sources Subject: Re: XLISP bug - (nf) Message-ID: <12600019@uiucdcs.UUCP> Date: Sun, 29-Jul-84 15:57:00 EDT Article-I.D.: uiucdcs.12600019 Posted: Sun Jul 29 15:57:00 1984 Date-Received: Tue, 31-Jul-84 00:35:24 EDT References: <12000003@ea.UUCP> Lines: 26 Nf-ID: #R:ea:12000003:uiucdcs:12600019:000:952 Nf-From: uiucdcs!goldberg Jul 29 14:57:00 1984 #R:ea:12000003:uiucdcs:12600019:000:952 uiucdcs!goldberg Jul 29 14:57:00 1984 While attempting to port XLisp to our Pyramid, I encountered an illegal instruction in a longjmp from routine xlabort when I typed in an unknown function. This was due to the fact that XLisp declares it's jump buffer to be char[6], which appears to work ok on the VAX. On the Pyramid however, it does not. I redeclared it to be of type jmp_buf as defined in /usr/include/setjmp.h. Diffs of xlisp.c follow. They may be off by a few lines due to RCS header info which I have added. Phil Goldberg goldberg@uiuc goldberg.uiuc@csnet ...!{ihnp4,convex,pur-ee}!uiucdcs!goldberg -------------------------------------------------------------------------- 1c1 < static char *XLispId = "$Header: xlisp.c,v 1.1 84/07/28 18:56:45 goldberg Exp $"; --- > static char *XLispId = "$Header: xlisp.c,v 1.2 84/07/28 19:29:42 goldberg Exp $"; 36c36 < static char ljmp[6]; --- > static jmp_buf ljmp; /* PRG '84 -- char ljmp[6] bombs on Pyramid */