Help for this page

Select Code to Download


  1. or download this
    #define CFG_USED(type, name, stuff) \
            { .compFunc = compare_ ## type; /* */ },
    ...
    #else
    #define CFG_USE_int CFG_UNUSED
    #endif
    
  2. or download this
    /tmp>cat testing.c
    #include <stdio.h>
    ...
    
    /tmp>
    
  3. or download this
    static foo compare_foo(void *a, void *b) { return _inline_cmpfunc_foo(
    +a, b); }
    
  4. or download this
    #define CFG_ADD(TYPE,NAME,STUFF) \
        static int compare_ ## NAME(const void * a, const void * b) \
        { \
            return _inline_cmpfunc_ ## TYPE(a,b); \
        }