Commit Graph

24514 Commits

Author SHA1 Message Date
Matthew Flatt
cb7200295e ffi/unsafe/com: fix custodian and multi-instance problems 2012-04-02 14:36:23 -06:00
Robby Findler
f5449f38e8 adjust url-exception so it recognizes the same exceptions it used to 2012-04-01 22:16:35 -05:00
Matthew Flatt
2bf05a8df3 ffi/unsafe/com repairs 2012-04-01 12:58:16 -06:00
Asumu Takikawa
4c022046d5 Fix contract on set-argb-pixels 2012-04-01 01:54:33 -04:00
Robby Findler
4360e62c22 improve the gui for specifying the submodules to run 2012-03-31 22:46:44 -05:00
Robby Findler
033536e746 select the contents of the search string in the 'search in files' dialog
closes PR 12667
2012-03-31 12:12:50 -05:00
Asumu Takikawa
f13d9a56d2 Update racket/draw contracts. 2012-03-31 11:46:04 -04:00
Asumu Takikawa
94a837fcc8 Remove dynamic checks from racket/draw.
Now that this code has contracts, these checks are
redundant. The contracts are at least as precise as the
checks are.
2012-03-31 11:46:04 -04:00
Asumu Takikawa
c758f65a0b Uncomment & fix racket/draw contracts
Use dummy values (see also racket/snip) to avoid cycles.
2012-03-31 11:46:04 -04:00
Matthew Flatt
c83df32440 try to improve docs for `make-keyword-procedure' 2012-03-31 07:45:53 -06:00
Mike Sperber
cb438298cd Synch German string constants with latest. 2012-03-31 14:06:08 +02:00
Jay McCarthy
1d19a844f4 Moving tests re: Sam 2012-03-30 23:54:42 -06:00
Asumu Takikawa
0f5f611f12 Fix docs for get-selected-text-color method. 2012-03-31 00:43:43 -04:00
Asumu Takikawa
5340309080 Make has-alpha-channel? return a boolean.
This method used to violate the documented contract.
2012-03-30 23:34:35 -04:00
Asumu Takikawa
2e1d59f7b2 Class contracts for racket/snip. 2012-03-30 23:34:35 -04:00
Asumu Takikawa
303110583b Class contracts for racket/draw. 2012-03-30 23:34:35 -04:00
Asumu Takikawa
d7fefc848b Fix requires to avoid circular dependencies. 2012-03-30 23:34:34 -04:00
Robby Findler
8e35fd01a5 forgot the result contract 2012-03-30 20:57:53 -05:00
Robby Findler
4b57482298 adjust DrRacket submodule-running options so the user
has more control over which ones get run
2012-03-30 16:42:34 -05:00
Robby Findler
92e8740105 add the #:validate argument to get-text-from-user 2012-03-30 16:42:34 -05:00
Kevin Tew
a37cfa4e08 Fix compiler warning 2012-03-30 12:18:55 -06:00
Kevin Tew
f777020eef [Distributed Places] Renamed uses of vm to node, removed export of coercion functions 2012-03-30 11:58:39 -06:00
Robby Findler
97b76d474e some cleanups, thanks to Eli 2012-03-30 10:44:42 -05:00
Robby Findler
7e86c04847 update module language part of language-test.rkt for submodules 2012-03-30 10:44:42 -05:00
Matthew Flatt
2785f9cf9a fix priority of refresh for SGL example
While it looks this example was always broken in a sense, the
`racket/gui' make the problem more prominent.

Closes PR 12662
2012-03-30 07:56:43 -06:00
Robby Findler
5c7a299c04 make DrRacket run test submodules (in the module language) by default.
Add an option in the language dialog to disable that behavior
2012-03-29 22:12:14 -05:00
Jay McCarthy
1ce1277d1e Set the name statically re: Robby 2012-03-29 18:51:02 -06:00
Robby Findler
86572cc8c3 adjust the contract on string->url so that it actually catches all of
the errors that would be signalled by the body. also, remove
url-regexp from the exports (it was only recently added)

I believe this eliminates two of Eli's concerns:

  - the contract is no longer so painful to read

  - the performance is more reasonable.

