1. 12 Aug, 2010 5 commits
    • Russ Cox's avatar
      gopack: handle long lines in export data · 26dde76c
      Russ Cox authored
      Also, if the header is bad, exit with a non-zero status.
      
      Other calls to Brdline in the tree, by category:
      
      Reading symbol name from object file:
      ./cmd/5l/obj.c:486: 		name = Brdline(f, '\0');
      ./cmd/6l/obj.c:535: 		name = Brdline(f, '\0');
      ./cmd/8l/obj.c:564: 		name = Brdline(f, '\0');
      ./libmach/sym.c:292: 		cp = Brdline(bp, '\0');
      
      Reading archive header line (fixed, short):
      ./cmd/gc/lex.c:287: 	if((a = Brdline(b, '\n')) == nil)
      ./cmd/gc/lex.c:303: 	if((p = Brdline(b, '\n')) == nil)
      
      Reading object file header line (fixed, short):
      ./cmd/ld/lib.c:421: 	line = Brdline(f, '\n');
      
      Reading undefined symbol list (unused code):
      ./cmd/ld/lib.c:773: 	while((l = Brdline(b, '\n')) != nil){
      
      Implementing Brdstr:
      ./libbio/brdstr.c:36: 		p = Brdline(bp, delim);
      
      The symbol names ones will cause a problem loudly if they
      fail: they'll error out with symbol name too long.  This means
      that you can't define an enormous struct without giving the
      type a name and then stick it in an interface, because the
      type's symbol name will be too long for the object file.
      Since this will be a loud failure instead of a silent one,
      I'm willing to wait until it comes up in practice.
      
      R=r
      CC=golang-dev
      https://golang.org/cl/1982041
      26dde76c
    • Russ Cox's avatar
      5g, 8g: dead code (already removed from 6g) · 14e0df34
      Russ Cox authored
      R=ken2
      CC=golang-dev
      https://golang.org/cl/1983041
      14e0df34
    • Rob Pike's avatar
      regexp: new regularized methods for matching. · 6610d79e
      Rob Pike authored
      The previous set was spotty, incomplete, and confusing.
      This CL proposes a regular, clean set with clearer names.
      It's also complete.  Many existing methods will be deprecated,
      but not in this CL.  Ditto for the tests.
      
      R=rsc, gri
      CC=golang-dev, rog
      https://golang.org/cl/1946041
      6610d79e
    • Robert Griesemer's avatar
      gofmt: if a semicolon is found unexpectedly, report detailed cause · d7507497
      Robert Griesemer authored
      go/scanner: return information on semicolon (real or inserted) when
      	    found in source
      go/parser:  better error message when a semicolon is found unexpectedly
      
      For instance, if an unexpected semicolon is found that was automatically
      inserted, the parser error message is now:
      
          "expected '}', found newline"
      
      Fixes #1006.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/1936044
      d7507497
    • Rob Pike's avatar
      sync.once: document that Do cannot be invoked recursively. · 32a81fa8
      Rob Pike authored
      documentation change only.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/1964043
      32a81fa8
  2. 11 Aug, 2010 5 commits
  3. 10 Aug, 2010 12 commits
  4. 09 Aug, 2010 7 commits
  5. 07 Aug, 2010 2 commits
  6. 06 Aug, 2010 7 commits
  7. 05 Aug, 2010 2 commits