From mboxrd@z Thu Jan 1 00:00:00 1970 From: dmr@plan9.bell-labs.com (Dennis Ritchie) Date: Sat, 28 Sep 2002 00:57:18 -0400 Subject: [pups] Re: v7 crypt(3) Message-ID: Following up Toomey's and Davidson's notes (didn't see Garcia's): It does appear that the early-distributed v7 didn't require = in initializers. A slightly later version of the original 11 C compiler did; the lines Davidson quoted, if (o!=ASSIGN) peeksym = o; were replaced by if (o!=ASSIGN) { error("Declaration syntax"); peeksym = o; } bringing it into conformity with K&R1, which did require the =. Incidentally, if anyone wants to try the v7 crypt(3), the 'encrypt' routine has an implicit, and unwarranted, assumption that the L and R arrays are adjacent in storage and thus that L can be oversubscripted to access R. This was fixed at some (surprisingly late) point too. Dennis