LEFT | RIGHT |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include <u.h> | 5 #include <u.h> |
6 #include <libc.h> | 6 #include <libc.h> |
7 #include <bio.h> | 7 #include <bio.h> |
8 | 8 |
9 #undef OAPPEND | 9 #undef OAPPEND |
10 | 10 |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 855 |
856 /* | 856 /* |
857 * dcl.c | 857 * dcl.c |
858 */ | 858 */ |
859 void addmethod(Sym *sf, Type *t, int local); | 859 void addmethod(Sym *sf, Type *t, int local); |
860 void addvar(Node *n, Type *t, int ctxt); | 860 void addvar(Node *n, Type *t, int ctxt); |
861 NodeList* checkarglist(NodeList *all, int input); | 861 NodeList* checkarglist(NodeList *all, int input); |
862 Node* colas(NodeList *left, NodeList *right); | 862 Node* colas(NodeList *left, NodeList *right); |
863 void colasdefn(NodeList *left, Node *defn); | 863 void colasdefn(NodeList *left, Node *defn); |
864 NodeList* constiter(NodeList *vl, Node *t, NodeList *cl); | 864 NodeList* constiter(NodeList *vl, Node *t, NodeList *cl); |
865 void dclchecks(void); | |
866 Node* dclname(Sym *s); | 865 Node* dclname(Sym *s); |
867 void declare(Node *n, int ctxt); | 866 void declare(Node *n, int ctxt); |
868 Type* dostruct(NodeList *l, int et); | 867 Type* dostruct(NodeList *l, int et); |
869 void dumpdcl(char *st); | 868 void dumpdcl(char *st); |
870 Node* embedded(Sym *s); | 869 Node* embedded(Sym *s); |
871 Node* fakethis(void); | 870 Node* fakethis(void); |
872 void funcbody(Node *n); | 871 void funcbody(Node *n); |
873 void funccompile(Node *n, int isclosure); | 872 void funccompile(Node *n, int isclosure); |
874 void funchdr(Node *n); | 873 void funchdr(Node *n); |
875 Type* functype(Node *this, NodeList *in, NodeList *out); | 874 Type* functype(Node *this, NodeList *in, NodeList *out); |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 int isfat(Type*); | 1245 int isfat(Type*); |
1247 Plist* newplist(void); | 1246 Plist* newplist(void); |
1248 Node* nodarg(Type*, int); | 1247 Node* nodarg(Type*, int); |
1249 void nopout(Prog*); | 1248 void nopout(Prog*); |
1250 void patch(Prog*, Prog*); | 1249 void patch(Prog*, Prog*); |
1251 void zfile(Biobuf *b, char *p, int n); | 1250 void zfile(Biobuf *b, char *p, int n); |
1252 void zhist(Biobuf *b, int line, vlong offset); | 1251 void zhist(Biobuf *b, int line, vlong offset); |
1253 void zname(Biobuf *b, Sym *s, int t); | 1252 void zname(Biobuf *b, Sym *s, int t); |
1254 void data(void); | 1253 void data(void); |
1255 void text(void); | 1254 void text(void); |
LEFT | RIGHT |