(defn)
return struct
Register a struct definition globally

    >>> define_struct('struct abcd {int x; int y;}')
Register a struct definition globally
Register a struct definition globally
def define_struct(defn):
    """
    Register a struct definition globally

    >>> define_struct('struct abcd {int x; int y;}')
    """
    struct = parse_type(defn)
    ALL_TYPES[struct.name] = struct
    ALL_TYPES['struct ' + struct.name] = struct
    return struct
def define_struct ( defn ) : struct = parse_type ( defn ) ALL_TYPES [ struct . name ] = struct ALL_TYPES [ 'struct ' + struct . name ] = struct return struct