C: Using two-dimensional arrays with function pointers
I need to use a number of functions pointers with an additional boolean flag.
I've tried the following, but it will not compile.
Can anyone help?

    int handler1(int mix) {
        ...
        return 0;
    }
    int handler2(int mix) {
        ...
        return 0;
    }
    int handler3(int mix) {
        ...
        return 0;
    }

    typedef int (*my_handler)(int mix);

    typedef struct {
        my_handler handler,
        bool mix_handler,
    } handle_pair;

    static handler_pair handlers[] = {
        { handler1, FALSE },
        { handler2, TRUE },
        { handler3, FALSE },
        { NULL, FALSE },
    };


C: Using two-dimensional arrays with function pointers
===

I need to use a number of functions pointers with an additional boolean flag.
I've tried the following, but it will not compile.
Can anyone help?

    int handler1(int mix) {
        ...
        return 0;
    }
    int handler2(int mix) {
        ...
        return 0;
    }
    int handler3(int mix) {
        ...
        return 0;
    }

    typedef int (*my_handler)(int mix);

    typedef struct {
        my_handler handler,
        bool mix_handler,
    } handle_pair;

    static handler_pair handlers[] = {
        { handler1, FALSE },
        { handler2, TRUE },
        { handler3, FALSE },
        { NULL, FALSE },
    };

