An error occurred fetching the project authors.
  1. 02 Nov, 2011 1 commit
  2. 28 Jul, 2011 1 commit
  3. 13 Apr, 2011 1 commit
  4. 18 Mar, 2011 1 commit
  5. 16 Mar, 2011 1 commit
  6. 01 Feb, 2011 1 commit
  7. 31 Jan, 2011 1 commit
    • Roger Peppe's avatar
      cgo: improve error reporting slightly. · 76130bde
      Roger Peppe authored
      If there were warnings or errors in the user code,
      cgo would print the first error from gcc and then stop,
      which is not helpful.
      This CL makes cgo ignore errors from user code
      in the first pass - they will be shown later.
      It also prints errors from user preamble code
      with the correct line numbers.
      (Also fixed misleading usage message).
      
      R=iant, rsc
      CC=golang-dev
      https://golang.org/cl/4082047
      76130bde
  8. 06 Jan, 2011 1 commit
  9. 04 Jan, 2011 1 commit
  10. 06 Dec, 2010 1 commit
    • Robert Griesemer's avatar
      go/ast: use token.Pos instead of token.Position; adjust all dependent code · 5a9ad8b9
      Robert Griesemer authored
      	Specifically:
      
      	* lib/godoc:
      	- provide file set (FSet) argument to formatters where needed
      
      	* src/cmd:
      	- cgo, ebnflint, godoc, gofmt, goinstall: provide file set (fset) where needed
      	- godoc: remove local binary search with sort.Search (change by rsc),
      	  extract file set for formatters
      
      	* src/pkg:
      	- exp/eval: remove embedded token.Position fields from nodes and replace
      	  with named token.Pos fields; add corresponding Pos() accessor methods
      	- go/token: added file.Line(), changed signature of File.Position()
      
      	* test/fixedbugs/:
      	- bug206.go: change test to not rely on token.Pos details
      
      	* added various extra comments
      	* Runs all.bash
      	* gofmt formats all of src, misc w/o changes
      	* godoc runs
      
      	* performance:
      	- The new version of godoc consumes about the same space after indexing
      	  has completed, but indexing is half the speed. Significant space savings
      	  are expected from smaller ASTs, but since they are thrown away after a
      	  file has been indexed, this is not visible anymore. The slower indexing
      	  time is due to the much more expensive computation of line information.
      	  However, with the new compressed position information, indexing can be
      	  rewritten and simplified. Furthermore, computing the line info can be
      	  done more efficiently.
      
              New godoc, immediately after indexing completed (best of three runs):
      
      	  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
      	44381 godoc        0.0%  0:38.00   4    19    149  145M   184K   148M   176M
      
      	2010/12/03 17:58:35 index updated (39.231s, 18505 unique words, 386387 spots)
      	2010/12/03 17:58:35 bytes=90858456 footprint=199182584
      	2010/12/03 17:58:36 bytes=47858568 footprint=167295224
      
      	Old godoc, immediately after indexing completed (best of three runs):
      
      	  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
      	23167 godoc        0.0%  0:22.02   4    17    132  129M   184K   132M   173M
      
      	2010/12/03 14:51:32 index updated (24.892s, 18765 unique words, 393830 spots)
      	2010/12/03 14:51:32 bytes=66404528 footprint=163907832
      	2010/12/03 14:51:32 bytes=46282224 footprint=163907832
      
      	The different numbers for unique words/spots stem from the fact the the
      	two workspaces are not exactly identical. The new godoc maintains a large
      	file set data structure during indexing which (probably) is the reason
      	for the larger heap (90858456 vs 66404528) before garbage collection.
      
      R=rsc, r
      CC=golang-dev
      https://golang.org/cl/3050041
      5a9ad8b9
  11. 09 Nov, 2010 1 commit
  12. 28 Oct, 2010 1 commit
  13. 22 Sep, 2010 1 commit
    • Russ Cox's avatar
      cgo: bug fixes · a2450c14
      Russ Cox authored
      * Add documentation about array arguments.  Fixes issue 1125.
      * Do not interpret x, y := z, w as special errno form.  Fixes issue 952.
      * Fix nested Go calls (brainman).  Fixes issue 907.
      
      R=r
      CC=golang-dev
      https://golang.org/cl/2214044
      a2450c14
  14. 13 Aug, 2010 1 commit
    • Robert Griesemer's avatar
      go AST: First step towards augmenting AST with full type information. · 1f9dfa29
      Robert Griesemer authored
      - change ast.Ident back to contain the name and adjust all dependent code
      - identifier object information will be added again through an optional
        typechecker phase (in the works).
      - remove tracking of scopes in parser - it's easier to do this in a separate
        phase (in the works)
      - in godoc, generate popup info table directly instead of through a formatter
        for simpler data flow (at the expense of a little bit more code)
      
      Runs all tests.
      
      As a result of this change, the currently shown popup information
      (const, var, type, func, followed by identifier name) will not be
      shown anymore temporarily.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/1994041
      1f9dfa29
  15. 15 Jul, 2010 1 commit
    • Russ Cox's avatar
      cgo: various bug fixes · 0432f289
      Russ Cox authored
      * remember #defined names, so that C.stdout can refer
        to the real name (on OS X) __stdoutp.
      * better handling of #defined constant expressions
      * allow n, err = C.strtol("asdf", 0, 123) to get errno as os.Error
      * write all output files to current directory
      * don't require gcc output if there was no input
      
      Fixes #533.
      Fixes #709.
      Fixes #756.
      
      R=r
      CC=dho, golang-dev, iant
      https://golang.org/cl/1734047
      0432f289
  16. 09 Apr, 2010 1 commit
    • Ian Lance Taylor's avatar
      Add //export to cgo. · 12e7ce95
      Ian Lance Taylor authored
      The new //export comment marks a Go function as callable from
      C.  The syntax is "//export NAME" where NAME is the name of
      the function as seen from C.  If such a comment is seen, cgo
      will generate two new files: _cgo_export.h and _cgo_export.c.
      The _cgo_export.h file provides declarations which C code may
      use to call Go functions.  The _cgo_export.c file contains
      wrappers, and is to be compiled with gcc.
      
      The changes to Make.pkg support using this from a Go Makefile,
      though it could probably be more convenient.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/853042
      12e7ce95
  17. 30 Mar, 2010 1 commit
    • Russ Cox's avatar
      single argument panic · 00f9f0c0
      Russ Cox authored
      note that sortmain.go has been run through hg gofmt;
      only the formatting of the day initializers changed.
      i'm happy to revert that formatting if you'd prefer.
      
      stop on error in doc/progs/run
      
      R=r
      CC=golang-dev
      https://golang.org/cl/850041
      00f9f0c0
  18. 02 Mar, 2010 1 commit
  19. 25 Feb, 2010 1 commit
  20. 20 Feb, 2010 1 commit
  21. 27 Jan, 2010 1 commit
  22. 15 Jan, 2010 1 commit
    • Robert Griesemer's avatar
      Steps towards tracking scopes for identifiers. · 01b4f2dd
      Robert Griesemer authored
      	- Identifiers refer now to the language entity (Object)
      	  that they denote. At the moment this is at best an
      	  approximation.
      
      	- Initial data structures for language entities (Objects)
                and expression types (Type) independent of the actual
      	  type notations.
      
      	- Initial support for declaring and looking up identifiers.
      
      	- Updated various dependent files and added support functions.
      
      	- Extensively tested to avoid breakage. This is an AST change.
      
      R=rsc
      CC=golang-dev, rog
      https://golang.org/cl/189080
      01b4f2dd
  23. 11 Jan, 2010 1 commit
  24. 05 Jan, 2010 1 commit
  25. 23 Dec, 2009 1 commit
  26. 17 Dec, 2009 1 commit
  27. 16 Dec, 2009 1 commit
  28. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · 5a1d3323
      Robert Griesemer authored
                        parsing and printing to new syntax.
      
                        Use -oldparser to parse the old syntax,
                        use -oldprinter to print the old syntax.
      
                     2) Change default gofmt formatting settings
                        to use tabs for indentation only and to use
                        spaces for alignment. This will make the code
                        alignment insensitive to an editor's tabwidth.
      
                        Use -spaces=false to use tabs for alignment.
      
                     3) Manually changed src/exp/parser/parser_test.go
                        so that it doesn't try to parse the parser's
                        source files using the old syntax (they have
                        new syntax now).
      
                     4) gofmt -w src misc test/bench
      
      	       1st set of files.
      
      R=rsc
      CC=agl, golang-dev, iant, ken2, r
      https://golang.org/cl/180047
      5a1d3323
  29. 20 Nov, 2009 1 commit
  30. 09 Nov, 2009 1 commit
  31. 06 Oct, 2009 1 commit
  32. 03 Oct, 2009 1 commit
    • Russ Cox's avatar
      8c, 8l dynamic loading support. · 133a158b
      Russ Cox authored
      better mach binaries.
      cgo working on darwin+linux amd64+386.
      eliminated context switches - pi is 30x faster.
      add libcgo to build.
      
      on snow leopard:
        - non-cgo binaries work; all tests pass.
        - cgo binaries work on amd64 but not 386.
      
      R=r
      DELTA=2031  (1316 added, 626 deleted, 89 changed)
      OCL=35264
      CL=35304
      133a158b
  33. 30 Sep, 2009 2 commits
    • Russ Cox's avatar
      cgo working on linux/386 · e67a5084
      Russ Cox authored
      R=r
      DELTA=70  (47 added, 4 deleted, 19 changed)
      OCL=35167
      CL=35171
      e67a5084
    • Russ Cox's avatar
      cgo: works on amd64. · cce01111
      Russ Cox authored
      integrated into Makefiles (see misc/cgo/gmp/Makefile).
      
      R=r
      DELTA=1110  (540 added, 525 deleted, 45 changed)
      OCL=35153
      CL=35158
      cce01111
  34. 24 Sep, 2009 1 commit
    • Russ Cox's avatar
      cgo checkpoint. · 12fc2173
      Russ Cox authored
      can write all 3 output files and then compile them by hand.
      
      R=r
      DELTA=919  (841 added, 16 deleted, 62 changed)
      OCL=34954
      CL=34973
      12fc2173
  35. 18 Sep, 2009 1 commit
    • 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