The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] So now that the source is finally out...
@ 2002-01-31  1:03 John Holden
  0 siblings, 0 replies; 18+ messages in thread
From: John Holden @ 2002-01-31  1:03 UTC (permalink / raw)


> > I'm fairly sure things like "=+" and so on were replaced with "+="
> > in the move from V6 to V7.
> 
> I thought so too, but I checked, and there are some still in there.

I think you'll find that the kernel code is clean, but a lot of the older
utilities will show their earlier lineage (including the C compiler)




^ permalink raw reply	[flat|nested] 18+ messages in thread
* [TUHS] So now that the source is finally out...
@ 2002-01-30  1:40 Ken Wellsch
  0 siblings, 0 replies; 18+ messages in thread
From: Ken Wellsch @ 2002-01-30  1:40 UTC (permalink / raw)


On Sun, Jan 27, 2002 at 02:03:40PM -0500, norman at nose.cs.utoronto.ca wrote:
> 
> > Ken Wellsch:
> > I'm fairly sure things like "=+" and so on were replaced with "+="
> > in the move from V6 to V7.
> 
> The V7 C compiler accepted =+, but it still accepted += as well; there was
> a lot of code written the old way, and nobody wanted to be forced to convert
> everything all at once.  

Apologies, typical of my terse replies - I was actually concerned
with clearing up the possible misconception that "=+" was a "feature"
of V7 rather than an "obsolete" holdover from V6.  I suppose historic
accuracy in this context is of little use, I don't know.  I certainly
can believe one can find such artifacts in the existing V7 code 8-)

Cheers,

-- Ken



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [TUHS] So now that the source is finally out...
@ 2002-01-27 19:03 norman
  0 siblings, 0 replies; 18+ messages in thread
From: norman @ 2002-01-27 19:03 UTC (permalink / raw)


Ken Wellsch:

  I'm fairly sure things like "=+" and so on were replaced with "+="
  in the move from V6 to V7.  I think structure assignments were added
  here too, and the much more obscure, being able to declare passed
  arguments in the function preamble as "register."  I believe K&R
  reflects the C language as seen with V7...

The V7 C compiler accepted =+, but it still accepted += as well; there was
a lot of code written the old way, and nobody wanted to be forced to convert
everything all at once.  Similarly, the V7 compiler complained about implicit
conversions between pointers of different types, or between ints and pointers,
but they were treated as warnings, not fatal errors; you could still compile
old code and just ignore the compiler's fussing.

I recall that when I arrived at Bell Labs in 1984, it was apparently not long
after the research group's C compiler had been changed to treat all the
obsolete stuff as errors; certainly there was still code in /usr/src that
hadn't been updated, and all of it had been recompiled recently to run on
the VAX.

A modern C compiler would choke even on some of the stuff that was legal
in those days.  Recently I recompiled tbl with lcc, and had a grand time
cleaning out all the ideas we all thought were clever in the late 1970s
but most of us would never think of doing now.  For those with the virgin
source handy, take a look at subroutine `point' and the way it is used
and abused.

Norman Wilson



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [TUHS] So now that the source is finally out...
@ 2002-01-26 14:50 Ken Wellsch
  2002-01-27 23:58 ` Greg Lehey
  0 siblings, 1 reply; 18+ messages in thread
From: Ken Wellsch @ 2002-01-26 14:50 UTC (permalink / raw)


> On Fri, Jan 25, 2002 at 03:27:25AM -0700, M. Warner Losh wrote:
>
> gcc can compile K&R, but the language has evolved some since the v7
> days.  =*, =+, etc became *=, +=, etc.  There are some other subtle
> things too that I don't recall off the top of my head, but which vexed
> the comp.lang.c news groups in the early 1980's.

I'm fairly sure things like "=+" and so on were replaced with "+="
in the move from V6 to V7.  I think structure assignments were added
here too, and the much more obscure, being able to declare passed
arguments in the function preamble as "register."  I believe K&R
reflects the C language as seen with V7...

-- Ken



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [TUHS] So now that the source is finally out...
@ 2002-01-25 19:18 Carl Lowenstein
  0 siblings, 0 replies; 18+ messages in thread
From: Carl Lowenstein @ 2002-01-25 19:18 UTC (permalink / raw)


> From: "P.A.Osborne" <P.A.Osborne at ukc.ac.uk>
> To: "M. Warner Losh" <imp at village.org>
> Cc: tuhs at minnie.tuhs.org
> Subject: Re: [TUHS] So now that the source is finally out...
> Date: Fri, 25 Jan 2002 11:16:37 +0000
> 
> On Fri, Jan 25, 2002 at 03:27:25AM -0700, M. Warner Losh wrote:
> > Real as in 286 or as in 8088 :-).  
> 
> 
> > gcc can compile K&R, but the language has evolved some since the v7
> > days.  =*, =+, etc became *=, +=, etc.  There are some other subtle
> > things too that I don't recall off the top of my head, but which vexed
> > the comp.lang.c news groups in the early 1980's.
> 
> That makes things a challenge.  Still the source of the kernel is
> around 10K lines IIRC and going through it in stages doesnt make life
> too painfull.

Doesn't one of the C beautifiers do that for you (rewrite =+ etc.)
Either GNU indent or Berkeley? cb.

    carl
-- 
        carl lowenstein         marine physical lab     u.c. san diego
                                                  clowenstein at ucsd.edu



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [TUHS] So now that the source is finally out...
@ 2002-01-24 18:39 Rob Becker
  2002-01-25  9:42 ` P.A.Osborne
  0 siblings, 1 reply; 18+ messages in thread
From: Rob Becker @ 2002-01-24 18:39 UTC (permalink / raw)


who is going to port 7th edition to the i386? (:
Rob Becker



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-01-31  1:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-31  1:03 [TUHS] So now that the source is finally out John Holden
  -- strict thread matches above, loose matches on Subject: below --
2002-01-30  1:40 Ken Wellsch
2002-01-27 19:03 norman
2002-01-26 14:50 Ken Wellsch
2002-01-27 23:58 ` Greg Lehey
2002-01-31  0:29   ` Joerg Micheel
2002-01-25 19:18 Carl Lowenstein
2002-01-24 18:39 Rob Becker
2002-01-25  9:42 ` P.A.Osborne
2002-01-25 10:27   ` M. Warner Losh
2002-01-25 11:16     ` P.A.Osborne
2002-01-25 15:19       ` Ephrem Hugh Bensusan
2002-01-25 15:52         ` M. Warner Losh
2002-01-25 21:08           ` David C. Jenner
2002-01-25 16:24       ` Wolfgang Rupp
2002-01-29  6:17         ` M. Warner Losh
2002-01-25 16:30       ` Wolfgang Rupp
2002-01-25 17:30   ` Jeffrey S. Sharp

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).