1. 27 Apr, 2009 2 commits
  2. 26 Apr, 2009 1 commit
  3. 25 Apr, 2009 5 commits
  4. 24 Apr, 2009 5 commits
  5. 23 Apr, 2009 1 commit
  6. 22 Apr, 2009 11 commits
    • Rob Pike's avatar
      add {.tab} · 258a08ed
      Rob Pike authored
      fix a couple of comments
      
      TBR=rsc
      OCL=27716
      CL=27716
      258a08ed
    • Rob Pike's avatar
      allow godoc to match on regular expressions. · 9d70646f
      Rob Pike authored
      if the name contains a metacharacter, use regexp matching;
      otherwise require strict equality.
      
      now
      	godoc flag '.*Var'
      can give you all the FooVar functions.
      
      R=gri
      DELTA=19  (19 added, 0 deleted, 0 changed)
      OCL=27711
      CL=27713
      9d70646f
    • Rob Pike's avatar
      fix template. · 4b62e8d7
      Rob Pike authored
      .or works in .repeated so remove the comment.
      the bug was in the template: .section executes iff the field is non-empty.
      
      R=gri
      DELTA=13  (6 added, 7 deleted, 0 changed)
      OCL=27710
      CL=27712
      4b62e8d7
    • David Symonds's avatar
      Extend fixedbugs/bug143.go with function return values, · 2f8a2dc1
      David Symonds authored
      as a regression test for the fix made in s2/27706.
      
      R=r
      APPROVED=r
      DELTA=14  (13 added, 0 deleted, 1 changed)
      OCL=27707
      CL=27709
      2f8a2dc1
    • David Symonds's avatar
      Clean up some more code after bug143 was fixed. · d7240924
      David Symonds authored
      R=r
      APPROVED=r
      DELTA=6  (0 added, 5 deleted, 1 changed)
      OCL=27708
      CL=27708
      d7240924
    • Ken Thompson's avatar
      2 minor bugs. · 190a5408
      Ken Thompson authored
      lv context for some [] operations
      calling implicit(*map) before walk.
      
      R=r
      OCL=27706
      CL=27706
      190a5408
    • Ken Thompson's avatar
      bug in shift of longer operand · c18db5aa
      Ken Thompson authored
      by a shorter operand. the bits
      in the difference were not cheared.
      
      R=r
      OCL=27705
      CL=27705
      c18db5aa
    • Robert Griesemer's avatar
      remove lots of accumulated crud: · dc08ad4f
      Robert Griesemer authored
      - delete utility files which contained functionality that is now elsewhere
        (or saved the files away for now)
      - cleanup Makefile (remove unnecessary deps)
      - minor adjustments to godoc, fixed a couple of bugs
      - make pretty.go self-contained
      
      TBR=r
      DELTA=625  (81 added, 510 deleted, 34 changed)
      OCL=27700
      CL=27702
      dc08ad4f
    • David Symonds's avatar
      Bug 143 is fixed, so clean up some of exvar. · f8931c6c
      David Symonds authored
      R=r
      APPROVED=r
      DELTA=8  (3 added, 1 deleted, 4 changed)
      OCL=27699
      CL=27701
      f8931c6c
    • Rob Pike's avatar
      bug143 is fixed · 227fe8c5
      Rob Pike authored
      R=dsymonds
      DELTA=58  (26 added, 32 deleted, 0 changed)
      OCL=27698
      CL=27698
      227fe8c5
    • Ken Thompson's avatar
      supply default indirection to · b5e75621
      Ken Thompson authored
      map indexing - bug 143
      
      R=r
      OCL=27695
      CL=27695
      b5e75621
  7. 21 Apr, 2009 9 commits
  8. 20 Apr, 2009 6 commits
    • Robert Griesemer's avatar
      - book-keeping in the TODO section: · 40d6bb59
      Robert Griesemer authored
        - removed closed, resolved, or off-the-table items
        - consolidated remaining items
      - no changes to the spec
      
      R=r
      DELTA=116  (1 added, 102 deleted, 13 changed)
      OCL=27596
      CL=27640
      40d6bb59
    • Robert Griesemer's avatar
      missing '}' (found by pretty) · 0dd5be48
      Robert Griesemer authored
      R=r
      DELTA=1  (1 added, 0 deleted, 0 changed)
      OCL=27633
      CL=27639
      0dd5be48
    • David Symonds's avatar
      Oops, forgot to commit this change. · d88fb9f0
      David Symonds authored
      R=r
      APPROVED=r
      DELTA=3  (1 added, 0 deleted, 2 changed)
      OCL=27624
      CL=27626
      d88fb9f0
    • David Symonds's avatar
      Use the mutex in exvar.Set since map access is not atomic. · dc5cffbe
      David Symonds authored
      Imagine your var has a value of zero. If you have a goroutine calling Set(5),
      and another calling Increment(+1), then you only want one of these outcomes:
        - Set completes first, and then Increment occurs => 6
        - Increment completes first, and then Set occurs => 5
      
      However, you could get a sequence:
        - read (for Increment) 0
        - set (for Set) 5
        - write (for Increment) 1
      This results in a value of 1, which is undesirable.
      
      Kudos to dnadasi for catching this.
      
      R=r
      APPROVED=r
      DELTA=3  (3 added, 0 deleted, 0 changed)
      OCL=27625
      CL=27625
      dc5cffbe
    • David Symonds's avatar
      Add Inject function to iterable package. · a6156873
      David Symonds authored
      Fix a couple of style mistakes.
      
      R=r,rsc
      APPROVED=r
      DELTA=34  (30 added, 1 deleted, 3 changed)
      OCL=27623
      CL=27623
      a6156873
    • David Symonds's avatar
      Initial cut at an "exported variables" (exvar) package. · 3cc702ba
      David Symonds authored
      This handles integer-valued vars in a singleton struct, and exports functions
      for incrementing, setting and getting those vars, as well as rendering all the
      vars in a standard format.
      
      Demonstrate the use of the exvar package in the http/triv server.
      
      R=dcross,r
      APPROVED=r
      DELTA=122  (122 added, 0 deleted, 0 changed)
      OCL=27617
      CL=27622
      3cc702ba