Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jtkohl@cs.Berkeley.EDU (John T Kohl)
Subject: Re: Portability of programs
Date: 14 May 92 05:30:05 GMT	[thread overview]
Message-ID: <uststINNprr@agate.berkeley.edu> (raw)
In-Reply-To: evans@zk3.dec.com's message of Wed, 13 May 1992 20:28:38 GMT

>Watch out for arguments to functions where the argument is not
>explicitly declared (and typed).  You should explicitly declare the
>formal parameters to routines or their sizes may not match up with the
>caller (default is "int" which truncates 64-bit addresses).

If you're programming in C, there is no excuse for not using function
prototypes.  ANSI C with prototypes has been standardized 1989.  As good
programming practice, you should be using function protoypes on any new
code you write.  It would also be a good idea to add them to existing
code (who knows what bugs you might find?).

Presumably proper prototyping will help you DTRT for Alpha C compilers.
--
John Kohl <jtkohl@cs.berkeley.edu>
UC Berkeley CS grad student
Member of the League for Programming Freedom--details: league@prep.ai.mit.edu
(The above opinions are MINE.  Don't put my words in somebody else's mouth!)


  reply	other threads:[~1992-05-14  5:30 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-05-11 17:28 DECs commitment to UNIX ? i14isa
1992-05-11 20:46 ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-12 15:54   ` Gregory M. Paris
1992-05-12 20:50     ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-13  1:04       ` Gregory M. Paris
1992-05-13  4:24         ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-16 13:58         ` Charles M Richmond
1992-05-12 16:09   ` Greg Pavlov
1992-05-12 20:36     ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-12 23:36       ` Ralph Becker-Szendy
1992-05-13  2:11         ` Mike Iglesias
1992-05-13  2:34         ` Bob Supnik
1992-05-14 19:27           ` ajv
1992-05-15 20:44             ` Frank Wortner
1992-05-15 20:59             ` Win Treese
1992-05-16  1:01               ` George Michaelson
1992-05-16  3:50                 ` Mike Iglesias
1992-05-17 13:53                 ` Bill Gunshannon
1992-05-17 16:29                 ` Win Treese
1992-05-17 19:29                 ` (Irrelevant?) point of fact (was Re: DECs commitment to ...) Robin Fairbairns
1992-05-18  6:46           ` DECs commitment to UNIX ? Thor Lancelot Simon
1992-05-14 12:40         ` jackson
1992-05-14 18:04           ` Tom Newark
1992-05-14 16:52         ` VMS on Alpha jeh
1992-05-13 15:09       ` DECs commitment to UNIX ? Greg Pavlov
1992-05-13 17:25         ` Frank Wortner
1992-05-13 18:15         ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-13 20:28           ` Marc Evans
1992-05-14  5:30             ` John T Kohl [this message]
1992-05-13 20:49           ` jon reeves
1992-05-14 12:50         ` jackson
1992-05-13  5:47     ` Andrew Rutherford
1992-05-13 12:31       ` Steve Simmons
1992-05-13 18:14         ` Greg Pavlov
1992-05-13 19:19           ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-13 21:08           ` Steve Simmons
1992-05-13 15:48       ` Greg Pavlov
1992-05-14  0:53         ` Ken Spagnolo
1992-05-14 14:36         ` Douglas W O'Neal
1992-05-14 23:54         ` Andrew Rutherford
1992-05-16 14:19         ` Charles M Richmond
1992-05-18  9:21         ` Karl Kleine
1992-05-11 22:19 ` Reha Elci
1992-05-12  2:25   ` Neil Johnson
1992-05-12 10:53   ` Steve Thompson
1992-05-13  5:49   ` Douglas Miller
1992-05-13  5:55 ` Douglas Miller
1992-05-13  6:27   ` Michel Fingerhut
1992-05-13 12:38     ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-14  1:47     ` Douglas Miller
1992-05-13 12:47       ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-13 18:40         ` Greg Pavlov
1992-05-13 19:36           ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-15  8:05             ` DECs commitment to UNIX ? (I surrender ! sort of...) Greg Pavlov
1992-05-13 19:54         ` DECs commitment to UNIX ? Darrin Robinson
1992-05-13 13:00       ` James L Walker
1992-05-13 17:39       ` Greg Pavlov
1992-05-16 14:28         ` Charles M Richmond
1992-05-19  9:09           ` Michel Fingerhut
1992-05-19 17:03             `  Alan's Home for Wayward Notes File.
1992-05-19 17:56           ` Steve Simmons
1992-05-20  3:43             ` Charles M Richmond
     [not found]           ` <945@niktow.canisius.edu>
1992-05-20  6:39             ` Michel Fingerhut
1992-05-25  7:14         ` Douglas Miller
1992-05-26  1:51           ` Greg Pavlov
1992-05-16 13:34 ` Charles M Richmond
1992-05-16 22:09   ` Leo D. Geoffrion
1992-05-17  1:21     ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-17 11:31       ` Jack Churchill
1992-05-18 12:37       ` James L Walker
1992-05-18 12:59     ` Steve Simmons
1992-05-18 20:32     ` Tom Newark
1992-05-21 15:23     ` Matt Thomas
1992-05-22 11:17       ` dominique dierick 7548
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox