<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/misc/cgo/errors/errors_test.go, branch json-isValidNumber</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2022-06-25T19:07:01Z</updated>
<entry>
<title>cmd/go: prepend builtin prolog when checking for preamble errors</title>
<updated>2022-06-25T19:07:01Z</updated>
<author>
<name>qmuntal</name>
<email>quimmuntal@gmail.com</email>
</author>
<published>2022-01-20T11:46:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4f45ec5963a4b72e0c4ddbdfa84f9cb374692eea'/>
<id>urn:sha1:4f45ec5963a4b72e0c4ddbdfa84f9cb374692eea</id>
<content type='text'>
Fixes #50710

Change-Id: I62feddbe3eaae9605d196bec60d378614436603a
Reviewed-on: https://go-review.googlesource.com/c/go/+/379754
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>all: use bytes.Cut, strings.Cut</title>
<updated>2021-10-06T15:53:04Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-09-22T14:46:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4d8db00641cc9ff4f44de7df9b8c4f4a4f9416ee'/>
<id>urn:sha1:4d8db00641cc9ff4f44de7df9b8c4f4a4f9416ee</id>
<content type='text'>
Many uses of Index/IndexByte/IndexRune/Split/SplitN
can be written more clearly using the new Cut functions.
Do that. Also rewrite to other functions if that's clearer.

For #46336.

Change-Id: I68d024716ace41a57a8bf74455c62279bde0f448
Reviewed-on: https://go-review.googlesource.com/c/go/+/351711
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>misc/cgo/errors: use expected column numbers</title>
<updated>2021-06-05T04:40:03Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2021-06-04T15:16:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9d669ed47a502ca540c7f3329f84d89fc0c53971'/>
<id>urn:sha1:9d669ed47a502ca540c7f3329f84d89fc0c53971</id>
<content type='text'>
The test was using the wrong column numbers, and was erroneously
passing because there happened to be line numbers that matched those
column numbers. Change the test harness to require the expected line
number for the ERROR HERE regexp case, so that this doesn't happen again.

Also rename a couple of variables in the test to avoid useless
redeclaration errors.

Fixes #46534

Change-Id: I2fcbf5e379c346de5346035c73d174a3980c0927
Reviewed-on: https://go-review.googlesource.com/c/go/+/324970
Trust: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>all: update references to symbols moved from io/ioutil to io</title>
<updated>2021-04-05T17:51:15Z</updated>
<author>
<name>KimMachineGun</name>
<email>geon0250@gmail.com</email>
</author>
<published>2021-04-03T08:10:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a040ebeb980d1a712509fa3d8073cf6ae16cbe78'/>
<id>urn:sha1:a040ebeb980d1a712509fa3d8073cf6ae16cbe78</id>
<content type='text'>
Update references missed in CL 263142.

For #41190

Change-Id: I778760a6a69bd0440fec0848bdef539c9ccb4ee1
GitHub-Last-Rev: dda42b09fff36dc08ec1cdec50cc19e3da5058e5
GitHub-Pull-Request: golang/go#42874
Reviewed-on: https://go-review.googlesource.com/c/go/+/273946
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
Trust: Cherry Zhang &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: do not rewrite call if there are more args than parameters</title>
<updated>2019-07-12T17:31:29Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2019-07-11T18:57:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e831719469a5acfad7d8f73a976e2959815d0e27'/>
<id>urn:sha1:e831719469a5acfad7d8f73a976e2959815d0e27</id>
<content type='text'>
We already skipped rewriting the call if there were fewer args than
parameters. But we can also get a cgo crash if there are more args,
if at least one of the extra args uses a name qualified with "C.".
Skip the rewrite, since the build will fail later anyhow.

Fixes #33061

Change-Id: I62ff3518b775b502ad10c2bacf9102db4c9a531c
Reviewed-on: https://go-review.googlesource.com/c/go/+/185797
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Andrew Bonventre &lt;andybons@golang.org&gt;
</content>
</entry>
<entry>
<title>misc/cgo/errors: consolidate test work</title>
<updated>2019-05-21T18:15:05Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2019-05-16T14:00:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=798e0b38ed8b23da010b1a8cd6c91f201248e40d'/>
<id>urn:sha1:798e0b38ed8b23da010b1a8cd6c91f201248e40d</id>
<content type='text'>
Build a single binary containing all the TestPointerChecks
instead of building many small binaries,
each with its own cgo+compile+link invocation.
This cuts 'go test -run=TestPointerChecks'
from 6.7r 35.5u 26.1s to 2.1r 2.1u 1.4s.

Move as many cgo checks as possible into fewer test files
for TestReportsTypeErrors too.
This cuts 'go test -run=TestReportsTypeErrors'
from 2.1r 6.7u 6.7s to 1.5r 2.5u 2.5s.

After this change, all.bash runs in ~4:30 on my laptop.

For #26473.

Change-Id: I3787448b03689a1f62dd810957ab6013bb75582f
Reviewed-on: https://go-review.googlesource.com/c/go/+/177599
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>misc/cgo/errors: fix tests in module mode</title>
<updated>2019-02-22T17:24:25Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2019-02-21T14:06:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8ea27e117fffbb14ef3605a641444b79e9bd6c9e'/>
<id>urn:sha1:8ea27e117fffbb14ef3605a641444b79e9bd6c9e</id>
<content type='text'>
Updates #30228

Change-Id: I84bc705591bdb3da0106404b24353251939355b8
Reviewed-on: https://go-review.googlesource.com/c/163209
Reviewed-by: Jay Conrod &lt;jayconrod@google.com&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: set correct column for user-written code</title>
<updated>2018-12-12T00:08:03Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2018-11-28T22:19:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=12c0f1b3e6ace3972bb3d328b2bdcadb6dceb198'/>
<id>urn:sha1:12c0f1b3e6ace3972bb3d328b2bdcadb6dceb198</id>
<content type='text'>
Take advantage of the new /*line*/ comments.

Fixes #26745

Change-Id: I8098642e0f11f7418fe81b9a08dbe07671f930fe
Reviewed-on: https://go-review.googlesource.com/c/151598
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: reject names that are likely to be mangled C name</title>
<updated>2018-12-05T14:12:14Z</updated>
<author>
<name>Hiroshi Ioka</name>
<email>hirochachacha@gmail.com</email>
</author>
<published>2018-12-04T23:01:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5e1727892bf36076ee45c417b56bba32801ffbd7'/>
<id>urn:sha1:5e1727892bf36076ee45c417b56bba32801ffbd7</id>
<content type='text'>
Fixes #28721

Change-Id: I00356f3a9b0c2fb21dc9c2237dd5296fcb3b319b
Reviewed-on: https://go-review.googlesource.com/c/152657
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: use a plausible position for typedef error messages</title>
<updated>2018-12-03T20:26:04Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2018-12-03T18:53:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=54cbc5b4bf554742b7037308bd45da010340628d'/>
<id>urn:sha1:54cbc5b4bf554742b7037308bd45da010340628d</id>
<content type='text'>
Fixes #28069

Change-Id: I7e0f96b8b6d123de283325fcb78ec76455050f6d
Reviewed-on: https://go-review.googlesource.com/c/152158
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
</content>
</entry>
</feed>
