]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoImplement forking debugged processes.
Austin Clements [Wed, 15 Jul 2009 17:17:56 +0000 (10:17 -0700)]
Implement forking debugged processes.

R=rsc
APPROVED=rsc
DELTA=81  (53 added, 3 deleted, 25 changed)
OCL=31651
CL=31675

15 years ago- do not collect BUG comments w/o bug description
Robert Griesemer [Wed, 15 Jul 2009 17:12:57 +0000 (10:12 -0700)]
- do not collect BUG comments w/o bug description

R=rsc
DELTA=17  (8 added, 0 deleted, 9 changed)
OCL=31670
CL=31674

15 years agoAdd a dummy WaitStatus.TrapCause for Darwin to unbreak the build.
Austin Clements [Wed, 15 Jul 2009 17:12:06 +0000 (10:12 -0700)]
Add a dummy WaitStatus.TrapCause for Darwin to unbreak the build.

R=gri
APPROVED=gri
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=31673
CL=31673

15 years agoPretty printer for os.Waitmsg
Austin Clements [Wed, 15 Jul 2009 16:58:42 +0000 (09:58 -0700)]
Pretty printer for os.Waitmsg

R=rsc
APPROVED=rsc
DELTA=49  (49 added, 0 deleted, 0 changed)
OCL=31568
CL=31671

15 years agoadd HTTP support
Rob Pike [Wed, 15 Jul 2009 03:47:39 +0000 (20:47 -0700)]
add HTTP support

R=rsc
DELTA=159  (110 added, 29 deleted, 20 changed)
OCL=31646
CL=31652

15 years agoReturn ptrace event message when there's no error instead of
Austin Clements [Wed, 15 Jul 2009 01:05:29 +0000 (18:05 -0700)]
Return ptrace event message when there's no error instead of
only when there's an error.

R=rsc
APPROVED=rsc
DELTA=3  (0 added, 2 deleted, 1 changed)
OCL=31650
CL=31650

15 years agoallow user to override the Usage function
Rob Pike [Wed, 15 Jul 2009 00:44:20 +0000 (17:44 -0700)]
allow user to override the Usage function

R=gri
DELTA=15  (6 added, 5 deleted, 4 changed)
OCL=31649
CL=31649

15 years agofixed typo
Robert Griesemer [Wed, 15 Jul 2009 00:08:09 +0000 (17:08 -0700)]
fixed typo

TBR=r
OCL=31647
CL=31647

15 years ago- interface and comments cleanup
Robert Griesemer [Tue, 14 Jul 2009 23:30:20 +0000 (16:30 -0700)]
- interface and comments cleanup

R=rsc
DELTA=33  (1 added, 3 deleted, 29 changed)
OCL=31620
CL=31642

15 years ago- removed TODO, minor adjustments
Robert Griesemer [Tue, 14 Jul 2009 23:30:06 +0000 (16:30 -0700)]
- removed TODO, minor adjustments

R=rsc
DELTA=16  (6 added, 1 deleted, 9 changed)
OCL=31638
CL=31641

15 years agodarwin ptrace constants
Russ Cox [Tue, 14 Jul 2009 22:29:29 +0000 (15:29 -0700)]
darwin ptrace constants

R=austin
DELTA=42  (37 added, 5 deleted, 0 changed)
OCL=31618
CL=31633

15 years agoImplementation of process tracing using Linux's ptrace.
Austin Clements [Tue, 14 Jul 2009 22:12:10 +0000 (15:12 -0700)]
Implementation of process tracing using Linux's ptrace.

R=rsc
APPROVED=rsc
DELTA=1543  (1528 added, 0 deleted, 15 changed)
OCL=31570
CL=31630

15 years agoSupport ptracing of fork'd children.
Austin Clements [Tue, 14 Jul 2009 22:09:39 +0000 (15:09 -0700)]
Support ptracing of fork'd children.

R=rsc
APPROVED=rsc
DELTA=26  (22 added, 1 deleted, 3 changed)
OCL=31613
CL=31629

