Path: utzoo!utgpu!attcan!uunet!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Unnecessary Macros (was Re: Unnecessary Parenthesis) Message-ID: <1674@ficc.uu.net> Date: 30 Sep 88 22:39:27 GMT References: <2089@ssc-vax.UUCP> <441@kaon.uchicago.edu> <1401@devsys.oakhill.UUCP> <8813@ihlpb.ATT.COM> Organization: SCADA Lines: 20 In article <8813@ihlpb.ATT.COM>, nevin1@ihlpb.ATT.COM (Liber) writes: > What is really wanted is to be able to declare macros so that it would have > the same semantics as an inlined function would (somewhat like C++ > inlining, except that type checking would not be done on the arguments. I don't know how C++ inlining works but one of the long-standing things on my wishlist is: inline putc(c, fp) char c; FILE *fp; { if(--fp->_cnt >= 0) *fp->ptr++ = c; else _flsbuf(c, fp); } -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net