1. 02 Dec, 2008 3 commits
    • Ken Thompson's avatar
      multi precision floating point · 3fa46106
      Ken Thompson authored
      R=r
      OCL=20185
      CL=20185
      3fa46106
    • Robert Griesemer's avatar
      - enabled comment printing by default · 37bdd3c3
      Robert Griesemer authored
      - changed tab width to 8 chars by default to make test run properly
      - excluded 4 files that are not idempotently printed
      - fixed a couple of incorrect file position recordings in parser
      - fine-tuned layout engine
      - white-space formatting reasonable, but not perfect
      - no handling of overlong lines
      R=r
      
      To use with smaller tabs:           pretty -tabwidth=4 file.go
      To use with blanks instead of tabs: pretty -usetabs=0 file.go
      
      OCL=20184
      CL=20184
      37bdd3c3
    • Russ Cox's avatar
      be more precise in ftoa_test. · 54860965
      Russ Cox authored
      R=ken
      OCL=20173
      CL=20173
      54860965
  2. 01 Dec, 2008 2 commits
  3. 27 Nov, 2008 1 commit
    • Robert Griesemer's avatar
      - collect addition source position information in parser · d79f687e
      Robert Griesemer authored
        for end of declarations, blocks, parameter lists, etc.
      - use extra src positions to more accurately print comments
      - fine-tuned low-level printing routine for comments
      - added better debugging support
      
      Status:
      - comments now appear at the right place (inbetween the right tokens)
      - newline control needs improvement (not very hard)
      - comment printing disabled for now because pretty is not idempotent
      with it; to enable: -comments
      
      R=r
      OCL=20079
      CL=20079
      d79f687e
  4. 26 Nov, 2008 3 commits
    • Robert Griesemer's avatar
      - snapshot of state before trying yet another, hopefully better working · 732b53a1
      Robert Griesemer authored
      way to integrate comments into the generated output
      - various simplificatins and cleanups throughout
      
      R=r
      OCL=20062
      CL=20062
      732b53a1
    • Russ Cox's avatar
      new stacktrace format · d040d268
      Russ Cox authored
      sys·gosched+0x25 /home/rsc/go/src/runtime/proc.c:477
      	sys·gosched()
      chanrecv+0x29e /home/rsc/go/src/runtime/chan.c:277
      	chanrecv(0x4be80, 0x0, 0x4cf88, 0x0, 0x0, ...)
      sys·chanrecv1+0x5b /home/rsc/go/src/runtime/chan.c:355
      	sys·chanrecv1(0x4be80, 0x0)
      once·Server+0x26 /home/rsc/go/src/lib/strconv/atoi.go:-41
      	once·Server()
      
      the last line is broken (atoi.go:-41) but that's not new.
      
      R=r
      DELTA=46  (19 added, 14 deleted, 13 changed)
      OCL=20018
      CL=20026
      d040d268
    • Russ Cox's avatar
      change meaning of $GOMAXPROCS to number of cpus to use, · efc86a74
      Russ Cox authored
      not number of threads.  can still starve all the other threads,
      but only by looping, not by waiting in a system call.
      
      fix darwin syscall.Syscall6 bug.
      
      fix chanclient bug.
      
      delete $GOMAXPROCS from network tests.
      
      add stripped down printf, sys.printhex to runtime.
      
      R=r
      DELTA=355  (217 added, 36 deleted, 102 changed)
      OCL=20017
      CL=20019
      efc86a74
  5. 25 Nov, 2008 10 commits
  6. 24 Nov, 2008 19 commits
    • Russ Cox's avatar
      add hash to build; rm pkg/* in clean.bash · bbe9bb65
      Russ Cox authored
      R=r
      DELTA=3  (3 added, 0 deleted, 0 changed)
      OCL=19935
      CL=19937
      bbe9bb65
    • Russ Cox's avatar
      convert tests. · 0f83fa3a
      Russ Cox authored
      refine gotest's test selection criteria.
      
      R=r
      DELTA=1590  (745 added, 844 deleted, 1 changed)
      OCL=19903
      CL=19936
      0f83fa3a
    • Russ Cox's avatar
      replay CL 19916 and CL 19913 now that the build can handle them · 387df5e1
      Russ Cox authored
      TBR=r
      OCL=19924
      CL=19934
      387df5e1
    • Russ Cox's avatar
      remove old .6 after install, · 0a20746c
      Russ Cox authored
      so that compilation of other .6
      will use the copy in goroot/pkg
      
      R=r
      DELTA=3  (1 added, 0 deleted, 2 changed)
      OCL=19931
      CL=19933
      0a20746c
    • Rob Pike's avatar
      really restore helpful error rules · d7c10487
      Rob Pike authored
      R=rsc
      OCL=19929
      CL=19929
      d7c10487
    • Rob Pike's avatar
      restore helpful error rules · 46f89d53
      Rob Pike authored
      R=rsc
      OCL=19928
      CL=19928
      46f89d53
    • Ken Thompson's avatar
      1. retract general field names · 8e3fe10e
      Ken Thompson authored
      2. array bounds bug
      3. ... optimization bug
      
      R=r
      OCL=19927
      CL=19927
      8e3fe10e
    • Rob Pike's avatar
      add missing file · 2a874603
      Rob Pike authored
      R=rsc
      OCL=19926
      CL=19926
      2a874603
    • Russ Cox's avatar
      Automated g4 rollback of changelist 19913. · c00295d1
      Russ Cox authored
      *** Reason for rollback ***
      
      broke build
      
      *** Original change description ***
      
      bufio.ReadRune
      
      TBR=r
      OCL=19923
      CL=19923
      c00295d1
    • Russ Cox's avatar
      Automated g4 rollback of changelist 19916. · 85fea81d
      Russ Cox authored
      *** Reason for rollback ***
      
      broke build
      
      *** Original change description ***
      
      utf8: add InString routines for decoding in strings
      reflect: add InterfaceValue.Get(), remove Empty
      strconv: add Quote, CanBackquote
      fmt:
      	* %q go-quoted " string
      	* %#q go-quoted ` string if possible, " string otherwise
      	* %x hexadecimal string
      	* anywhere a string is okay, *[]byte is okay
      	* flags # 0 - + space
      	* print value inside interface, not interface itself
      	* tests
      
      TBR=r
      OCL=19920
      CL=19920
      85fea81d
    • Russ Cox's avatar
      utf8: add InString routines for decoding in strings · b65a9304
      Russ Cox authored
      reflect: add InterfaceValue.Get(), remove Empty
      strconv: add Quote, CanBackquote
      fmt:
      	* %q go-quoted " string
      	* %#q go-quoted ` string if possible, " string otherwise
      	* %x hexadecimal string
      	* anywhere a string is okay, *[]byte is okay
      	* flags # 0 - + space
      	* print value inside interface, not interface itself
      	* tests
      
      R=r
      DELTA=756  (597 added, 121 deleted, 38 changed)
      OCL=19888
      CL=19916
      b65a9304
    • Robert Griesemer's avatar
      bufio.ReadRune · 508277de
      Robert Griesemer authored
      R=rsc
      DELTA=32  (29 added, 0 deleted, 3 changed)
      OCL=19809
      CL=19913
      508277de
    • Russ Cox's avatar
      make bignum_test a test · 0432a343
      Russ Cox authored
      R=gri
      DELTA=967  (468 added, 499 deleted, 0 changed)
      OCL=19906
      CL=19912
      0432a343
    • Russ Cox's avatar
      hash writers: adler32, crc32, md5, sha1. · e3b79300
      Russ Cox authored
      all could probably be made faster.
      
      R=r
      DELTA=929  (929 added, 0 deleted, 0 changed)
      OCL=19879
      CL=19911
      e3b79300
    • Rob Pike's avatar
      output of fmt has changed for %g · 375b1e2a
      Rob Pike authored
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=19909
      CL=19909
      375b1e2a
    • Russ Cox's avatar
      gobuild: · 6c4d8f83
      Russ Cox authored
      	recognize "// package foo" in non-go files
      	recognize "gobuild: ignore" to exclude from build
      
      R=r
      DELTA=10  (7 added, 2 deleted, 1 changed)
      OCL=19878
      CL=19905
      6c4d8f83
    • Russ Cox's avatar
      fix %g 20 -> "2e+01" want "20" · 0e198da6
      Russ Cox authored
      R=r
      DELTA=11  (10 added, 0 deleted, 1 changed)
      OCL=19885
      CL=19887
      0e198da6
    • Ken Thompson's avatar
      indexing optimizations and bug fix · a6182dab
      Ken Thompson authored
      R=r
      OCL=19886
      CL=19886
      a6182dab
    • Russ Cox's avatar
      delete stack mark strings · 3aa063d7
      Russ Cox authored
      in favor of using in-memory copy of symbol table.
      
      $ ls -l pretty pretty.big
      -rwxr-xr-x  1 rsc  eng  439516 Nov 21 16:43 pretty
      -rwxr-xr-x  1 rsc  eng  580984 Nov 21 16:20 pretty.big
      $
      
      R=r
      DELTA=446  (238 added, 178 deleted, 30 changed)
      OCL=19851
      CL=19884
      3aa063d7
  7. 23 Nov, 2008 2 commits