summaryrefslogtreecommitdiff
path: root/src/cmd/gc/dcl.c
AgeCommit message (Collapse)AuthorFilesLines
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
2008-08-28get rid of static/dynamic array distinctionKen Thompson1-1/+1
R=r OCL=14634 CL=14634
2008-08-10allow name-type or pointer-to-named-type as method name (bug046)Ken Thompson1-6/+14
R=r DELTA=17 (11 added, 3 deleted, 3 changed) OCL=14048 CL=14048
2008-08-03add 'export' adjectives to externalKen Thompson1-3/+7
var, const and type declarations. R=r DELTA=49 (12 added, 28 deleted, 9 changed) OCL=13791 CL=13791
2008-08-03make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.Russ Cox1-1/+1
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
2008-07-20tweaks to initKen Thompson1-10/+12
rand using init SVN=128142
2008-07-19initKen Thompson1-20/+38
SVN=128128
2008-07-19init filename vs pkgnameKen Thompson1-4/+6
SVN=128117
2008-07-19initializationKen Thompson1-0/+102
SVN=128115
2008-07-17div bugKen Thompson1-3/+5
[]ptr bug proc reuses old g* structures differnt assignment of offsets to parameters SVN=127888
2008-07-16parameter in fn literalsKen Thompson1-15/+15
SVN=127695
2008-07-16parameter declartions in func literalsKen Thompson1-0/+26
SVN=127678
2008-07-08unique import/export namesKen Thompson1-6/+6
more on go statement SVN=126421
2008-07-08disambiguate typedefs in export blocks of .6 filesRob Pike1-3/+3
SVN=126366
2008-07-05random little bugsKen Thompson1-1/+1
SVN=126049
2008-07-05output args declaredKen Thompson1-18/+32
arguments in first block for diagnostics thomo return better syntax error recovery SVN=126045
2008-06-27fix a few spelling mistakes in messagesRob Pike1-4/+4
SVN=125108
2008-06-21redeclarations of variables in the same block.Ken Thompson1-18/+20
half-step toward multivalued map indexing SVN=124019
2008-06-15now checks for lvalue/rvalue context ofKen Thompson1-0/+8
expressions. start of generics for calling builtin functions start of map type 'any' demoted from reserved word to type SVN=122808
2008-06-13plan9 line numbers and line tableKen Thompson1-2/+3
SVN=122793
2008-06-11import/exportKen Thompson1-9/+21
SVN=122309
2008-06-04Add compiler source to new directory structureRob Pike1-0/+814
SVN=121164