summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-12-11restrict declarations of type map/chan/stringKen Thompson1-2/+21
(they must be pointers) R=r OCL=21009 CL=21009
2008-12-11reject struct to interface conversion for nowRuss Cox1-1/+6
R=ken OCL=21007 CL=21007
2008-12-11add uintptr to reflect and printRob Pike3-35/+66
R=rsc DELTA=70 (35 added, 4 deleted, 31 changed) OCL=20993 CL=20998
2008-12-11if the typestring gives a field name of "?", drop it.Rob Pike3-4/+11
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 Pike3-6/+25
R=rsc DELTA=25 (19 added, 0 deleted, 6 changed) OCL=20985 CL=20985
2008-12-11add JSON libraryRuss Cox8-0/+1139
R=r DELTA=1127 (1127 added, 0 deleted, 0 changed) OCL=20975 CL=20983
2008-12-11fix race with fresh perforce checkoutsRuss Cox1-6/+15
R=r DELTA=15 (9 added, 0 deleted, 6 changed) OCL=20977 CL=20981
2008-12-11only generate non-trivial signatures in theRuss Cox5-18/+25
file in which they occur. avoids duplicate trampoline generation across multiple files. R=ken OCL=20976 CL=20980
2008-12-10looks like i broke the buildRuss Cox1-1/+1
TBR=r OCL=20963 CL=20963
2008-12-10DNS messagesRuss Cox2-2/+686
R=r DELTA=685 (683 added, 0 deleted, 2 changed) OCL=20926 CL=20951
2008-12-10bugKen Thompson1-0/+3
R=r OCL=20940 CL=20940
2008-12-10assorted cleanup and fixesRuss Cox8-98/+128
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-10StringBytes help routine, common functionality put into package io for sharing.Rob Pike1-0/+10
R=rsc DELTA=10 (10 added, 0 deleted, 0 changed) OCL=20928 CL=20931
2008-12-10bug120Ken Thompson1-8/+17
R=r OCL=20921 CL=20921
2008-12-10string hash function faults w empty stringKen Thompson1-0/+2
fixes maps[""] R=r OCL=20909 CL=20911
2008-12-102 minor bugsKen Thompson2-6/+6
R=r OCL=20906 CL=20906
2008-12-09bug126Ken Thompson4-23/+24
R=r OCL=20879 CL=20879
2008-12-09bug127Ken Thompson1-3/+10
R=r OCL=20874 CL=20874
2008-12-09fix historical editing glitchRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20871 CL=20873
2008-12-09implement two TODOs in reflect:Rob Pike1-30/+23
- 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-09chans and maps of interfacesRuss Cox4-23/+35
R=r DELTA=746 (729 added, 1 deleted, 16 changed) OCL=20858 CL=20858
2008-12-09use unsafe.pointer in reflection objectsRob Pike6-313/+55
R=rsc DELTA=326 (4 added, 259 deleted, 63 changed) OCL=20853 CL=20856
2008-12-09- fixed bug with unicode text formatting: the number of bytesRobert Griesemer2-95/+201
per rune cannot be computed correctly if we have only parts of a rune - delay computation - added html filtering mode: html tags and entities are ignored for width computations - expanded tests: - extra tests for html text - extra tests that write text in various portions R=r DELTA=227 (126 added, 20 deleted, 81 changed) OCL=20833 CL=20835
2008-12-09robs bug converting unsafe.pointerKen Thompson2-0/+8
R=r OCL=20834 CL=20834
2008-12-09replace assembly casts with unsafe.pointerRuss Cox13-164/+77
R=r DELTA=178 (18 added, 101 deleted, 59 changed) OCL=20822 CL=20826
2008-12-09more impossible time errorsRuss Cox1-4/+4
R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=20788 CL=20818
2008-12-08conversion to/fromKen Thompson1-0/+16
any pointer or uintptr and unsafe.pointer R=r OCL=20795 CL=20795
2008-12-08foundation for import unsafeKen Thompson9-25/+57
R=r OCL=20794 CL=20794
2008-12-08avoid skew in time.Tick; remove errors from time.Seconds, time.NanosecondsRuss Cox3-25/+36
R=r DELTA=46 (21 added, 10 deleted, 15 changed) OCL=20785 CL=20787
2008-12-08use Note sched.stopped correctlyRuss Cox1-1/+6
R=r DELTA=6 (5 added, 0 deleted, 1 changed) OCL=20777 CL=20779
2008-12-08pick up symbol for JMP main(SB)Russ Cox1-1/+1
but not JMP main (label). R=ken OCL=20724 CL=20724
2008-12-06allowed syntax for rangeKen Thompson4-22/+75
a range m (implies :=) a,b range m (implies :=) a:b range m (implies :=) a := range m a,b := range m a:b := range m a = range m a,b = range m a:b = range m R=r OCL=20676 CL=20676
2008-12-05range statementKen Thompson8-55/+251
R=r OCL=20667 CL=20667
2008-12-05add support for ref counts to memory allocator.Russ Cox6-100/+145
mark and sweep, stop the world garbage collector (intermediate step in the way to ref counting). can run pretty with an explicit gc after each file. R=r DELTA=502 (346 added, 143 deleted, 13 changed) OCL=20630 CL=20635
2008-12-05use sync.Mutex instead of a channel for lockingRob Pike2-5/+6
R=rsc DELTA=12 (3 added, 1 deleted, 8 changed) OCL=20631 CL=20634
2008-12-05- handle UTF-8 text in tabwriterRobert Griesemer2-55/+79
R=r DELTA=84 (27 added, 3 deleted, 54 changed) OCL=20539 CL=20584
2008-12-04strings.utflen -> utf8.RuneCount, RuneCountInStringRuss Cox5-43/+62
R=r DELTA=94 (52 added, 33 deleted, 9 changed) OCL=20547 CL=20552
2008-12-04empty switches -- bug128Ken Thompson2-3/+3
R=r OCL=20520 CL=20522
2008-12-04const/var/iota declarations as discussedKen Thompson3-38/+100
R=r OCL=20506 CL=20506
2008-12-04don't warn anymore about missing importsRuss Cox1-1/+1
(happens legitimately in c and assembly objects). R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20497 CL=20499
2008-12-04emit dynamically linked 6.out on darwin instead of static,Russ Cox2-5/+39
unless given -d flag. the resulting binary doesn't *use* any dynamic libraries, it just has a reference to the dynamic linker and an empty list of needed symbols and libraries. this is enough to make 6.out binaries that can be run under dtrace / dtruss. R=r DELTA=39 (34 added, 0 deleted, 5 changed) OCL=20476 CL=20482
2008-12-04Make run.bash run all the current tests.Ian Lance Taylor2-0/+8
R=r,rsc DELTA=8 (8 added, 0 deleted, 0 changed) OCL=20468 CL=20473
2008-12-04add mutex.MutexRuss Cox10-1/+363
R=r DELTA=349 (348 added, 0 deleted, 1 changed) OCL=20380 CL=20472
2008-12-04fix build - forgot these filesRuss Cox3-0/+115
TBR=r OCL=20448 CL=20448
2008-12-04add stub routines stackalloc() and stackfree().Russ Cox5-10/+55
run oldstack on g0's stack, just like newstack does, so that oldstack can free the old stack. R=r DELTA=53 (44 added, 0 deleted, 9 changed) OCL=20404 CL=20433
2008-12-03add time.Tick()Russ Cox5-15/+134
R=r DELTA=130 (115 added, 1 deleted, 14 changed) OCL=20376 CL=20385
2008-12-03preparation for exec.Russ Cox17-106/+327
* syscall: add syscall.RawSyscall, which doesn't use sys.entersyscall/sys.exitsyscall add syscall.dup2 add syscall.BytePtrPtr add syscall.Rusage, RusagePtr add syscall.F_GETFD, F_SETFD, FD_CLOEXEC * runtime: clean up, correct signal handling. can now survive (continue running after) a signal. R=r DELTA=394 (286 added, 51 deleted, 57 changed) OCL=20351 CL=20369
2008-12-03clean stack trace code.Russ Cox1-39/+29
format is unchanged but shows all frames (old loop stopped one frame early). wreck=; 6.out cannot convert type *main.S·interface2 to interface main.I·interface2: missing method Foo throw: interface conversion SIGSEGV: segmentation violation Faulting address: 0x0 pc: 0x256d throw+0x46 /home/rsc/go/src/runtime/runtime.c:68 throw(0x863a, 0x0) hashmap+0x188 /home/rsc/go/src/runtime/iface.c:167 hashmap(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...) sys·ifaceT2I+0xa8 /home/rsc/go/src/runtime/iface.c:201 sys·ifaceT2I(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...) main·main+0x4e /home/rsc/go/src/runtime/rt0_amd64_darwin.s:87 main·main() mainstart+0xf /home/rsc/go/src/runtime/rt0_amd64.s:70 mainstart() sys·goexit /home/rsc/go/src/runtime/proc.c:110 sys·goexit() R=r DELTA=44 (5 added, 15 deleted, 24 changed) OCL=20358 CL=20368
2008-12-03Make strconv.atof("-0") return -0Russ Cox2-7/+9
and update test. R=iant DELTA=11 (3 added, 1 deleted, 7 changed) OCL=20350 CL=20362
2008-12-03import/export of exact mp floating constantsKen Thompson4-9/+60
new syntax for exact mp floating constants decimal_int ( "p" | "P" ) [ "+" | "-" ] decimal_int the value is decimal1 * 2^decimal2 R=r OCL=20357 CL=20357