Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: howmany -- What the F**k ? Date: Fri, 20 Nov 2015 03:27:11 -0800 Organization: None to speak of Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="15833"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mDncqNoAr2dL8yINl8IBf" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:H5j166oIeMLQW8NGIk2ZkT0jmso= sha1:5BR1iDUg0zii/oi2ncZkf47ZJ4U= Xref: csiph.com comp.lang.c:76620 James Dow Allen writes: > I run gcc under cygwin and recently discovered something that made me > furious^H^H^H^H^H^H^H^H^H^H^H annoyed me a little. > > I named a function howmany(). Not __howmany() or HoWmAnY() or > ___SYS__howmanY() or whatever the reserving rules prohibit, just > howmany(). > > Of course I got a weird syntax error and immediately guessed what was > wrong. I changed the function name to howmany_and_fuk_you_too(), and it > worked. But I still took the time to track it down. Note that one can > imagine situations where debugging would have been harder. > > sys/types.h has > #define howmany(x,y) (((x)+((y)-1))/(y)) Reported: https://cygwin.com/ml/cygwin/2015-11/msg00293.html [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"