Specifically, for the performance, here are the times I see to call
string->url on "http://www.racket-lang.org":

no contract: any/c
cpu time: 564 real time: 566 gc time: 3

weak contract: (-> (or/c string? bytes?) url?)
cpu time: 590 real time: 590 gc time: 3

strong, regexp-based contract:
(-> (or/c (not/c #rx"^([^:/?#]*):") #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:") url?)
cpu time: 632 real time: 633 gc time: 5

This appears to be about a 10% slowdown for the regexp-based contract
over the weaker contract.

related to PR 12652
2012-03-29 19:31:32 -05:00
Jay McCarthy
1fd8865e23 Fixing PR12658 2012-03-29 16:06:32 -06:00
Jay McCarthy
13e36fbec4 Autobib errors with no authors or dates on a bib entry. Test included. 2012-03-29 15:44:27 -06:00
Matthew Flatt
d67997293d switch places tests to raco test' instead of racket -tm' protocol 2012-03-29 14:55:14 -06:00
Matthew Flatt
63a4414863 make --run-if-absent' the default mode for raco test'
This convention makes it easier to deal with a set
of ".rkt" files that implement tests, while a `test'
module implements a `main'-like split for some of the
files.
2012-03-29 14:55:14 -06:00
Matthew Flatt
96e4fa0d13 promote raco test'; demote raco unpack' 2012-03-29 14:55:14 -06:00
Arek Korbik
7bf475b7cc Fix sleeping on infinite timeouts.
Closes PR 12661
2012-03-29 14:55:14 -06:00
Matthew Flatt
738cac3d24 generalize `malloc' to allow a 0-sized request
Past experience suggests that this is generally better than adding
`zero?' tests at various places that might otherwise call `malloc'.
2012-03-29 14:55:14 -06:00
Siddharth Agarwal
a73b9bb788 ffi: extend _list and _vector to support zero-length output 2012-03-29 14:55:14 -06:00
Danny Yoo
0cfb3f1d39 fix flush for `make-pipe-with-specials'
Closes PR 12659
2012-03-29 14:55:13 -06:00
Matthew Flatt
f301838511 fix a syntax-object problem related to module bindings
The immediate symptom was that `(provide (all-defined-out))'
didn't work in a `module+'-based submodule, but there were
also non-submodule ways to expose the problem.
2012-03-29 14:55:13 -06:00
Vincent St-Amour
69899c33fc Fix type of expt.
Closes PR 12660.
2012-03-29 15:39:24 -04:00
Vincent St-Amour
054f4d9b56 Fix optimization of first, rest, etc. 2012-03-29 15:39:24 -04:00
John Clements
fd6dddb8d0 deleted test-docs-complete.rkt 2012-03-29 10:10:01 -07:00
Matthew Flatt
ebb72d40e8 avoid bad interior pointer 2012-03-29 08:58:01 -06:00
Matthew Flatt
dfca7d89d9 documentation clarification 2012-03-29 06:46:58 -06:00
Matthew Flatt
140a50d04e fix a problem with submodule expansion 2012-03-29 06:46:58 -06:00
Robby Findler
cd576ffb3c adjust the easter egg test suite so it can be loaded by Sam's lib
to run all kinds of days.

also fix a bug so that it properly resets the prefs back to the
defaults (and thus has to explicitly set the language)
2012-03-29 07:32:18 -05:00
Kevin Tew
8c22c6c4e5 Remove unused variable compiler warning 2012-03-28 20:05:06 -06:00
Kevin Tew
7fde2894d1 Distributed place cleanup due to feedback from Matthew
Removed use of (get-current-module-path)
Removed /2s
Removed use of vm and compute adjetives
2012-03-28 18:53:37 -06:00
Kevin Tew
bba967144b quote-module-name and quote-module-path now take an optional submodule path
(quote-module-name "..")
(quote-module-path ".." 'A 'B)
2012-03-28 18:52:02 -06:00
Jay McCarthy
f6b2913b26 Moving the place where formlet tech links go from the technical description to the tutorial 2012-03-28 14:37:40 -06:00
Robby Findler
a90d48975a use regexp-match? instead of regexp-match in regexp-based contracts 2012-03-28 10:59:31 -05:00