15 years agoZero unused syscall arguments.
Austin Clements [Tue, 14 Jul 2009 20:59:54 +0000 (13:59 -0700)]
Zero unused syscall arguments.

R=rsc
APPROVED=rsc
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=31619
CL=31621

15 years agoimprove rpc code. more robust. more tests.
Rob Pike [Tue, 14 Jul 2009 20:23:14 +0000 (13:23 -0700)]
improve rpc code. more robust. more tests.

R=rsc
DELTA=186  (133 added, 20 deleted, 33 changed)
OCL=31611
CL=31616

15 years agoRegenerate Linux 386 syscall bindings to add ptrace.
Austin Clements [Tue, 14 Jul 2009 18:59:19 +0000 (11:59 -0700)]
Regenerate Linux 386 syscall bindings to add ptrace.

R=rsc
APPROVED=rsc
DELTA=82  (80 added, 2 deleted, 0 changed)
OCL=31610
CL=31612

15 years agoSyscall wrappers for ptrace and supporting wait-related flags.
Austin Clements [Tue, 14 Jul 2009 17:53:04 +0000 (10:53 -0700)]
Syscall wrappers for ptrace and supporting wait-related flags.

R=rsc
APPROVED=rsc
DELTA=311  (308 added, 3 deleted, 0 changed)
OCL=31569
CL=31606

15 years agoupdate remaining files to match new scanner/parser interface
Robert Griesemer [Tue, 14 Jul 2009 17:46:18 +0000 (10:46 -0700)]
update remaining files to match new scanner/parser interface
and use shared error handling infrastructure

R=rsc
DELTA=109  (3 added, 86 deleted, 20 changed)
OCL=31600
CL=31605

15 years ago- adjust to new token.Position definition
Robert Griesemer [Tue, 14 Jul 2009 17:45:57 +0000 (10:45 -0700)]
- adjust to new token.Position definition

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31574
CL=31604

15 years ago- use new scanner error handling code
Robert Griesemer [Tue, 14 Jul 2009 17:45:43 +0000 (10:45 -0700)]
- use new scanner error handling code

R=rsc
DELTA=109  (0 added, 87 deleted, 22 changed)
OCL=31573
CL=31603

15 years ago- adjust to new scanner interface (pass filename to Init)
Robert Griesemer [Tue, 14 Jul 2009 17:45:22 +0000 (10:45 -0700)]
- adjust to new scanner interface (pass filename to Init)
- delete error handling code which is not needed anymore

R=rsc
DELTA=83  (0 added, 65 deleted, 18 changed)
OCL=31572
CL=31602

15 years ago- added Filename field to token.Position
Robert Griesemer [Tue, 14 Jul 2009 17:44:57 +0000 (10:44 -0700)]
- added Filename field to token.Position
- handle //line filename:line comments in scanner
- moved error handling code used by various scanner clients
  to errors.go
- added extra tests

R=rsc
DELTA=385  (343 added, 18 deleted, 24 changed)
OCL=31551
CL=31601

15 years agodead code
Russ Cox [Tue, 14 Jul 2009 16:28:42 +0000 (09:28 -0700)]
dead code

R=r
DELTA=20  (0 added, 20 deleted, 0 changed)
OCL=31584
CL=31598

15 years agostep toward no function prototypes.
Russ Cox [Tue, 14 Jul 2009 06:38:39 +0000 (23:38 -0700)]
step toward no function prototypes.

delay evaluation of most types (all but func)
from parse time to type check time.

R=ken
OCL=31585
CL=31585

15 years agoupdate 6g to new REGARG convention.
Russ Cox [Tue, 14 Jul 2009 06:30:30 +0000 (23:30 -0700)]
update 6g to new REGARG convention.
silence gcc warning.

R=ken
OCL=31583
CL=31583

15 years agobug148.
Russ Cox [Tue, 14 Jul 2009 06:29:44 +0000 (23:29 -0700)]
bug148.

