Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxb!mhuxr!ulysses!allegra!mit-eddie!godot!harvard!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: sizeof Message-ID: <419@rlgvax.UUCP> Date: Tue, 5-Feb-85 01:14:56 EST Article-I.D.: rlgvax.419 Posted: Tue Feb 5 01:14:56 1985 Date-Received: Thu, 7-Feb-85 02:34:15 EST References: <8006@brl-tgr.ARPA> <363@harvard.ARPA> Organization: CCI Office Systems Group, Reston, VA Lines: 20 > Of course, you can always work around sizeof(char *)!=sizeof(int *) > (or sizeof(char *)!=sizeof(int)), but often it is a hassle, and > it makes porting old (4.2BSD :-) source code very difficult. Changing the implementation of, say, "getpwent" and the password file can make porting programs that rummage through the password file directly difficult. This is NOT an argument against changing the implementation. It is an argument against writing such programs in the future, and for dedicating time to clean up those fossils if you make such a change. The same applies to implementations of C on machines that don't encourage the same sorts of laxity as "reasonable" machines do. If expedience is VERY important, you might consider doing the wrong thing; however, I think you're better off biting the bullet and fixing the code (and reporting fixes to AT&T, UCB, or whoever wrote it - maybe they'll take the hint). Think of it as doing a good deed for the next person who has to move that software to a machine which isn't a warmed-over PDP-11. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy