aboutsummaryrefslogtreecommitdiff
path: root/src/lib/reflect
AgeCommit message (Collapse)Author
2008-12-11if the typestring gives a field name of "?", drop it.Rob Pike
R=rsc DELTA=11 (7 added, 0 deleted, 4 changed) OCL=20988 CL=20988
2008-12-11handle the nil interface better in reflect and printRob Pike
R=rsc DELTA=25 (19 added, 0 deleted, 6 changed) OCL=20985 CL=20985
2008-12-10assorted cleanup and fixesRuss Cox
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-09implement two TODOs in reflect:Rob Pike
- delete vestigial SetString method - make type map use interface instead of *interface R=rsc DELTA=31 (0 added, 7 deleted, 24 changed) OCL=20861 CL=20863
2008-12-09use unsafe.pointer in reflection objectsRob Pike
R=rsc DELTA=326 (4 added, 259 deleted, 63 changed) OCL=20853 CL=20856
2008-12-05use sync.Mutex instead of a channel for lockingRob Pike
R=rsc DELTA=12 (3 added, 1 deleted, 8 changed) OCL=20631 CL=20634
2008-11-24replay CL 19916 and CL 19913 now that the build can handle themRuss Cox
TBR=r OCL=19924 CL=19934
2008-11-24Automated g4 rollback of changelist 19916.Russ Cox
*** Reason for rollback *** broke build *** Original change description *** utf8: add InString routines for decoding in strings reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests TBR=r OCL=19920 CL=19920
2008-11-24utf8: add InString routines for decoding in stringsRuss Cox
reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests R=r DELTA=756 (597 added, 121 deleted, 38 changed) OCL=19888 CL=19916
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19change naming convention for tests fromRob Pike
test*.go to *test.go R=rsc DELTA=1747 (864 added, 855 deleted, 28 changed) OCL=19666 CL=19666
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19leave 6.out around after gotest;Russ Cox
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18gobuild changes.Russ Cox
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-17correctly rounded floating-point conversionsRuss Cox
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
2008-11-14add cov, prof to default build; clean up compiler warningsRuss Cox
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-11-13more array methodsRuss Cox
R=r OCL=19172 CL=19172
2008-11-12add some support for modifying what pointers point toRob Pike
R=rsc DELTA=27 (16 added, 11 deleted, 0 changed) OCL=19130 CL=19132
2008-11-12reflect.PtrValue.SetSub() to set pointersRob Pike
R=rsc OCL=19101 CL=19101
2008-11-10Add a cache to avoid unnecessary parsing of type strings when constructing ↵Rob Pike
values R=rsc DELTA=12 (9 added, 0 deleted, 3 changed) OCL=18916 CL=18921
2008-11-10Protocol buffer encoding.Rob Pike
R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918
2008-11-06simpleminded ascii to floating point conversionRob Pike
R=rsc DELTA=111 (107 added, 0 deleted, 4 changed) OCL=18720 CL=18725
2008-11-05trim tags from type strings for structure fields.Rob Pike
R=rsc DELTA=28 (14 added, 4 deleted, 10 changed) OCL=18561 CL=18563
2008-11-05minor tweak to still non-portable alignment calculationRob Pike
R=rsc DELTA=4 (1 added, 1 deleted, 2 changed) OCL=18528 CL=18533
2008-11-05make sizes and offsets int, not uint64Rob Pike
add Value.Interface, to extract an empty interface that can be converted to a regular Go value of the appropriate type, if known. R=rsc DELTA=49 (2 added, 0 deleted, 47 changed) OCL=18526 CL=18526
2008-11-05fix bugs parsing functions in reflect library.Rob Pike
parsed interfaces wrong. could not handle a function with a single type as a return value. R=rsc DELTA=34 (20 added, 2 deleted, 12 changed) OCL=18511 CL=18520
2008-11-04type strings through the reflection library.Rob Pike
R=rsc DELTA=187 (107 added, 28 deleted, 52 changed) OCL=18510 CL=18510
2008-11-03remove unnecessary 6g workaroundRuss Cox
R=r DELTA=51 (0 added, 0 deleted, 51 changed) OCL=18399 CL=18402
2008-11-03move DotDotDot into next case - hit submit too fast last time.Rob Pike
R=rsc DELTA=5 (1 added, 2 deleted, 2 changed) OCL=18395 CL=18398
2008-11-03support ... as a special type in the reflection library.Rob Pike
R=rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=18386 CL=18393
2008-11-03update names after 6g changeRuss Cox
TBR=r OCL=18381 CL=18383
2008-11-02add creator for missing types, to avoid crashes whenRob Pike
signature is absent from object file. R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=18315 CL=18323
2008-10-31Add support for the basic type "bool".Ian Lance Taylor
R=r DELTA=51 (51 added, 0 deleted, 0 changed) OCL=18283 CL=18290
2008-10-31\x00 for NUL in type string.Rob Pike
R=rsc DELTA=14 (9 added, 0 deleted, 5 changed) OCL=18281 CL=18281
2008-10-31add mention of tag string to grammar commentRob Pike
R=rsc DELTA=3 (2 added, 0 deleted, 1 changed) OCL=18232 CL=18232
2008-10-30reflection support for tag stringsRob Pike
R=rsc DELTA=86 (77 added, 0 deleted, 9 changed) OCL=18201 CL=18203
2008-10-29./6.outRuss Cox
R=ken OCL=18079 CL=18079
2008-10-29update reflection library to int/int32 etc. splitRob Pike
fmt still to come R=rsc DELTA=168 (141 added, 19 deleted, 8 changed) OCL=18064 CL=18071
2008-10-26use embedded types to save boilerplate - almost 300 lines' worthRob Pike
R=rsc DELTA=427 (53 added, 302 deleted, 72 changed) OCL=17857 CL=17868
2008-10-24replaced baked-in address with @ so test passes on linuxRob Pike
R=rsc OCL=17841 CL=17841
2008-10-24add printf to fmt.Rob Pike
uses reflection to determine arguments. for now, the arguments must be provided as a struct; the compiler will soon do the packaging automatically for "..." parameters. R=rsc DELTA=1436 (909 added, 520 deleted, 7 changed) OCL=17823 CL=17831
2008-10-23make reflect compile againRob Pike
R=rsc DELTA=9 (4 added, 4 deleted, 1 changed) OCL=17753 CL=17755
2008-10-23add reflect to build, clean up testRob Pike
R=rsc DELTA=341 (188 added, 151 deleted, 2 changed) OCL=17678 CL=17750
2008-10-23use &T{1,2,3} constructor for simple new casesRuss Cox
R=r OCL=17691 CL=17719
2008-10-22move reflection code into final place.Rob Pike
this is just a branch. next cl will update and add to build R=rsc DELTA=4528 (2264 added, 2264 deleted, 0 changed) OCL=17670 CL=17672