Hi,

I see that CBLAS_INDEX is defined in cblas.h using the preprocessor:

    /*
     * Enumerated and derived types
     */
    #define CBLAS_INDEX size_t  /* this may vary between platforms */

Would you mind changing that #define to a typedef? I've just run
into a small problem writing a language binding (to Haskell) that
I believe others may run into as well. I use an actual C program to
generate those bindings, and it contains macros working like that:

    #define make_equivalent_type c_type \
       do_lots_of_stuff...

    make_equivalent_type (CBLAS_INDEX)

This macro writes code that checks that type size, and also use
its name as a string to be used to actually write bindings files.
But since it's defined with the preprocessor, the type ended up
beeing considered a redefinition of size_t.

If there's no problem with the typedef, maybe it could help
prevent others from equivalent problems.

Thanks for your attention,

Maurício

_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to