Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dspo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!hao!seismo!cmcl2!lanl-a!dspo!tallman From: tallman@dspo.UUCP Newsgroups: net.lang.c Subject: Parameters with storage class typedef Message-ID: <113@dspo.UUCP> Date: Wed, 11-Jul-84 19:55:02 EDT Article-I.D.: dspo.113 Posted: Wed Jul 11 19:55:02 1984 Date-Received: Sat, 14-Jul-84 01:28:52 EDT Organization: Los Alamos Natl. Labs - DSPO; Los Alamos, NM Lines: 17 The portable C compiler appears to allow a storage class of typedef on function parameters, e.g. : f(x) typedef int x; { x c; c = 20; } This gives no error in cc or lint. Of course, x cannot be used in expressions within the function. This must be a bug, since K+R says that the only storage class allowed on a parameter is register. -- Dave Tallman - ucbvax!lbl-csam!lanl-a!dspo!tallman or dspo!tallman@LANL Los Alamos National Labs - Data Systems Project Office (DSPO) Los Alamos, New Mexico - (505) 667-8495