summaryrefslogtreecommitdiff
path: root/src/cmd/gc/dcl.c
AgeCommit message (Collapse)AuthorFilesLines
2009-01-20* delete exportRuss Cox1-20/+15
* rename init functions R=ken OCL=23122 CL=23126
2009-01-16disallow other package's names in method callsRuss Cox1-0/+3
R=ken OCL=22999 CL=22999
2009-01-16disallow other package's names in struct field dot.Russ Cox1-0/+2
R=ken OCL=22996 CL=22996
2009-01-15don't crash on:Russ Cox1-1/+1
package main var x int type x struct { a int } R=ken OCL=22903 CL=22903
2009-01-15remove export name-list statement.Russ Cox1-6/+3
make package local the default. warn about name case not matching export keyword. R=ken OCL=22881 CL=22886
2009-01-096g cleanup suggested by ken.Russ Cox1-17/+0
remove TPTR wrapper around TMAP, TCHAN, TSTRING. R=ken OCL=22406 CL=22409
2009-01-08second pass on interface fixes and tests.Russ Cox1-10/+8
R=ken OCL=22370 CL=22372
2009-01-08many interface bug fixes.Russ Cox1-5/+19
also, after func g() (int, int) func f(int, int) allow f(g()) and func h() (int, int) { return g() } R=ken DELTA=356 (252 added, 26 deleted, 78 changed) OCL=22319 CL=22325
2008-12-18arraysKen Thompson1-5/+0
R=r OCL=21564 CL=21564
2008-12-11restrict declarations of type map/chan/stringKen Thompson1-2/+21
(they must be pointers) R=r OCL=21009 CL=21009
2008-12-11only generate non-trivial signatures in theRuss Cox1-6/+7
file in which they occur. avoids duplicate trampoline generation across multiple files. R=ken OCL=20976 CL=20980
2008-12-102 minor bugsKen Thompson1-6/+5
R=r OCL=20906 CL=20906
2008-12-09bug126Ken Thompson1-19/+20
R=r OCL=20879 CL=20879
2008-12-05range statementKen Thompson1-1/+1
R=r OCL=20667 CL=20667
2008-12-04const/var/iota declarations as discussedKen Thompson1-0/+83
R=r OCL=20506 CL=20506
2008-11-14package-local declarations using keyword "package".Russ Cox1-8/+8
R=r DELTA=129 (81 added, 0 deleted, 48 changed) OCL=19283 CL=19291
2008-11-11width fixes.Russ Cox1-4/+18
* check for uncomputed struct offsets * distinguish function structs from ordinary structs * make sure function structs are not examined in isolation R=ken OCL=19005 CL=19005
2008-11-06change minimum sethi/ullman number to 1Russ Cox1-2/+2
to distinguish not computed (0) vs trivial (1). add missing ullmancalc on function args. R=ken OCL=18711 CL=18711
2008-11-03rename various magic names.Russ Cox1-11/+30
sigi and sigt: sys·sigi_inter -> sigi·inter sys·sigt_int -> sigt·int Package·sigt_Type -> sigt·Package.Type local type T in file x.go T_x -> T·x second one T_x_1 -> T·x·1 method names M on T T_M -> T·M correctly handle local embedded types init functions are the only place left that use underscores R=ken OCL=18377 CL=18377
2008-10-30structure field annotation stringsRuss Cox1-0/+14
R=ken OCL=18176 CL=18176
2008-10-24fix method function type compare bug (again)Russ Cox1-5/+10
R=ken OCL=17819 CL=17819
2008-10-24Automated g4 rollback of changelist 17815.Russ Cox1-5/+2
*** Reason for rollback *** now it's comparing function parameter names... *** Original change description *** fix method function type compare bug R=ken OCL=17816 CL=17816
2008-10-24fix method function type compare bugRuss Cox1-2/+5
R=ken OCL=17815 CL=17815
2008-10-22do not use fake names on anonymous function return valuesRuss Cox1-5/+1
R=ken OCL=17679 CL=17679
2008-10-21elided dotsKen Thompson1-4/+4
R=r OCL=17601 CL=17601
2008-10-21changes to imbeddedKen Thompson1-1/+17
R=r OCL=17572 CL=17572
2008-10-216g:Russ Cox1-1/+16
* print int as int, not P.int * write type info for non-exported types in its own new section. ar: skip over rest of line after $$ R=ken OCL=17568 CL=17568
2008-10-20fix compiler warningsRuss Cox1-1/+1
R=r DELTA=44 (10 added, 9 deleted, 25 changed) OCL=17502 CL=17502
2008-10-19unnamed substructures - not completeKen Thompson1-0/+1
R=r OCL=17437 CL=17437
2008-10-17cleanup - delete unneeded vargen++Russ Cox1-2/+0
R=ken OCL=17394 CL=17394
2008-10-16diagnose various conversion problemsRuss Cox1-0/+7
R=ken OCL=17320 CL=17320
2008-10-13stack allocation for the init functionKen Thompson1-1/+1
R=r OCL=17063 CL=17063
2008-10-07remove support for *T as an implicit declaration of TRuss Cox1-17/+3
R=ken OCL=16651 CL=16653
2008-10-07fix bug:Russ Cox1-1/+4
type T struct export type T struct { a int } was not exporting T R=ken OCL=16650 CL=16650
2008-10-06change type names to go live at the name, so thatRuss Cox1-109/+209
type T struct { next *T } and type T *struct { next T } are valid without needing forward declarations. add "type T struct" syntax for forward struct declarations. add "type T interface" syntax, but commented out (need to fix semicolons first) R=ken DELTA=452 (259 added, 115 deleted, 78 changed) OCL=16580 CL=16584
2008-10-04add method test & fix method name bugsRuss Cox1-10/+3
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488
2008-10-03silence gcc warningsRuss Cox1-4/+1
R=ken OCL=16449 CL=16466
2008-10-03new import/export formatRuss Cox1-66/+14
package flag export type flag.Flag struct { name flag.string; usage flag.string; \ value flag.Value; next *flag.Flag } type flag.string string type flag.Value interface { AsBool () (? *flag.BoolValue); \ AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \ IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \ Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) } type flag.BoolValue struct { val flag.bool; p *flag.bool } type flag.IntValue struct { val flag.int64; p *flag.int64 } type flag.StringValue struct { val flag.string; p *flag.string } type flag.bool bool func (e *flag.StringValue) AsBool () (? *flag.BoolValue) func (e *flag.StringValue) AsInt () (? *flag.IntValue) ... the \ continuations are for this message, not real. changed delimiter for import from (( )) to $$ $$. replaced mksys.bash with mksys.c changed sys.go to use leading export, fake package name is now SYS not foop don't always require ; on forward func decls R=ken,r DELTA=1827 (446 added, 1083 deleted, 298 changed) OCL=16433 CL=16463
2008-10-02more on arbitrary receiver typesKen Thompson1-30/+8
this CL passes the tests, but should be considered unstable R=r OCL=16390 CL=16390
2008-09-30cleanup exportRuss Cox1-1/+1
R=ken OCL=16219 CL=16219
2008-09-30fix export bug for /usr/r/rpcRuss Cox1-1/+2
R=ken OCL=16218 CL=16218
2008-09-30fix up arg list parsing to handle any names:Russ Cox1-1/+85
type t1 int; type t2 int; type t3 int; func f1(t1, t2, t3); func f2(t1, t2, t3 bool); func f3(t1, t2, x t3); func f4(*t2, x t3); // error: cannot mix func f5(t1, *t3); func (x *t1) f6(y *[]t2) (t1, *t3); func f7() (int, *string); func f8(t1, *t2, x t3); // error: cannot mix func f9() (x int, *string); func f10(*t2, t3); R=ken OCL=16202 CL=16210
2008-09-28toward methods on any typeKen Thompson1-1/+10
R=r OCL=16068 CL=16068
2008-09-27bug in argument passingKen Thompson1-6/+8
R=r OCL=16044 CL=16044
2008-09-26bug with array boundsKen Thompson1-0/+1
R=r OCL=16021 CL=16023
2008-09-15redeclaring methodsKen Thompson1-0/+1
R=r OCL=15375 CL=15375
2008-09-14methods on any typeKen Thompson1-45/+55
-- but only *struct tested R=r OCL=15326 CL=15326
2008-09-13Automated g4 rollback of changelist 15312.Ken Thompson1-56/+44
*** Reason for rollback *** <enter reason for rollback> *** Original change description *** correct signal name thru package rename R=r OCL=15313 CL=15313
2008-09-13correct signal name thru package renameKen Thompson1-44/+56
R=r OCL=15312 CL=15312
2008-09-10bug generating duplicate interface signaturesKen Thompson1-0/+1
R=r OCL=15119 CL=15119