home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.mac.programmer:20577 comp.sys.mac.oop.misc:152
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!cs.utexas.edu!tamsun.tamu.edu!tamsun.tamu.edu!news
- From: bpb9204@tamsun.tamu.edu (Brent Burton)
- Newsgroups: comp.sys.mac.programmer,comp.sys.mac.oop.misc
- Subject: Re: David Betz and Bob Language
- Date: 3 Jan 1993 20:42:29 -0600
- Organization: Texas A&M Univ., Inc.
- Lines: 41
- Message-ID: <1i886lINNg1v@tamsun.tamu.edu>
- References: <01050133.mp32gx@distant.uucp>
- NNTP-Posting-Host: tamsun.tamu.edu
-
- edw@distant.uucp writes:
- |
- |It's written in K&R C, and does wierd things with function arguments. For
- |instance, it'll define a function like this:
- |
- |do_expr()
- |{ [...] }
- |
- |and then call it with arguments! You don't do things like this in ANSI C,
-
- Welcome to the weird, wild, wooly world of RealWorld Programming!
- I'm not trying to belittle you in any way, but I've just seen *so many*
- programs with code like this -- and they still work. Amazing.
-
- As you delve deeper into the worlds of other hacker's code, you'll see
- more and more weird things (like passing 12 arguments to a function just
- because the programmer didn't use variable argument lists - ala GNU Bison -
- and then only using 3 in common usage. You'd think these guys never heard
- of a parameter block or data structures before, but I digress.)
-
- |3. Knows what the hell is happening with the stuff I described above.
-
- Well, the stuff, for the most part, will work, but I can't put too much
- confidence into code that uses anticonventions like your above example.
-
- The trick to getting it to compile with Think C 5 is to turn off some
- of the Think C extensions, mainly the prototype inferencing and strict
- type checking. I've found this to work with most codes.
-
- However, if the code just doesn't run, you better plan to spend some
- serious time editing the code to make it ANSI-compliant. This is
- tedious.
-
- Good luck, and your ideas sound good. Keep us all posted.
-
- -Brent
- --
- +-------------------------+
- | Brent Burton N5VMG |
- | bpb9204@tamsun.tamu.edu |
- +-------------------------+
-