1. 09 Dec, 2008 3 commits
  2. 08 Dec, 2008 2 commits
  3. 06 Dec, 2008 2 commits
    • Ken Thompson's avatar
      allowed syntax for range · b79272d9
      Ken Thompson authored
      a range m (implies :=)
      a,b range m (implies :=)
      a:b range m (implies :=)
      
      a := range m
      a,b := range m
      a:b := range m
      
      a = range m
      a,b = range m
      a:b = range m
      
      R=r
      OCL=20676
      CL=20676
      b79272d9
    • Ken Thompson's avatar
      range statement · 26b357ca
      Ken Thompson authored
      R=r
      OCL=20667
      CL=20667
      26b357ca
  4. 05 Dec, 2008 11 commits
  5. 04 Dec, 2008 8 commits
  6. 03 Dec, 2008 12 commits
    • Robert Griesemer's avatar
      - fixed a bug with import printing (missing separator between alias and string) · 2dba9a66
      Robert Griesemer authored
      - rewrote declaration printing - was unreadable before
      - no semicolons after closing "}" for types
      
      R=r
      OCL=20379
      CL=20379
      2dba9a66
    • Russ Cox's avatar
      preparation for exec. · dfa5893d
      Russ Cox authored
      * syscall:
      	add syscall.RawSyscall, which doesn't use sys.entersyscall/sys.exitsyscall
      	add syscall.dup2
      	add syscall.BytePtrPtr
      	add syscall.Rusage, RusagePtr
      	add syscall.F_GETFD, F_SETFD, FD_CLOEXEC
      
      * runtime:
      	clean up, correct signal handling.
      	can now survive (continue running after) a signal.
      
      R=r
      DELTA=394  (286 added, 51 deleted, 57 changed)
      OCL=20351
      CL=20369
      dfa5893d
    • Russ Cox's avatar
      clean stack trace code. · 2b39165f
      Russ Cox authored
      format is unchanged but shows all frames
      (old loop stopped one frame early).
      
      wreck=; 6.out
      cannot convert type *main.S·interface2 to interface main.I·interface2: missing method Foo
      throw: interface conversion
      SIGSEGV: segmentation violation
      Faulting address: 0x0
      pc: 0x256d
      
      throw+0x46 /home/rsc/go/src/runtime/runtime.c:68
      	throw(0x863a, 0x0)
      hashmap+0x188 /home/rsc/go/src/runtime/iface.c:167
      	hashmap(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...)
      sys·ifaceT2I+0xa8 /home/rsc/go/src/runtime/iface.c:201
      	sys·ifaceT2I(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...)
      main·main+0x4e /home/rsc/go/src/runtime/rt0_amd64_darwin.s:87
      	main·main()
      mainstart+0xf /home/rsc/go/src/runtime/rt0_amd64.s:70
      	mainstart()
      sys·goexit /home/rsc/go/src/runtime/proc.c:110
      	sys·goexit()
      
      R=r
      DELTA=44  (5 added, 15 deleted, 24 changed)
      OCL=20358
      CL=20368
      2b39165f
    • Russ Cox's avatar
      Make strconv.atof("-0") return -0 · 32a1ee85
      Russ Cox authored
      and update test.
      
      R=iant
      DELTA=11  (3 added, 1 deleted, 7 changed)
      OCL=20350
      CL=20362
      32a1ee85
    • Ken Thompson's avatar
      import/export of exact mp floating constants · f8797daa
      Ken Thompson authored
      new syntax for exact mp floating constants
           decimal_int ( "p" | "P" ) [ "+" | "-" ] decimal_int
           the value is decimal1 * 2^decimal2
      
      R=r
      OCL=20357
      CL=20357
      f8797daa
    • Russ Cox's avatar
      golden.out drift · 98431dbf
      Russ Cox authored
      TBR=r
      OCL=20352
      CL=20355
      98431dbf
    • Robert Griesemer's avatar
      - bug: empty switches don't compile · 4d76e8e1
      Robert Griesemer authored
      R=rsc
      DELTA=32  (28 added, 3 deleted, 1 changed)
      OCL=20301
      CL=20340
      4d76e8e1
    • Ken Thompson's avatar
      small code improvement to · c8a66a98
      Ken Thompson authored
      used scaled indexing
      
      R=r
      OCL=20308
      CL=20310
      c8a66a98
    • Ken Thompson's avatar
      truncating of float constants when · 89996e1f
      Ken Thompson authored
      used in float64 or float32 contexts
      
      R=r
      OCL=20297
      CL=20297
      89996e1f
    • Robert Griesemer's avatar
      - oversight: extra allow source-level line breaks inside statement lists · acfd1fd4
      Robert Griesemer authored
      - fixed printing of empty structs/interfaces
      - enable two more tests
      
      R=r
      OCL=20296
      CL=20296
      acfd1fd4
    • Robert Griesemer's avatar
      - fine-tuning of white space · cb67a832
      Robert Griesemer authored
      - by default consider extra newlines in src for better formatting
      - additional flags for control (-newlines, -maxnewlines, -optsemicolons)
      - don't print ()'s around single anonymous result types
      
      Status: Comparing the output of pretty with the input for larger files
      shows mostly whitespace/formatting differences, which is what is desired.
      
      TODO:
      - Handling of overlong lines
      - some esoteric cases which look funny
      
      R=r
      OCL=20293
      CL=20293
      cb67a832
    • Russ Cox's avatar
      6g gives no error on "0 != nil" · 1e1a3c50
      Russ Cox authored
      R=ken
      OCL=20289
      CL=20289
      1e1a3c50
  7. 02 Dec, 2008 2 commits