Go to the previous, next section.

Examples

Example: Defining a Simple Array

        volatile char * foo[10][100];
        type_node * tn = block::parse_type("volatile char * [10][100]");
        block foo(block::new_sym(tn, "foo");

Example: Defining Types for Functions and Structures

        struct X {
                int I;
                double J;
                char * K
        };
        const struct X update_x(int, const struct X, double);

        type_node * X;
        type_node * update_x;
        X = block::parse_type("struct { int I; double J; char * K}");
        update_x = block::parse_type("const %% (int; const %%, double)",
                                     X, X);

Go to the previous, next section.