R=ken
OCL=31582
CL=31582

15 years agoadded missing pieces required by reflection
Kai Backman [Tue, 14 Jul 2009 05:06:28 +0000 (22:06 -0700)]
added missing pieces required by reflection

R=rsc
APPROVED=rsc
DELTA=61  (40 added, 18 deleted, 3 changed)
OCL=31502
CL=31580

15 years agotiny naming cleanup
Kai Backman [Tue, 14 Jul 2009 05:04:24 +0000 (22:04 -0700)]
tiny naming cleanup

R=rsc
APPROVED=rsc
DELTA=17  (0 added, 0 deleted, 17 changed)
OCL=31503
CL=31579

15 years agofix bug in codegen when we modified move instruction instead
Kai Backman [Tue, 14 Jul 2009 03:33:59 +0000 (20:33 -0700)]
fix bug in codegen when we modified move instruction instead
of text.

R=rsc
APPROVED=rsc
DELTA=3  (1 added, 2 deleted, 0 changed)
OCL=31575
CL=31575

15 years agoAvoid clash between os.WRUSAGE and Linux's WALL flag.
Austin Clements [Tue, 14 Jul 2009 02:28:00 +0000 (19:28 -0700)]
Avoid clash between os.WRUSAGE and Linux's WALL flag.

R=rsc
APPROVED=rsc
DELTA=5  (4 added, 0 deleted, 1 changed)
OCL=31564
CL=31567

15 years agocompilers were inconsistent about
Russ Cox [Tue, 14 Jul 2009 02:20:43 +0000 (19:20 -0700)]
compilers were inconsistent about
whether no register argument was
REGARG == 0 or REGARG < 0.
use REGARG < 0 because arm needs 0 for R0.

R=ken
OCL=31562
CL=31566

15 years agoAdd accessor for SIGTRAP cause in wait status
Austin Clements [Tue, 14 Jul 2009 02:20:38 +0000 (19:20 -0700)]
Add accessor for SIGTRAP cause in wait status

R=rsc
APPROVED=rsc
DELTA=7  (7 added, 0 deleted, 0 changed)
OCL=31563
CL=31565

15 years agoadd LockOSThread and UnlockOSThread to
Russ Cox [Tue, 14 Jul 2009 00:28:39 +0000 (17:28 -0700)]
add LockOSThread and UnlockOSThread to
runtime package for use by debugger,
which needs to make sure that all ptrace calls
about a given pid come from the same thread.

R=r
DELTA=175  (90 added, 63 deleted, 22 changed)
OCL=31546
CL=31558

15 years agorpc.
Rob Pike [Mon, 13 Jul 2009 23:52:57 +0000 (16:52 -0700)]
rpc.
client library.
muxes on both ends.

R=rsc
DELTA=178  (132 added, 26 deleted, 20 changed)
OCL=31541
CL=31556

15 years agofix undefined function error.
Russ Cox [Mon, 13 Jul 2009 23:48:09 +0000 (16:48 -0700)]
fix undefined function error.
before:
mainstart: undefined: main·init in mainstart
mainstart: branch out of range in mainstart
(95)    CALL    ,0(PC) [main·init]
mainstart: undefined: main·main in mainstart
mainstart: branch out of range in mainstart
(97)    CALL    ,0(PC) [main·main]
mainstart: doasm: notfound from=6f to=6f (95)    CALL    ,
mainstart: doasm: notfound from=6f to=6f (97)    CALL    ,
mainstart: doasm: notfound from=6f to=6f (95)    CALL    ,
mainstart: doasm: notfound from=6f to=6f (97)    CALL    ,
mainstart: doasm: notfound from=6f to=6f (95)    CALL    ,
mainstart: doasm: notfound from=6f to=6f (97)    CALL    ,

after:
mainstart: undefined: main·init in mainstart
mainstart: undefined: main·main in mainstart

R=r
DELTA=7  (1 added, 0 deleted, 6 changed)
OCL=31555
CL=31555

