Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!uiucuxc!hamilton From: hamilton@uiucuxc.CSO.UIUC.EDU Newsgroups: net.micro.amiga Subject: Re: Updated Diffs for vt100 version Message-ID: <148600172@uiucuxc> Date: Sat, 25-Oct-86 18:46:00 EST Article-I.D.: uiucuxc.148600172 Posted: Sat Oct 25 18:46:00 1986 Date-Received: Mon, 27-Oct-86 01:49:07 EST References: <1502@jade.BERKELEY.EDU> Lines: 32 Nf-ID: #R:jade.BERKELEY.EDU:1502:uiucuxc:148600172:000:1311 Nf-From: uiucuxc.CSO.UIUC.EDU!hamilton Oct 25 16:46:00 1986 mwm@eris.berkeley.edu says: > Would someone please explain this to me? > > In article <2009@videovax.UUCP> stever@videovax.UUCP (Steven E. Rice, P.E.) writes: > >Lattice C is unable to cope with the construct [n+1]. > > >*************** > >*** 354,360 > >! FileItem[n].NextItem = &FileItem[n+1]; > >--- 354,361 ----- > >! nplus1 = n+1; > >! FileItem[n].NextItem = &FileItem[nplus1]; > > This looks like utter bilge to me. I'm currently running v2.2 WITHOUT > this patch (though it has the patches posted by DBW), and the menus > look exactly like the code makes me expect them to. Ditto for all the > things I've written that use this technic for setting up menus, etc. > > I'm using 3.03. If 3.04 Beta has this problem, then I pray that 1) it > gets fixed before the release, and 2) DBW won't pick up that > particular piece of uglyness just so the Beta software will work. this refers to a bug in lattice 3.02. an alternative solution, one i prefer, is to substitute "&FileItem[n] + 1" for "&FileItem[n+1]". wayne hamilton U of Il and US Army Corps of Engineers CERL UUCP: {ihnp4,pur-ee,convex}!uiucdcs!uiucuxc!hamilton ARPA: hamilton%uiucuxc@a.cs.uiuc.edu USMail: Box 476, Urbana, IL 61801 CSNET: hamilton%uiucuxc@uiuc.csnet Phone: (217)333-8703 CIS: [73047,544] PLink: w hamilton