The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: jacob.ritorto@gmail.com (Jacob Ritorto)
Subject: [TUHS] K&R C on a modern Linux box? ( was Re: I swear! I rtfm'ed )
Date: Wed, 31 Dec 2014 01:16:00 -0500	[thread overview]
Message-ID: <CAHYQbfAG5878M0x0jJPB4sD-Ut1dh_Jeuqop7P=r=ZFyL0iBwA@mail.gmail.com> (raw)
In-Reply-To: <1420005743.2068.5.camel@doomd.net>

Hey, thanks, Derrik.
  I don't mess with Linux much (kind of an Illumos junkie by trade ;), but
I bet gcc would.  I did out of curiosity do it with the Macintosh cc (Apple
LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)) and it throws
warnings about our not type-defining functions because you're apparently
supposed to do this explicitly these days, but it dutifully goes on to
assume int and compiles our test K&R stuff mostly fine.  It does
unfortunately balk pretty badly at the naked returns we initially had,
though.  Wish it didn't because it strikes me as being beautifully simple..

thx again for the encouragement!
jake


On Wed, Dec 31, 2014 at 1:02 AM, Derrik Walker v2.0 <dwalker at doomd.net>
wrote:

> On Wed, 2014-12-31 at 00:44 -0500, Jacob Ritorto wrote:
>
> >
> > P.S. if anyone's bored enough, you can check out what we're up to at
> > https://github.com/srphtygr/dhb.  I'm trying to get my 11yo kid to
> > spend a little time programming rather than just playing video games
> > when he's near a computer.  He'a actually getting through this stuff
> > and is honestly interested when he understands it and sees it work --
> > and he even spotted a bug before me this afternoon!  Feel free to
> > raise issues, pull requests, etc. if you like -- I'm putting him
> > through the git committing and pair programming paces, so outside
> > interaction would be kinda fun :)
> >
> >
> > P.P.S.  We're actually using 2.11bsd after all..
> >
> I'm curious, will gcc on a modern Linux system compile K&R c?
>
> Maybe when I get a little time, I might try to see if I can compile it
> on a modern Fedora 21 system with gcc.
>
> BTW: Great job introducing him to such a classic environment. A few
> years ago, my now 18 year old had expressed some interest in graphics
> programming and was in awe over an SGI O2 I had at the time, so I got
> him an Indy.  He played around with a bit of programming, but
> unfortunately, he lost interest.
>
> - Derrik
>
>
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20141231/ff7aee9c/attachment.html>


  reply	other threads:[~2014-12-31  6:16 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30 22:56 [TUHS] I swear! I rtfm'ed Jacob Ritorto
2014-12-30 22:59 ` Milo Velimirovic
2014-12-30 23:03 ` Larry McVoy
2014-12-31  0:03   ` Steve Nickolas
2014-12-30 23:05 ` Warren Toomey
2014-12-31  0:01   ` Jacob Ritorto
2014-12-31  2:22     ` Dan Stromberg
2014-12-31  2:33       ` Mary Ann Horton
2014-12-31  5:44         ` Jacob Ritorto
2014-12-31  6:02           ` [TUHS] K&R C on a modern Linux box? ( was Re: I swear! I rtfm'ed ) Derrik Walker v2.0
2014-12-31  6:16             ` Jacob Ritorto [this message]
2014-12-31  7:52               ` Derrik Walker v2.0
2014-12-31  6:24   ` [TUHS] I swear! I rtfm'ed Dave Horsfall
2014-12-31  6:36     ` Lyndon Nerenberg
2014-12-31 14:58       ` Tim Bradshaw
2014-12-31 15:31         ` arnold
2014-12-31 15:37           ` Milo Velimirovic
2014-12-31 17:37             ` Derrik Walker v2.0
2014-12-31 20:09               ` Larry McVoy
2014-12-31 22:25                 ` Jacob Ritorto
2014-12-31 16:11       ` Mary Ann Horton
2014-12-31 20:14 ` Clem Cole
2014-12-31 20:45   ` Erik E. Fair
2014-12-31 21:05     ` Clem Cole
2014-12-31 22:30       ` Jacob Ritorto
2014-12-31 23:06         ` Mary Ann Horton
2014-12-31 23:11           ` Jacob Ritorto
2015-01-01 15:45         ` Clem Cole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYQbfAG5878M0x0jJPB4sD-Ut1dh_Jeuqop7P=r=ZFyL0iBwA@mail.gmail.com' \
    --to=jacob.ritorto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).