15 years agoadd note about once and closures
Russ Cox [Mon, 13 Jul 2009 22:54:41 +0000 (15:54 -0700)]
add note about once and closures

R=r
DELTA=13  (13 added, 0 deleted, 0 changed)
OCL=31535
CL=31549

15 years ago- handle type forward declarations correctly
Robert Griesemer [Mon, 13 Jul 2009 20:55:39 +0000 (13:55 -0700)]
- handle type forward declarations correctly

R=r
DELTA=8  (6 added, 0 deleted, 2 changed)
OCL=31537
CL=31537

15 years agothe beginnings of an rpc service.
Rob Pike [Mon, 13 Jul 2009 19:58:14 +0000 (12:58 -0700)]
the beginnings of an rpc service.
server side only; no client help yet (but it's easy).
no http yet.
service is synchronous.
all this will improve.

R=rsc
DELTA=403  (403 added, 0 deleted, 0 changed)
OCL=31522
CL=31536

15 years agothe name of the type was being sent twice. drop the outer instance.
Rob Pike [Mon, 13 Jul 2009 18:41:02 +0000 (11:41 -0700)]
the name of the type was being sent twice.  drop the outer instance.

R=rsc
DELTA=10  (5 added, 1 deleted, 4 changed)
OCL=31523
CL=31526

15 years agoebnflint command
Robert Griesemer [Mon, 13 Jul 2009 17:26:58 +0000 (10:26 -0700)]
ebnflint command
- basic verification of EBNF grammars
- tested with (and has testcase for) go_spec.html

R=rsc
DELTA=150  (148 added, 0 deleted, 2 changed)
OCL=31481
CL=31517

15 years agoBasic EBNF package:
Robert Griesemer [Mon, 13 Jul 2009 17:10:56 +0000 (10:10 -0700)]
Basic EBNF package:
- parsing of EBNF grammars
- basic consistency checks

R=rsc
DELTA=695  (695 added, 0 deleted, 0 changed)
OCL=31479
CL=31516

15 years agofixed typo where output arguments where pushed on to R0
Kai Backman [Mon, 13 Jul 2009 05:12:33 +0000 (22:12 -0700)]
fixed typo where output arguments where pushed on to R0
instead of SP.

R=rsc
APPROVED=rsc
DELTA=13  (3 added, 7 deleted, 3 changed)
OCL=31488
CL=31501

15 years agoFixed minor typo in asm file.
Kai Backman [Mon, 13 Jul 2009 05:12:19 +0000 (22:12 -0700)]
Fixed minor typo in asm file.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31487
CL=31500

15 years agofirst cut at gob decoder.
Rob Pike [Sat, 11 Jul 2009 22:45:54 +0000 (15:45 -0700)]
first cut at gob decoder.

R=rsc
DELTA=184  (181 added, 1 deleted, 2 changed)
OCL=31474
CL=31486

15 years agocapital_letter was never used
Robert Griesemer [Sat, 11 Jul 2009 01:21:07 +0000 (18:21 -0700)]
capital_letter was never used

R=rsc
DELTA=2  (0 added, 1 deleted, 1 changed)
OCL=31472
CL=31477

15 years agoreflection for interface set
Russ Cox [Fri, 10 Jul 2009 23:32:26 +0000 (16:32 -0700)]
reflection for interface set

rename map access methods to Elem, SetElem.

R=r
DELTA=95  (66 added, 7 deleted, 22 changed)
OCL=31456
CL=31469

15 years agocleanup in preparation for new scoping.
Russ Cox [Fri, 10 Jul 2009 23:29:26 +0000 (16:29 -0700)]
cleanup in preparation for new scoping.

walkstate -> walkstmt
walktype -> walkexpr; stmts moved to walkstmt

walktype and friends have a final Node **init
argument that can have side effects appended,
making it more explicit when they do and do not happen.
this replaces the old global addtop and addtotop.

delete switch map and interface conversion cases
(dropped from the language months ago).

R=ken
OCL=31465
CL=31468

15 years agosegfault
Ken Thompson [Fri, 10 Jul 2009 23:12:21 +0000 (16:12 -0700)]
segfault

R=rsc
OCL=31467
CL=31467

15 years ago- mark actual EBNF with pre-formatted class "ebnf" instead of "grammar"
Robert Griesemer [Fri, 10 Jul 2009 23:06:40 +0000 (16:06 -0700)]
- mark actual EBNF with pre-formatted class "ebnf" instead of "grammar"
- make real productions for Unicode char classes so that they can be parsed
- use `` for tokens that contain "'s or \'s so that they can be parsed
- added a missing '.'

This version of the spec passes through ebnflint (forthcoming) without errors.

R=r,rsc
DELTA=74  (3 added, 1 deleted, 70 changed)
OCL=31464
CL=31466

15 years agoone more piece of testing: 2nd send should not send type info.
Rob Pike [Fri, 10 Jul 2009 20:50:44 +0000 (13:50 -0700)]
one more piece of testing: 2nd send should not send type info.

R=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=31460
CL=31460

15 years agoa better encoder test, with a couple of fixes for bugs it uncovered.
Rob Pike [Fri, 10 Jul 2009 20:44:37 +0000 (13:44 -0700)]
a better encoder test, with a couple of fixes for bugs it uncovered.

R=rsc
DELTA=84  (65 added, 9 deleted, 10 changed)
OCL=31458
CL=31458

15 years agoDeepEqual for maps
Rob Pike [Fri, 10 Jul 2009 18:20:10 +0000 (11:20 -0700)]
DeepEqual for maps

R=rsc
DELTA=47  (30 added, 16 deleted, 1 changed)
OCL=31455
CL=31455

15 years agomention file name only once in error message
Robert Griesemer [Fri, 10 Jul 2009 17:01:08 +0000 (10:01 -0700)]
mention file name only once in error message

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31450
CL=31452

15 years agofix error messages
Robert Griesemer [Fri, 10 Jul 2009 17:00:25 +0000 (10:00 -0700)]
fix error messages

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=31449
CL=31451

15 years agoGive ptrace code a real home.
Austin Clements [Fri, 10 Jul 2009 00:35:32 +0000 (17:35 -0700)]
Give ptrace code a real home.

R=rsc
APPROVED=rsc
DELTA=422  (211 added, 211 deleted, 0 changed)
OCL=31425
CL=31431

15 years agoprinting maps
Rob Pike [Fri, 10 Jul 2009 00:30:07 +0000 (17:30 -0700)]
printing maps

R=rsc
DELTA=57  (39 added, 3 deleted, 15 changed)
OCL=31424
CL=31430

15 years agoreflection for methods
Russ Cox [Fri, 10 Jul 2009 00:27:49 +0000 (17:27 -0700)]
reflection for methods

R=r
DELTA=156  (135 added, 8 deleted, 13 changed)
OCL=31407
CL=31428

15 years agoProcess tracing interface.
Austin Clements [Fri, 10 Jul 2009 00:10:12 +0000 (17:10 -0700)]
Process tracing interface.

This is meant to be implemented per platform and used by
higher-level debugging libraries.

R=rsc
APPROVED=rsc
DELTA=211  (211 added, 0 deleted, 0 changed)
OCL=31003
CL=31423

15 years agofix to scanner_test after change to //-style comment token
Robert Griesemer [Thu, 9 Jul 2009 23:54:08 +0000 (16:54 -0700)]
fix to scanner_test after change to //-style comment token

R=rsc
OCL=31421
CL=31421

15 years agono longer necessary; directory not empty anymore
Russ Cox [Thu, 9 Jul 2009 23:44:20 +0000 (16:44 -0700)]
no longer necessary; directory not empty anymore

R=r
DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=31417
CL=31420

15 years agovarious spec tunings
Russ Cox [Thu, 9 Jul 2009 23:44:13 +0000 (16:44 -0700)]
various spec tunings

R=gri
DELTA=6  (0 added, 1 deleted, 5 changed)
OCL=31415
CL=31419

15 years agoShow BUG comments in godoc:
Robert Griesemer [Thu, 9 Jul 2009 23:38:17 +0000 (16:38 -0700)]
Show BUG comments in godoc:

ast.go:
- rename Comments -> CommentGroup (less confusion)
- change all comments/docs to be *CommentGroup

filter.go:
- do not remove unassociated comments from program as part
  of export filtering (they are needed by doc.go for BUG comments)

scanner.go:
- exclude '\n' from //-style comments

parser.go:
- rewrote collection of comments: now all collected comments
  are *ast.CommentGroups
- clarified distinction between leading and trailing comments
- fixed a bug in comment collection (parseGenDecl);
  corresponding test case is in printer/testdata
- extra documentation

doc.go:
- collect BUG comments
- corresponding fix for parser bug in comment collection

comment.go:
- simplified regex

printer.go:
- adjust comment printing to new representation

printer_test.go, testdata/*:
- enable printing of doc comments
- extended tests

package.html, package.txt:
- added Bugs section

gofmt:
- enable printing of doc comments

R=rsc
DELTA=339  (126 added, 38 deleted, 175 changed)
OCL=31403
CL=31416

15 years agostore ids rather than Types in the structs so they can be encoded.
Rob Pike [Thu, 9 Jul 2009 21:33:43 +0000 (14:33 -0700)]
store ids rather than Types in the structs so they can be encoded.
change Type to gobType.
fix some bugs around recursive structures.
lots of cleanup.
add the first cut at a type encoder.

R=rsc
DELTA=400  (287 added, 11 deleted, 102 changed)
OCL=31401
CL=31406

15 years agobug168 (dsymonds) + fix
Russ Cox [Thu, 9 Jul 2009 19:08:50 +0000 (12:08 -0700)]
bug168 (dsymonds) + fix

R=ken
OCL=31399
CL=31399

15 years agosegment fault
Ken Thompson [Thu, 9 Jul 2009 18:41:06 +0000 (11:41 -0700)]
segment fault

R=rsc
OCL=31396
CL=31396

15 years agoarchive/tar cleanups:
David Symonds [Thu, 9 Jul 2009 01:31:14 +0000 (18:31 -0700)]
archive/tar cleanups:
  - rename untar{,_test}.go to reader{,_test}.go.
  - fix up some comments.
  - improve test output if it fails.

R=rsc
APPROVED=rsc
DELTA=821  (400 added, 392 deleted, 29 changed)
OCL=31376
CL=31378

15 years agoreflection for functions
Russ Cox [Thu, 9 Jul 2009 01:16:09 +0000 (18:16 -0700)]
reflection for functions

add channel send type check (thanks austin).
fix type mismatch message.

R=r
DELTA=241  (225 added, 5 deleted, 11 changed)
OCL=31370
CL=31375

15 years agoanother nil reference
Ken Thompson [Thu, 9 Jul 2009 00:58:15 +0000 (17:58 -0700)]
another nil reference

R=rsc
OCL=31373
CL=31373

15 years agoBasic POSIX-compatible tar writer.
David Symonds [Thu, 9 Jul 2009 00:15:18 +0000 (17:15 -0700)]
Basic POSIX-compatible tar writer.

R=rsc
APPROVED=rsc
DELTA=456  (382 added, 66 deleted, 8 changed)
OCL=31246
CL=31372

15 years agoANY is already checked separately,
Russ Cox [Wed, 8 Jul 2009 23:39:19 +0000 (16:39 -0700)]
ANY is already checked separately,
so remove code from go.y.

show original types in badtype; don't remove pointers.
not sure why this was here but it confuses things
if the bad part involves two named pointer types
with different names but the same pointed-at type.

R=ken
OCL=31369
CL=31369

15 years agoreflection for channels
Russ Cox [Wed, 8 Jul 2009 22:00:54 +0000 (15:00 -0700)]
reflection for channels

R=r
DELTA=188  (171 added, 6 deleted, 11 changed)
OCL=31352
CL=31361

15 years ago- update functionality for printer test
Robert Griesemer [Wed, 8 Jul 2009 21:57:51 +0000 (14:57 -0700)]
- update functionality for printer test
- moved test files from data to testdata
- use tabs instead of spaces for layout

R=rsc
DELTA=129  (67 added, 60 deleted, 2 changed)
OCL=31353
CL=31360

15 years agocomment change
Robert Griesemer [Wed, 8 Jul 2009 21:56:20 +0000 (14:56 -0700)]
comment change

R=r
OCL=31359
CL=31359

15 years agoWriteFile util function
Robert Griesemer [Wed, 8 Jul 2009 21:48:09 +0000 (14:48 -0700)]
WriteFile util function

R=rsc
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=31349
CL=31358

15 years agoreflection for maps
Russ Cox [Wed, 8 Jul 2009 20:55:57 +0000 (13:55 -0700)]
reflection for maps

R=r
DELTA=304  (248 added, 34 deleted, 22 changed)
OCL=31345
CL=31347

15 years agobug fix: encOpFor etc. need to indirect
Rob Pike [Wed, 8 Jul 2009 04:05:24 +0000 (21:05 -0700)]
bug fix: encOpFor etc. need to indirect

R=rsc
DELTA=28  (7 added, 7 deleted, 14 changed)
OCL=31312
CL=31322

15 years agoprinter_test: first cut
Robert Griesemer [Wed, 8 Jul 2009 01:09:26 +0000 (18:09 -0700)]
printer_test: first cut

R=rsc
DELTA=169  (168 added, 0 deleted, 1 changed)
OCL=31319
CL=31321

15 years agothe ld-supplied typestrings are now obsolete
Russ Cox [Wed, 8 Jul 2009 00:35:45 +0000 (17:35 -0700)]
the ld-supplied typestrings are now obsolete

R=r
DELTA=167  (0 added, 167 deleted, 0 changed)
OCL=31304
CL=31316

15 years ago- print comments associated with declarations
Robert Griesemer [Tue, 7 Jul 2009 23:07:34 +0000 (16:07 -0700)]
- print comments associated with declarations
- fix a bug w/ optional semicolons

R=rsc
DELTA=46  (24 added, 0 deleted, 22 changed)
OCL=31306
CL=31311

15 years agomethod expansion bugs
Russ Cox [Tue, 7 Jul 2009 23:05:55 +0000 (16:05 -0700)]
method expansion bugs

R=ken
OCL=31310
CL=31310

15 years agoAdd entry points for parsing statements and expressions.
Austin Clements [Tue, 7 Jul 2009 22:47:01 +0000 (15:47 -0700)]
Add entry points for parsing statements and expressions.

R=gri
APPROVED=gri
DELTA=73  (48 added, 0 deleted, 25 changed)
OCL=31302
CL=31308

15 years agoUpdate the unsafe docs for the new type implementation.
Ian Lance Taylor [Tue, 7 Jul 2009 22:06:29 +0000 (15:06 -0700)]
Update the unsafe docs for the new type implementation.
Please correct as needed.

R=rsc,r
DELTA=10  (4 added, 1 deleted, 5 changed)
OCL=31305
CL=31305

15 years agotypestring.c is no longer needed.
Ian Lance Taylor [Tue, 7 Jul 2009 21:50:39 +0000 (14:50 -0700)]
typestring.c is no longer needed.

R=rsc
DELTA=35  (0 added, 34 deleted, 1 changed)
OCL=31301
CL=31303

15 years ago- ast.FilterExports: filter non-exported anonymous fields
Robert Griesemer [Tue, 7 Jul 2009 19:02:54 +0000 (12:02 -0700)]
- ast.FilterExports: filter non-exported anonymous fields
- fixed typo in parser.go
- removed test w/ syntax errors from gofmt test script

R=rsc
DELTA=25  (21 added, 0 deleted, 4 changed)
OCL=31296
CL=31298

15 years agobug167
Russ Cox [Tue, 7 Jul 2009 18:48:22 +0000 (11:48 -0700)]
bug167

R=ken
OCL=31295
CL=31295

15 years agoupdate tests for new reflect
Russ Cox [Tue, 7 Jul 2009 18:04:51 +0000 (11:04 -0700)]
update tests for new reflect

R=r
DELTA=12  (0 added, 0 deleted, 12 changed)
OCL=31240
CL=31290

15 years agogob: use new reflect
Russ Cox [Tue, 7 Jul 2009 18:04:42 +0000 (11:04 -0700)]
gob: use new reflect

R=r
DELTA=242  (68 added, 69 deleted, 105 changed)
OCL=31239
CL=31289

15 years agotemplate: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:04:34 +0000 (11:04 -0700)]
template: use new reflect interface (CL 31107)

R=r
DELTA=16  (3 added, 1 deleted, 12 changed)
OCL=31121
CL=31288

15 years agonet: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:04:26 +0000 (11:04 -0700)]
net: use new reflect interface (CL 31107)

R=r
DELTA=186  (55 added, 8 deleted, 123 changed)
OCL=31117
CL=31287

15 years agojson: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:04:18 +0000 (11:04 -0700)]
json: use new reflect interface (CL 31107)

R=r
DELTA=192  (52 added, 43 deleted, 97 changed)
OCL=31116
CL=31286

15 years agogo/printer: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:04:10 +0000 (11:04 -0700)]
go/printer: use new reflect interface (CL 31107)

R=gri
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=31115
CL=31285

15 years agodatafmt: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:03:50 +0000 (11:03 -0700)]
datafmt: use new reflect interface (CL 31107)

R=gri
DELTA=70  (7 added, 17 deleted, 46 changed)
OCL=31113
CL=31283

15 years agobase64_test: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:03:40 +0000 (11:03 -0700)]
base64_test: use new reflect interface (CL 31107)

R=austin
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=31112
CL=31282

15 years agofmt: use new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:03:31 +0000 (11:03 -0700)]
fmt: use new reflect interface (CL 31107)

R=r
DELTA=208  (37 added, 63 deleted, 108 changed)
OCL=31111
CL=31281

15 years agoupdate reflect supporting functions,
Russ Cox [Tue, 7 Jul 2009 18:03:12 +0000 (11:03 -0700)]
update reflect supporting functions,
tests to use new reflect interface.

also make tests a real gotest.

depends on CL 31107

R=r
DELTA=582  (56 added, 194 deleted, 332 changed)
OCL=31108
CL=31279

15 years ago6g, 8g: generate data structures for new reflect interface (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:03:04 +0000 (11:03 -0700)]
6g, 8g: generate data structures for new reflect interface (CL 31107)

R=ken
OCL=31122
CL=31278

15 years agoruntime: use new reflect data structures (CL 31107)
Russ Cox [Tue, 7 Jul 2009 18:02:54 +0000 (11:02 -0700)]
runtime: use new reflect data structures (CL 31107)
in place of sigi, sigt.

R=ken
OCL=31118
CL=31277

15 years agoinstall new reflect:
Russ Cox [Tue, 7 Jul 2009 18:02:44 +0000 (11:02 -0700)]
install new reflect:
rename ntype.go and nvalue.go to type.go and value.go

R=r
DELTA=4295  (761 added, 2819 deleted, 715 changed)
OCL=31238
CL=31276

15 years agobug167: types declared in different scopes should
Robert Griesemer [Tue, 7 Jul 2009 17:42:42 +0000 (10:42 -0700)]
bug167: types declared in different scopes should
be independent of each other

R=rsc
DELTA=28  (28 added, 0 deleted, 0 changed)
OCL=31271
CL=31273

15 years agofix test
Robert Griesemer [Tue, 7 Jul 2009 17:30:31 +0000 (10:30 -0700)]
fix test

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=31270
CL=31272