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 "go.h" | 7 #include "go.h" |
8 #include "y.tab.h" | 8 #include "y.tab.h" |
9 | 9 |
10 static void dumpsym(Sym*); | 10 static void dumpsym(Sym*); |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 print("import var %S %lT\n", s, t); | 347 print("import var %S %lT\n", s, t); |
348 } | 348 } |
349 | 349 |
350 void | 350 void |
351 importtype(Type *pt, Type *t) | 351 importtype(Type *pt, Type *t) |
352 { | 352 { |
353 if(pt != T && t != T) | 353 if(pt != T && t != T) |
354 typedcl2(pt, t); | 354 typedcl2(pt, t); |
355 | 355 |
356 if(debug['E']) | 356 if(debug['E']) |
357 » » print("import type %T %T\n", pt, t); | 357 » » print("import type %T %lT\n", pt, t); |
358 } | 358 } |
359 | 359 |
360 void | 360 void |
361 importmethod(Sym *s, Type *t) | 361 importmethod(Sym *s, Type *t) |
362 { | 362 { |
363 checkwidth(t); | 363 checkwidth(t); |
364 addmethod(s, t, 0); | 364 addmethod(s, t, 0); |
365 } | 365 } |
366 | 366 |
LEFT | RIGHT |