1. 02 Jul, 2009 9 commits
  2. 01 Jul, 2009 8 commits
    • Russ Cox's avatar
      add test, fix bug: structs that differ in their · a439f662
      Russ Cox authored
      first field were not being handled correctly
      because the visited map did not include the type.
      
      R=r
      OCL=31006
      CL=31006
      a439f662
    • David Symonds's avatar
      Fix a doc typo. · 25706fec
      David Symonds authored
      R=rsc
      APPROVED=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=30967
      CL=30990
      25706fec
    • Russ Cox's avatar
      clean up some BUG/TODO in go code · 55e790a1
      Russ Cox authored
      R=r
      DELTA=23  (1 added, 12 deleted, 10 changed)
      OCL=30957
      CL=30980
      55e790a1
    • Russ Cox's avatar
      change alignment rules: roll receiver into · 20cfa4a5
      Russ Cox authored
      input parameters, move output parameters
      into their own struct.
      
      R=ken
      OCL=30954
      CL=30966
      20cfa4a5
    • Russ Cox's avatar
      remove declarations for functions that cannot be called from c · 150a6457
      Russ Cox authored
      (because they return values in the input parameters).
      
      R=iant
      DELTA=12  (0 added, 11 deleted, 1 changed)
      OCL=30952
      CL=30965
      150a6457
    • Russ Cox's avatar
      convert string runtime to use cgo. · fa40c856
      Russ Cox authored
      now that cgo2c can handle it,
      merge x.c and x_go.cgo into
      a single x.cgo, for x=float,malloc,sema.
      
      R=r
      DELTA=1950  (954 added, 996 deleted, 0 changed)
      OCL=30951
      CL=30964
      fa40c856
    • Russ Cox's avatar
      in preparation for changing 6g's behavior to · 88e7fd54
      Russ Cox authored
      align the output args separately from the input args,
      change cgo2c to insert the necessary padding
      when the two arg lists are concatenated in the c
      translation.
      
      for example, there is a runtime
      
      	func indexstring(s string, i int32) (b byte)
      
      right now in 6g those arguments are aligned in one
      struct with s at offset 0, i at 16, and b at 20.
      soon the b byte will be in its own struct and structs
      are 8 aligned, so it will be b at 24.
      
      right now cgo2c generates:
      
      	void indexstring(string s, int32 i, byte b)
      
      this CL makes it generate, in --6g mode:
      
      	void indexstring(string s, int32 i, uint32, byte b)
      
      this is valid 6c input, although not valid gcc input.
      (the code is being generated for 6c only anyway.)
      
      also, allow C code to be mixed in among the Go funcs.
      every instance of the token `func' is expected to start
      a new go func.
      
      R=iant
      DELTA=145  (118 added, 0 deleted, 27 changed)
      OCL=30949
      CL=30963
      88e7fd54
    • Rob Pike's avatar
      scalar decoders · b9689433
      Rob Pike authored
      R=rsc
      DELTA=897  (728 added, 14 deleted, 155 changed)
      OCL=30955
      CL=30955
      b9689433
  3. 30 Jun, 2009 5 commits
  4. 29 Jun, 2009 9 commits
  5. 27 Jun, 2009 3 commits
  6. 26 Jun, 2009 6 commits
    • Kai Backman's avatar
      Adding more debug output when 5l encounters a bad op · d6197d94
      Kai Backman authored
      combination.
      
      R=rsc
      APPROVED=rsc
      DELTA=69  (68 added, 0 deleted, 1 changed)
      OCL=30798
      CL=30801
      d6197d94
    • Kai Backman's avatar
      more changes to make 5g code generation arm compatible. · 4556c04d
      Kai Backman authored
      R=rsc
      APPROVED=rsc
      DELTA=72  (12 added, 52 deleted, 8 changed)
      OCL=30748
      CL=30793
      4556c04d
    • Rob Pike's avatar
      gobs part 1: types. · 7986de6e
      Rob Pike authored
      not ready to be part of the standard build yet; this is just a checkpoint.
      
      R=rsc
      DELTA=361  (361 added, 0 deleted, 0 changed)
      OCL=30782
      CL=30785
      7986de6e
    • David Symonds's avatar
      http Request parsing, plus a convenient accessor. · a2a82754
      David Symonds authored
      R=rsc
      APPROVED=rsc
      DELTA=95  (40 added, 14 deleted, 41 changed)
      OCL=30727
      CL=30784
      a2a82754
    • Russ Cox's avatar
      bug165 · 480f5124
      Russ Cox authored
      R=ken
      OCL=30783
      CL=30783
      480f5124
    • Russ Cox's avatar
      Change os.Error convention: · a0bcaf4c
      Russ Cox authored
      echo back context of call in error if likely to be useful.
      
      For example, if os.Open("/etc/passwd", os.O_RDONLY)
      fails with syscall.EPERM, it returns as the os.Error
      
      	&PathError{
      		Op: "open",
      		Path: "/etc/passwd"
      		Error: os.EPERM
      	}
      
      which formats as
      
      	open /etc/passwd: permission denied
      
      Not converted:
      
      	datafmt
      	go/...
      	google/...
      	regexp
      	tabwriter
      	template
      
      R=r
      DELTA=1153  (561 added, 156 deleted, 436 changed)
      OCL=30738
      CL=30781
      a0bcaf4c