Exemplo n.º 1
0
        Typespec *new_typespec(TypespecKind kind, SrcPos pos)
        {
            var t = (Typespec *)ast_alloc(sizeof(Typespec));

            t->pos  = pos;
            t->kind = kind;
            return(t);
        }
Exemplo n.º 2
0
        Typespec new_typespec(TypespecKind kind, SrcPos pos)
        {
            var t = new Typespec();

            t.pos  = pos;
            t.kind = kind;
            return(t);
        }