The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [pups] Re: v7 crypt(3)
@ 2002-09-28  4:57 Dennis Ritchie
  0 siblings, 0 replies; 3+ messages in thread
From: Dennis Ritchie @ 2002-09-28  4:57 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <200209201731.g8KHVh176034@pop2.nwbl.wi.voyager.net>]

end of thread, other threads:[~2002-09-28  4:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-28  4:57 [pups] Re: v7 crypt(3) Dennis Ritchie
     [not found] <200209201731.g8KHVh176034@pop2.nwbl.wi.voyager.net>
2002-09-21  0:17 ` Warren Toomey
2002-09-21  1:11   ` Michael Davidson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).