1. 18 Sep, 2009 13 commits
    • Robert Griesemer's avatar
      - added heading to operator precedence section so it's easy to find · d36d191e
      Robert Griesemer authored
      - fixed broken link to function literals section
      - minor adjustments
      
      R=r
      DELTA=20  (1 added, 3 deleted, 16 changed)
      OCL=34792
      CL=34794
      d36d191e
    • Russ Cox's avatar
      cgo: can look up C identifier kind (type or value) and type · 6a2602de
      Russ Cox authored
      gmp.go:197:4:  type mpz_t          C type  mpz_t
      gmp.go:205:2:  call mpz_init       C value func(mpz_ptr) void
      gmp.go:206:2:  call mpz_set        C value func(mpz_ptr, mpz_srcptr) void
      gmp.go:221:2:  call mpz_init       C value func(mpz_ptr) void
      gmp.go:227:7:  call size_t         C type  size_t
      gmp.go:228:2:  call mpz_export     C value func(*void, *size_t, int, size_t, int, size_t, mpz_srcptr) *void
      gmp.go:235:13: call mpz_sizeinbase C value func(mpz_srcptr, int) size_t
      gmp.go:241:2:  call mpz_set        C value func(mpz_ptr, mpz_srcptr) void
      gmp.go:252:3:  call mpz_import     C value func(mpz_ptr, size_t, int, size_t, int, size_t, *const void) void
      gmp.go:261:2:  call mpz_set_si     C value func(mpz_ptr, long int) void
      gmp.go:273:5:  call mpz_set_str    C value func(mpz_ptr, *const char, int) int
      gmp.go:282:9:  call mpz_get_str    C value func(*char, int, mpz_srcptr) *char
      gmp.go:287:3:  call mpz_clear      C value func(mpz_ptr) void
      gmp.go:302:2:  call mpz_add        C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:311:2:  call mpz_sub        C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:320:2:  call mpz_mul        C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:329:2:  call mpz_tdiv_q     C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:339:2:  call mpz_tdiv_r     C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:348:2:  call mpz_mul_2exp   C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
      gmp.go:356:2:  call mpz_div_2exp   C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
      gmp.go:367:3:  call mpz_pow_ui     C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
      gmp.go:369:3:  call mpz_powm       C value func(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:378:2:  call mpz_neg        C value func(mpz_ptr, mpz_srcptr) void
      gmp.go:386:2:  call mpz_abs        C value func(mpz_ptr, mpz_srcptr) void
      gmp.go:404:9:  call mpz_cmp        C value func(mpz_srcptr, mpz_srcptr) int
      gmp.go:413:2:  call mpz_tdiv_qr    C value func(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
      gmp.go:426:2:  call mpz_gcdext     C value func(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
      
      R=r
      DELTA=938  (628 added, 308 deleted, 2 changed)
      OCL=34733
      CL=34791
      6a2602de
    • Russ Cox's avatar
      add DWARF method to elf.File. · 92f773dc
      Russ Cox authored
      test both ELF and Mach-O in dwarf package.
      
      R=r
      DELTA=83  (44 added, 10 deleted, 29 changed)
      OCL=34717
      CL=34790
      92f773dc
    • Russ Cox's avatar
      Mach-O file reading · bf690258
      Russ Cox authored
      R=r
      DELTA=784  (784 added, 0 deleted, 0 changed)
      OCL=34715
      CL=34788
      bf690258
    • Austin Clements's avatar
      Rudimentary command shell for Ogle. Hack to prevent linker · ad9c6f77
      Austin Clements authored
      from inlining newprocreadylocked.  Fix type bridge's handling
      of basic types.  Include interpreter's Thread in bridged
      native function calls.
      
      ; load . "6.out"
      Started 6.out
      ; BpSet("main·merge")
      ; ContWait()
      breakpoint at 0x400800
      =>   400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
      ; bt
      =>   400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
           400b6a main·mergeSort+0x1be /home/austin/src-go1/usr/austin/ptrace/test/sort.go:34
           448313 goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
      ; main.merge.a
      {1}
      
      ; load . "pid:25753"
      Attached to 25753
      ; bt
      =>   479ddf syscall·Syscall+0x24 /home/austin/src-go1/src/pkg/syscall/asm_linux_amd64.s:24
           47c011 syscall·Read+0x5d /home/austin/src-go1/src/pkg/syscall/zsyscall_linux_amd64.go:368
           4119e5 os·*File·Read+0x5f /home/austin/src-go1/src/pkg/os/file.go:122
           427bf3 bufio·*Reader·fill+0x116 /home/austin/src-go1/src/pkg/bufio/bufio.go:105
           428361 bufio·*Reader·ReadSlice+0x195 /home/austin/src-go1/src/pkg/bufio/bufio.go:244
           40204a ogle·Main+0x94 /home/austin/src-go1/usr/austin/ogle/cmd.go:226
           40080f main·main+0xf /home/austin/src-go1/usr/austin/ogle/main.go:6
           41c4b8 mainstart+0xf /home/austin/src-go1/src/pkg/runtime/amd64/asm.s:55
           41531f goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
      
      R=rsc
      APPROVED=rsc
      DELTA=433  (420 added, 2 deleted, 11 changed)
      OCL=34410
      CL=34782
      ad9c6f77
    • Austin Clements's avatar
      Implement remote variables · 20583b58
      Austin Clements authored
      R=rsc
      APPROVED=rsc
      DELTA=282  (281 added, 0 deleted, 1 changed)
      OCL=34407
      CL=34781
      20583b58
    • Rob Pike's avatar
      use buf.String() instead of string(buf.Bytes()) · 7be77007
      Rob Pike authored
      use strings.Buffer instead of bytes.Buffer in some places
      
      R=rsc
      DELTA=40  (0 added, 3 deleted, 37 changed)
      OCL=34770
      CL=34775
      7be77007
    • Kai Backman's avatar
      fixing width bug in DATA output. some logging to make fixing · a0a965fb
      Kai Backman authored
      similar issues easier in the future.
      
      R=rsc
      APPROVED=rsc
      DELTA=6  (1 added, 0 deleted, 5 changed)
      OCL=34771
      CL=34773
      a0a965fb
    • Kai Backman's avatar
      fix code generation of CMP to use registers properly. also fix · 6b0bd43f
      Kai Backman authored
      one case of uninitialized memory and some output.
      
      R=rsc
      APPROVED=rsc
      DELTA=73  (43 added, 1 deleted, 29 changed)
      OCL=34743
      CL=34772
      6b0bd43f
    • Kai Backman's avatar
      floating point constants and symbol export fix. · 803a73c4
      Kai Backman authored
      R=rsc
      APPROVED=rsc
      DELTA=16  (0 added, 1 deleted, 15 changed)
      OCL=34753
      CL=34769
      803a73c4
    • Russ Cox's avatar
      move static init code from 6g into gc. · cb49a999
      Russ Cox authored
      hook up to 8g and 5g too.
      
      R=ken
      OCL=34768
      CL=34768
      cb49a999
    • Rob Pike's avatar
      check in the generated html for the tutorial so godoc can serve it · 44b0f591
      Rob Pike authored
      DELTA=1444  (1444 added, 0 deleted, 0 changed)
      OCL=34760
      CL=34762
      44b0f591
    • Robert Griesemer's avatar
      - use new css for godoc templates · ec8c611b
      Robert Griesemer authored
      - final location of files TBD
      
      R=rsc,r
      DELTA=84  (19 added, 46 deleted, 19 changed)
      OCL=34758
      CL=34761
      ec8c611b
  2. 17 Sep, 2009 9 commits
    • Russ Cox's avatar
      check for unused imports · 73e52ae9
      Russ Cox authored
      R=ken
      OCL=34732
      CL=34756
      73e52ae9
    • Robert Griesemer's avatar
      - improved formatting of declarations · 2a01b9d4
      Robert Griesemer authored
      - improved formatting of struct and interface types
      
      R=rsc
      DELTA=471  (364 added, 47 deleted, 60 changed)
      OCL=34747
      CL=34751
      2a01b9d4
    • Robert Griesemer's avatar
      - silence ebnflint: mark syntax section as "ebnf" instead of "grammar" · da961881
      Robert Griesemer authored
      - re-use MethodName production
      
      R=r
      DELTA=4  (1 added, 1 deleted, 2 changed)
      OCL=34734
      CL=34734
      da961881
    • Russ Cox's avatar
      unused imports · 20011bc8
      Russ Cox authored
      R=r
      OCL=34731
      CL=34731
      20011bc8
    • Robert Griesemer's avatar
      - don't add "..." anonymous field to structs/interfaces if entries are stripped · 1401151a
      Robert Griesemer authored
      - don't print any optional semicolons after declarations inside functions
      - indicate non-exported fields/methods in exported types with a comment
        so that the "exported source" is legal Go code
      - more tests
      
      R=rsc
      DELTA=300  (227 added, 25 deleted, 48 changed)
      OCL=34697
      CL=34730
      1401151a
    • Robert Griesemer's avatar
      fix build: updated Make.deps · 75f72e7b
      Robert Griesemer authored
      TBR=r
      OCL=34729
      CL=34729
      75f72e7b
    • Larry Hosken's avatar
      A step towards "externalizing" some Go docs. · 698c6c00
      Larry Hosken authored
      + style sheet: like code.google.com but less feature-ful
      + JS with table-of-contents generation
      + tweaked go_spec.html and go_mem.html to use new style+JS
      + static-HTML-ified a few other Go docs:
        + static HTML versions of some wiki pages (which I'll turn
          into links to these pages).
      
      A notable thing that is _not_ in this changelist: any change
      to the godoc tool or whatever thing generates http://go/godoc
      
      R=r
      APPROVED=r
      DELTA=2472  (2307 added, 113 deleted, 52 changed)
      OCL=34644
      CL=34728
      698c6c00
    • Rob Pike's avatar
      first cut at a string buffer. · 229e9761
      Rob Pike authored
      can be made more efficient but this is reasonable.
      
      R=rsc
      DELTA=363  (363 added, 0 deleted, 0 changed)
      OCL=34720
      CL=34720
      229e9761
    • Russ Cox's avatar
      first step toward cgo tool. · 0b7878a9
      Russ Cox authored
      can extract import "C" doc comment
      and all references to C package.
      
      ; cgo gmp.go | sort
      #include <gmp.h>
      gmp.go:197:4: mpz_t as type
      gmp.go:205:2: mpz_init as call
      gmp.go:206:2: mpz_set as call
      gmp.go:221:2: mpz_init as call
      gmp.go:227:7: size_t as call
      gmp.go:228:2: mpz_export as call
      gmp.go:235:13: mpz_sizeinbase as call
      gmp.go:241:2: mpz_set as call
      gmp.go:252:3: mpz_import as call
      gmp.go:261:2: mpz_set_si as call
      gmp.go:273:5: mpz_set_str as call
      gmp.go:282:9: mpz_get_str as call
      gmp.go:287:3: mpz_clear as call
      gmp.go:302:2: mpz_add as call
      gmp.go:311:2: mpz_sub as call
      gmp.go:320:2: mpz_mul as call
      gmp.go:329:2: mpz_tdiv_q as call
      gmp.go:339:2: mpz_tdiv_r as call
      gmp.go:348:2: mpz_mul_2exp as call
      gmp.go:356:2: mpz_div_2exp as call
      gmp.go:367:3: mpz_pow as call
      gmp.go:369:3: mpz_powm as call
      gmp.go:378:2: mpz_neg as call
      gmp.go:386:2: mpz_abs as call
      gmp.go:404:9: mpz_cmp as call
      gmp.go:413:2: mpz_tdiv_qr as call
      gmp.go:426:2: mpz_gcdext as call
      ;
      
      R=r
      DELTA=746  (746 added, 0 deleted, 0 changed)
      OCL=34710
      CL=34714
      0b7878a9
  3. 16 Sep, 2009 10 commits
  4. 15 Sep, 2009 8 commits