summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-10-14move regexp to libRob Pike3-0/+947
next cl will update names and add to build R=rsc DELTA=1876 (938 added, 938 deleted, 0 changed) OCL=17149 CL=17166
2008-10-14simplify comma code per ken's suggestionRuss Cox1-10/+2
R=ken OCL=17164 CL=17164
2008-10-14allow trailing comma in braced initialized listRuss Cox1-3/+28
R=ken OCL=17141 CL=17143
2008-10-14delete hack for interface equality now that it supported by the 6g compilerRob Pike3-21/+0
R=rsc DELTA=21 (0 added, 21 deleted, 0 changed) OCL=17123 CL=17136
2008-10-14interface equality (strings specifically)Ken Thompson2-12/+11
R=r OCL=17134 CL=17134
2008-10-14interface equalityKen Thompson5-1/+77
R=r OCL=17116 CL=17118
2008-10-14bug with struct-type { 1 }Ken Thompson1-0/+1
R=r OCL=17096 CL=17096
2008-10-13stack allocation for the init functionKen Thompson3-4/+10
R=r OCL=17063 CL=17063
2008-10-10handle zeroed interface in ifaceI2IRuss Cox1-8/+9
R=r OCL=16938 CL=16938
2008-10-10until 6g implements it, warn about using int in interface.Russ Cox1-0/+4
R=ken OCL=16935 CL=16935
2008-10-10add sys.BUG_intereq to compare interfaces for equalityRuss Cox3-0/+20
R=r OCL=16929 CL=16929
2008-10-09Adding Mkdir.Cary Hull3-0/+21
R=rsc APPROVED=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=16794 CL=16803
2008-10-08add empty var ( ), type ( ), const ( ) factoringsRuss Cox1-0/+13
suggested by rob (could make programs generating go easier to write). R=ken DELTA=13 (13 added, 0 deleted, 0 changed) OCL=16766 CL=16766
2008-10-08split all.bash into make.bash and run.bashRuss Cox2-37/+39
R=r OCL=16720 CL=16728
2008-10-08add http to lib buildRuss Cox1-1/+1
R=r OCL=16721 CL=16727
2008-10-08check $GOROOT before diving into buildRuss Cox1-0/+6
R=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=16726 CL=16726
2008-10-08Fixes breakage caused by semicolon restriction.Cary Hull6-46/+50
R=rsc APPROVED=rsc DELTA=50 (4 added, 0 deleted, 46 changed) OCL=16707 CL=16725
2008-10-08more interface checks:Russ Cox3-6/+19
- pointer to interface cannot have methods - record type names for better runtime error R=r,ken DELTA=85 (80 added, 0 deleted, 5 changed) OCL=16658 CL=16722
2008-10-07Unterminated declaration breaks build.Cary Hull1-1/+1
R=rsc APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=16688 CL=16690
2008-10-07remove support for *T as an implicit declaration of TRuss Cox2-25/+3
R=ken OCL=16651 CL=16653
2008-10-07remove uses of *T as an implicit forward declaration of TRuss Cox1-0/+6
R=gri,r OCL=16648 CL=16652
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-07implement new semicolon rules:Russ Cox1-136/+146
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. now that semicolons are in, uncomment forward declaration of interfaces R=ken DELTA=285 (124 added, 114 deleted, 47 changed) OCL=16638 CL=16646
2008-10-07update code to follow new semicolon rules:Russ Cox22-354/+354
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-10-07sys.stringtorune doesn't need a length parameter.Rob Pike4-6/+6
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=16600 CL=16630
2008-10-06change type names to go live at the name, so thatRuss Cox9-140/+290
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-06silence gcc warning - initialize two variablesRuss Cox1-0/+3
R=ken OCL=16550 CL=16550
2008-10-04bug060Ken Thompson1-0/+2
R=r OCL=16497 CL=16497
2008-10-04bug 026Ken Thompson7-148/+35
R=r OCL=16494 CL=16494
2008-10-04change *a1++; to plain a1++Russ Cox1-2/+2
R=ken DELTA=2 (0 added, 0 deleted, 2 changed) OCL=16489 CL=16489
2008-10-04add method test & fix method name bugsRuss Cox3-17/+21
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488
2008-10-03silence gcc warningsRuss Cox11-21/+13
R=ken OCL=16449 CL=16466
2008-10-03new import/export formatRuss Cox12-1325/+686
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-03interfaces of all typesKen Thompson6-80/+80
R=r OCL=16462 CL=16462
2008-10-03allow prof to launch the processRob Pike1-2/+32
R=rsc DELTA=32 (30 added, 0 deleted, 2 changed) OCL=16440 CL=16445
2008-10-02more on arbitrary receiver typesKen Thompson6-53/+110
this CL passes the tests, but should be considered unstable R=r OCL=16390 CL=16390
2008-10-02names now println/paniclnKen Thompson2-4/+5
bug fix in named-return R=r OCL=16377 CL=16377
2008-10-02added printn and panicnKen Thompson8-287/+351
prints that insert spaces and new line R=r OCL=16370 CL=16370
2008-10-02add values to some "return" statements.Russ Cox1-16/+9
delete unused variables R=ken OCL=16360 CL=16360
2008-10-01clear output parametersKen Thompson1-0/+12
R=r OCL=16345 CL=16345
2008-10-01initialization ofKen Thompson1-4/+12
var a,b int; R=r OCL=16318 CL=16318
2008-10-01add a script to build *everything*Russ Cox1-0/+44
R=r DELTA=41 (41 added, 0 deleted, 0 changed) OCL=16290 CL=16293
2008-09-30remove ( ) around mismatch type prints,Russ Cox1-2/+2
so that they don't look like functions. R=ken OCL=16244 CL=16244
2008-09-30pretty types; use 6g -t to disableRuss Cox1-5/+102
R=ken OCL=16240 CL=16242
2008-09-30i can import "net" in package netRuss Cox1-18/+18
and still have a variable named "net" R=r DELTA=18 (0 added, 0 deleted, 18 changed) OCL=16220 CL=16222
2008-09-30for loops in hashmap.Russ Cox1-36/+28
a few missing FLUSH. R=ken OCL=16221 CL=16221
2008-09-30cleanup exportRuss Cox2-9/+7
R=ken OCL=16219 CL=16219
2008-09-30fix export bug for /usr/r/rpcRuss Cox2-9/+15
R=ken OCL=16218 CL=16218
2008-09-30fix up arg list parsing to handle any names:Russ Cox4-99/+197
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-29minor bugsKen Thompson4-23/+22
R=r OCL=16163 CL=16163