1. 07 Apr, 2009 2 commits
  2. 06 Apr, 2009 1 commit
  3. 04 Apr, 2009 1 commit
    • Russ Cox's avatar
      fix both of anton's bugs: · 907cb4f1
      Russ Cox authored
      * make([100]int) was being compiled to
      	make([]int), kind of.
      * []this = [100]that was working for any this, that.
      
      turned up a typo in pipe_test.go
      
      R=ken
      OCL=27081
      CL=27081
      907cb4f1
  4. 03 Apr, 2009 14 commits
    • Robert Griesemer's avatar
      Daily snapshot. · 2a9f1ee2
      Robert Griesemer authored
      - godoc now supports the following url prefixes:
        /doc/ for package documentation
        /file/ for files (directories, html, and .go files)
        /spec for the spec
        /mem for the memory model
      - formatting of comments has been fixed
      - tons of minor cleanups (still more to do)
      
      Still missing:
      - pretty printing of source is not as pretty as it used to be
      (still a relict from the massive AST cleanup which has't quite made it's way everywhere)
      - documentation entries should be sorted
      - comments in code is not printed or not properly printed
      
      TBR=r
      DELTA=416  (182 added, 100 deleted, 134 changed)
      OCL=27078
      CL=27078
      2a9f1ee2
    • Robert Griesemer's avatar
      change in negation · 461fb393
      Robert Griesemer authored
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=27061
      CL=27061
      461fb393
    • Rob Pike's avatar
      an attempt at simpler yet more correct semicolon rules. · 736a1aeb
      Rob Pike authored
      (i'd be happy to drop the paren one as well, reducing it to one case)
      
      DELTA=4  (0 added, 3 deleted, 1 changed)
      OCL=27058
      CL=27060
      736a1aeb
    • Robert Griesemer's avatar
      require ";" separator after function literals · 27d1159a
      Robert Griesemer authored
      R=rsc
      DELTA=1  (1 added, 0 deleted, 0 changed)
      OCL=27057
      CL=27059
      27d1159a
    • Robert Griesemer's avatar
      - don't show methods of non-exported types · bfea141c
      Robert Griesemer authored
      (even if the methods are exported)
      
      R=rsc
      OCL=27056
      CL=27056
      bfea141c
    • Robert Griesemer's avatar
      - renamed hasPostfix -> hasSuffix · 184c623e
      Robert Griesemer authored
      - fixed printing of function literals (require separating ";")
      
      R=rsc
      OCL=27055
      CL=27055
      184c623e
    • Robert Griesemer's avatar
      - moved functions before types in doc output (per rsc) · 91238c5b
      Robert Griesemer authored
      - use /src and /doc prefix in URL to distinguish output type (per rsc)
      - fixed a bug in an internal string function
      - ignore files ending in _test.go (consider them test files)
      
      R=rsc
      OCL=27054
      CL=27054
      91238c5b
    • Russ Cox's avatar
      special case check for this situation · 39436f2a
      Russ Cox authored
      	; cat >http.go
      	package main
      	import "http"  // intended the library, not this file
      	^D
      	; 6g http.go
      	; 6g http.go
      	http.go:4: export/package mismatch: init
      	;
      
      new error:
      
      	http.6:7 http.go:3: cannot import package main
      
      R=ken
      OCL=27053
      CL=27053
      39436f2a
    • Russ Cox's avatar
      type n t; · 07687705
      Russ Cox authored
      was copying a bit too much about t into n,
      like whether the signature was queued to be printed.
      (bug reported by anton)
      
      was also editing t, meaning you could do
      	type T int;
      	func (p int) Meth() { }
      
      both fixed.
      
      R=ken
      OCL=27052
      CL=27052
      07687705
    • Russ Cox's avatar
      use _f007·filename for func literals. · 416b2754
      Russ Cox authored
      this avoids problems people have run into with
      multiple closures in the same package.
      
      when preparing filename, only cut off .go, not .anything.
      this fixes a bug tgs ran into with foo.pb.go and foo.go
      in the same package.
      
      also turn bad identifier chars from filename into
      underscores: a-b.pb.go => a_b_pb
      
      R=ken
      OCL=27050
      CL=27050
      416b2754
    • Robert Griesemer's avatar
      Daily snapshot: · 9ef3d8e2
      Robert Griesemer authored
      first round of cleanups:
      - removed extra .html templates (reduced to one)
      - removed dependencies on various local files
      - minor fixes throughout
      
      Basic docserver is now operational: Automatically finds all
      (multi-file) packages under a root and serves either file
      or package documentation.
      
      R=r
      OCL=27049
      CL=27049
      9ef3d8e2
    • Ken Thompson's avatar
      compiler falut for forgetting · 9efd6b8a
      Ken Thompson authored
      the assignment on a type switch
      
      R=r
      OCL=27048
      CL=27048
      9efd6b8a
    • Russ Cox's avatar
      use separate lex buf for better errors: · 58f5f4f1
      Russ Cox authored
      package main
      func main() { func(){}() + + }
      
      x.go:2: syntax error near _f001
      
      becomes
      
      x.go:2: syntax error near func
      
      R=ken
      OCL=27047
      CL=27047
      58f5f4f1
    • Russ Cox's avatar
      turn gc of unused data/code back on in loaders. · 8d8225d5
      Russ Cox authored
      turned it off while debugging 8 runtime problem,
      checked in the change accidentally.
      
      R=r
      DELTA=4  (0 added, 0 deleted, 4 changed)
      OCL=27040
      CL=27046
      8d8225d5
  5. 02 Apr, 2009 8 commits
  6. 01 Apr, 2009 7 commits
  7. 31 Mar, 2009 7 commits
    • Robert Griesemer's avatar
      daily snapshot: · 8f628f49
      Robert Griesemer authored
      - adjustments to match new ast/parser interface
      - removed printer.go; functionality now in astprinter.go and docprinter.go
        (more cleanups pending)
      - enabled new doc printing in gds
        (lots of fine tuning missing, but pieces falling into place; e.g. methods
        associated with types. Consts, Vars, to come. Collection of all files
        belonging to a package to come)
      
      R=r
      OCL=26970
      CL=26972
      8f628f49
    • Robert Griesemer's avatar
      1) Move parser.go into src/lib/go · 07513c25
      Robert Griesemer authored
         - minor adjustments as suggested by rsc
      2) Added parser_test fragment
      3) Renamed some types in AST.go per rsc request
      
      R=rsc
      DELTA=2053  (2027 added, 0 deleted, 26 changed)
      OCL=26963
      CL=26971
      07513c25
    • Russ Cox's avatar
      more 386 runtime: · 4702c0e5
      Russ Cox authored
      	remove use of _subv in vlrt.c
      	darwin/386/signal.c
      	darwin/386/*
      	linux/386/* (forgotten before)
      
      can run empty program on darwin/386 now.
      
      R=r
      DELTA=1140  (1021 added, 114 deleted, 5 changed)
      OCL=26942
      CL=26968
      4702c0e5
    • Russ Cox's avatar
      multiple bugs in bitfield handling · 42546f48
      Russ Cox authored
      R=r
      DELTA=6  (3 added, 0 deleted, 3 changed)
      OCL=26944
      CL=26967
      42546f48
    • Robert Griesemer's avatar
      - incorporation of suggestions by rsc · 3f42f442
      Robert Griesemer authored
      R=rsc
      OCL=26959
      CL=26959
      3f42f442
    • Russ Cox's avatar
      minimal 8g. can compile · dc5b4678
      Russ Cox authored
      	package main
      	func main() {
      	}
      
      and not much else.
      
      R=ken
      OCL=26943
      CL=26943
      dc5b4678
    • Russ Cox's avatar
      * move go-specific loader code · b87e3e8b
      Russ Cox authored
      into gc directory, where it gets included as ../gc/ldbody
      this is similar to the assemblers including ../cc/lexbody
      and ../cc/macbody.
      
      * hook go-specific loader code into 8l.
      
      * make current 8.out.h and 6.out.h backward compatible
      with plan 9's versions.  i had added some constants in
      the middle of enums and have now moved them to the end.
      this keeps us from invalidating old .8 and .6 files.
      not sure how much it really matters, but easy to do.
      
      R=r
      DELTA=1314  (667 added, 623 deleted, 24 changed)
      OCL=26938
      CL=26941
      b87e3e8b