Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site noscvax.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!noscvax!sloane From: sloane@noscvax.UUCP Newsgroups: net.lang.c Subject: Re: #if sizeof() Message-ID: <533@noscvax.UUCP> Date: Mon, 16-Jul-84 11:13:22 EDT Article-I.D.: noscvax.533 Posted: Mon Jul 16 11:13:22 1984 Date-Received: Tue, 17-Jul-84 06:34:40 EDT References: <1836@sri-arpa.UUCP>, <2104@rlgvax.UUCP> Organization: Naval Ocean Systems Center Lines: 24 The #if sizeof() expression could be added to cpp NOT by including a large part of the C compiler, but by having a table built by the installer at installation time. Not a true sizeof(), as it would only know about standard C types, like ints, unsigned and signed chars, etc, but for portability of code this would be nice... Granted, this means that the installer will have to build the table (once) manually, but if the system administrator doesn't know the sizeof's, who else will? In *partial* jest - * **************************************************************** * * Gary K. Sloane/Computer Sciences Corporation/San Diego, CA 92110 * * DDD: (619) 225-8401 * * MILNET: sloane@nosc * * UUCP: [ihnp4,akgua,decvax,dcdwest,ucbvax]!sdcsvax!noscvax!sloane * * **************************************************************** * -- * **************************************************************** * * Gary K. Sloane/Computer Sciences Corporation/San Diego, CA 92110 * * DDD: (619) 225-8401 * * MILNET: sloane@nosc * * UUCP: [ihnp4,akgua,decvax,dcdwest,ucbvax]!sdcsvax!noscvax!sloane * * **************************************************************** *