Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Preprocessor Overheads Date: Sat, 04 Feb 2017 13:18:39 -0800 Organization: None to speak of Lines: 23 Message-ID: References: <6f4a3c6f-a81e-4b75-9be6-67e07f6584af@googlegroups.com> <7e401214-44c8-4003-850c-857c3e2b8c03@googlegroups.com> <846577bb-c24e-43bc-89b3-3028b9007355@googlegroups.com> <9d311cd1-7437-49cb-b308-f9ba2dff4808@googlegroups.com> <507fd86a-1749-4030-8a39-62f03858b5e1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="70b944d02c574e6a9bb8f45ae4c7cdf9"; logging-data="29054"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ztRK4xPpPIPfNs+HKTCbv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:qEMlbN82anJoFui/6xFgCqgxfEw= sha1:Dwy72JxOKPb9HQfda+UtX2++xKA= Xref: csiph.com comp.lang.c:103168 supercat@casperkitty.com writes: > On Friday, February 3, 2017 at 8:33:56 PM UTC-6, Keith Thompson wrote: >> You're pointing out that the void* pointers passed from qsort() to the >> comparator function have to be computed from the array base pointer by >> adding an offset. > > You were adamant that the only operation supported with void pointers was > round-tripping to the original type. I was hoping to nudge you in the > direction of recognizing that the qsort() function would obviously have to > do something that would require something other than a round-trip cast to > the original type. I see. For future reference, if you have a point to make, just make it. If I've missed something (and it happens), it's a lot easier just to point it out rather than trying to nudge me in the right direction. [...] -- 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"