Re: new module 'stdalign'

2011-07-28 Thread Sam Steingold
Hi Bruno, On Thu, Jul 28, 2011 at 7:47 PM, Bruno Haible wrote: > For alignof, whether you want to use gnulib's depends on what you > need - the necessary alignment and the optimal alignment. so, what does clisp need? -- Sam Steingold

Re: new module 'stdalign'

2011-07-28 Thread Bruno Haible
Hi Sam, > 1. There is already alignof module - is this a replacement? It is not exactly a replacement, because there are two possible notions of alignof - the necessary alignment and the optimal alignment [1]-, and while alignof.h favors the optimal alignment, I think that favors the necessary a

Re: new module 'stdalign'

2011-07-27 Thread Sam Steingold
Hi Bruno, 1. There is already alignof module - is this a replacement? 2. alignof.h uses offsetof macro - where is it defined? 3. clisp/src/lispbibl.d defines offsetof, offsetofa, alignof - which gnulib modules should they be imported from? (or should I just leave them defined in clisp?) -- S

Re: new module 'stdalign'

2011-07-12 Thread Paul Eggert
Thanks for looking into that. Some thoughts. This module will have problems with the gnulib model, since it "feels" like a *.in.h module, and yet it can't be written to support arbitrary compilers like the other *.in.h modules can. So it won't be suitable for applications that need to install he

new module 'stdalign'

2011-07-12 Thread Bruno Haible
Hi, ISO C1X and C++0X also specify a header file . Here's a proposal. For the moment, no system and no GCC version supports this header natively. lib/stdalign.h /* Determine alignment of types. Copyright (C) 2011 Free Software