1. 18 Apr, 2009 2 commits
    • Ken Thompson's avatar
      mixed old/new declaration · 34b6f642
      Ken Thompson authored
      exact spec:
      a) must be a multi-assignment w :=
      b) a proper subset of the lhs
         can be declared in same block
         with the same type with no
         "redeclaration" error
      
      R=r
      OCL=27610
      CL=27610
      34b6f642
    • Rob Pike's avatar
      add -P pkgdir option to 6l to have it look first in pkgdir for a package. · bfd5ede7
      Rob Pike authored
      this allows gotest to find the locally built package when doing
      	make
      	gotest
      without this option, one would have to say
      	make install
      	gotest
      which kinda defeats the purpose
      
      based on discussions with rsc.
      
      R=ken,rsc
      DELTA=12  (10 added, 1 deleted, 1 changed)
      OCL=27606
      CL=27606
      bfd5ede7
  2. 17 Apr, 2009 10 commits
    • Rob Pike's avatar
      Step 2 of the Big Error Shift. · 45ed7297
      Rob Pike authored
      Change the representation of errors in "os" to be cleaner.
      (But they are not really representative of the power of the new scheme.)
      Step 3 will be to remove all references to os.NewError.
      Step 4 will be to delete the second half of lib/os/error.go.
      
      R=rsc
      OCL=27587
      CL=27587
      45ed7297
    • Rob Pike's avatar
      Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors. · aaf63f8d
      Rob Pike authored
      lib/template updated to use new setup; its clients also updated.
      
      Step 2 will make os's error support internally much cleaner.
      
      R=rsc
      OCL=27586
      CL=27586
      aaf63f8d
    • Russ Cox's avatar
      make string(array) take []byte only (and thus *[10]byte but not [10]byte) · 3ea8d854
      Russ Cox authored
      R=ken
      OCL=27581
      CL=27585
      3ea8d854
    • Russ Cox's avatar
      make string take []byte only, so have to use *[10]byte to convert · e2bf2271
      Russ Cox authored
      R=r
      DELTA=4  (0 added, 0 deleted, 4 changed)
      OCL=27578
      CL=27584
      e2bf2271
    • Russ Cox's avatar
      regenerate makefile with installed gobuild · ea12ed4f
      Russ Cox authored
      R=r
      DELTA=23  (8 added, 0 deleted, 15 changed)
      OCL=27577
      CL=27583
      ea12ed4f
    • Russ Cox's avatar
      spec edits for array slice change · bcdc247f
      Russ Cox authored
      R=r
      DELTA=6  (0 added, 2 deleted, 4 changed)
      OCL=27532
      CL=27582
      bcdc247f
    • Rob Pike's avatar
      fix linux build · 3a8ff823
      Rob Pike authored
      R=rsc
      OCL=27579
      CL=27579
      3a8ff823
    • Russ Cox's avatar
      Convert go tree to hierarchical pkg directory: · 1f6463f8
      Russ Cox authored
      	import (
      		"vector" -> "container/vector"
      		"ast" -> "go/ast"
      		"sha1" -> "hash/sha1"
      		etc.
      	)
      
      and update Makefiles.  Because I did the conversion
      semi-automatically, I sorted all the import blocks
      as a post-processing.  Some files have therefore
      changed that didn't strictly need to.
      
      Rename local packages to lower case.
      The upper/lower distinction doesn't work on OS X
      and complicates the "single-package directories
      with the same package name as directory name"
      heuristic used by gobuild and godoc to create
      the correlation between source and binary locations.
      Now that we have a plan to avoid globally unique
      names, the upper/lower is unnecessary.
      
      The renamings will cause trouble for a few users,
      but so will the change in import paths.
      This way, the two maintenance fixes are rolled into
      one inconvenience.
      
      R=r
      OCL=27573
      CL=27575
      1f6463f8
    • Russ Cox's avatar
      build packages in obj/ subdirectory that mimics $GOROOT/pkg. · 0f153ec6
      Russ Cox authored
      for example, if building in src/lib/container,
      objects go in obj/container/, so that 6g -Iobj
      will find "container/vector".
      
      install packages in hierarchy in $GOROOT.
      
      this change only updates gobuild.
      another change will have to update all
      the sources to refer to "container/vector" etc
      and regenerate all the Makefiles.
      
      there are some pretty lame functions here
      (e.g., Mkdir, Remove, the Getenv("PWD"))
      but i will implement better ones in another CL.
      
      R=r
      DELTA=117  (99 added, 2 deleted, 16 changed)
      OCL=27550
      CL=27574
      0f153ec6
    • Rob Pike's avatar
      document template · 3761da2d
      Rob Pike authored
      R=rsc
      DELTA=92  (73 added, 0 deleted, 19 changed)
      OCL=27566
      CL=27572
      3761da2d
  3. 16 Apr, 2009 16 commits
  4. 15 Apr, 2009 10 commits
  5. 14 Apr, 2009 2 commits