Commit Graph

21591 Commits

Author SHA1 Message Date
Asumu Takikawa
2c70c98228 Fix a few framework contracts to match code
(cherry picked from commit 6c3284a828)
2011-07-18 12:42:46 -04:00
Eli Barzilay
225f563bda Add a new #:dont-re-require-enter' flag for enter!', to avoid
requiring itself into the entered namespace.

This makes it useful in some cases where this require leads to a
dependency cycle, eg (enter! racket/list).  It's obviously not useful
for use as-is, since you will not have a bound `enter!' to get out of
the namespace (and possibly no `require' to get it) -- but it is useful
for meta-tools like xrepl.  This is why the flag is verbose.  `xrepl'
now uses this flag.

Also, the check for valid keywords for the form is now done at runtime
rather than in the macro.  This doesn't matter in this case, since the
form is intended for interactive use anyway.

Also, separate the two parts of `enter-load/use-compiled' (it was
defined curried, but didn't use it).
(cherry picked from commit db7f2b4542)
2011-07-18 12:42:42 -04:00
Eli Barzilay
0b0de351fd New `xrepl' collection.
(cherry picked from commit c544ebfe6c)
2011-07-14 17:29:53 -04:00
Stephen Bloch
14ed19da09 Corrected signature of scene+line to match examples and actual behavior
(sixth argument can be a pen or color, not just a color).
(cherry picked from commit d510f6aecc)
2011-07-14 17:29:43 -04:00
Stephen Bloch
3a2e4969e9 Corrected an error message that said it wanted a real, but actually
expected an integer.
(cherry picked from commit 83fd1e968d)
2011-07-14 17:29:31 -04:00
Eli Barzilay
a606c3a988 Shift typo.
(cherry picked from commit 318c4fedfc)
2011-07-14 17:29:27 -04:00
Eli Barzilay
533293c666 Added Guillaume's gmail address to mailmap
(cherry picked from commit 6e72bf2dad)
2011-07-14 17:29:24 -04:00
Eli Barzilay
4b3c7d0aec Switch tcsh(!) and bash scripts to use /bin/sh.
(Satisfy some 3rd-party packaging linters.)
(cherry picked from commit 69464bba91)
2011-07-14 17:29:20 -04:00
Matthias Felleisen
f5923dd748 sk requested empty scenes with optional background color
(cherry picked from commit 40948ee653)
2011-07-14 17:29:16 -04:00
Guillaume Marceau
ef167bb249 Fixed some missing links in the documentation.
(cherry picked from commit da6e819b6f)
2011-07-14 17:29:12 -04:00
Guillaume Marceau
fd6d7de506 Better fix for the previous bug.
(cherry picked from commit 793d7894f1)
2011-07-14 17:29:08 -04:00
Guillaume Marceau
72a81a7c12 Fixed that 'all contracts for primitives print as lists' bug in scribblings/htdp-langs.
(cherry picked from commit 452f3a14fb)
2011-07-14 17:29:02 -04:00
Matthias Felleisen
7f7618dd07 small edit to doc of atan; Closes PR 12039
(cherry picked from commit 03dc212d61)
2011-07-14 17:23:57 -04:00
Asumu Takikawa
60f3e79bb8 Use real contract in bitmap% docs
(cherry picked from commit 2fdc56db3a)
2011-07-14 17:23:55 -04:00
Matthew Flatt
8d0d481d63 rebuild Mac x86 libraries to work with 10.4
Merge to 5.1.2
(cherry picked from commit 0860e62bfa)
2011-07-14 17:23:49 -04:00
Robby Findler
95ed19b91f fix bad contract
(cherry picked from commit 2fb03852b3)
2011-07-14 17:23:44 -04:00
Stephen Bloch
4f794fe496 Fixed some more error messages.
(cherry picked from commit 52527d8a95)
2011-07-14 17:23:38 -04:00
Ryan Culpepper
289e82b0b7 updated docs for struct-type-contract/c
(cherry picked from commit 5a10ef7550)
2011-07-11 23:13:49 -04:00
Vincent St-Amour
6ca28bc60c Fix test for new contract error message format.
(cherry picked from commit 79ef8e889e)
2011-07-11 23:13:45 -04:00
Vincent St-Amour
0751111011 Fix jitting of real->double-flonum.
Merge to 5.1.2.
(cherry picked from commit 09b6616bfa)
2011-07-11 23:13:42 -04:00
Vincent St-Amour
73fb46b42b Add tests for jitted real->*-flonum.
(cherry picked from commit 427eaca513)
2011-07-11 23:13:39 -04:00
Vincent St-Amour
cef91e1527 Revert "Add real->double-flonum to the JIT."
This reverts commit 2afff3d210.

This commit caused real->double-flonum to have a different behavior
when jitted as opposed to interpreted, and caused real->single-flonum
to break in some cases.

Merge to 5.1.2.
(cherry picked from commit 7dfe1f636f)
2011-07-11 23:13:35 -04:00
Matthew Flatt
036f7bec06 fix JIT problem that can break futures
A recent (weeks-old) JIT change set one of a function's code
 pointers to NULL to indicate that JIT-compilation of the
 function is in progress, but that breaks futures. Set the
 code pointer to a different not-yet-ready function, instead.

 Merge to 5.1.2

 Closes PR 12037
(cherry picked from commit 09eab9c3eb)
2011-07-11 23:13:31 -04:00
Stephen Bloch
097df98b3d Fixed some more error messages.
(cherry picked from commit 904ef63ce2)
2011-07-11 23:13:26 -04:00
Stephen Bloch
ede736ff84 Improved error messages to specify actual argument as well as expected
type.  Still produces one check-error failure because of bug in
make-color.
(cherry picked from commit d3df33b023)
2011-07-11 23:13:22 -04:00
Eli Barzilay
2490b0711c Fix the path relative functions to return a string for a path input,
clarify the documentation, add a few tests.

Fixes pr 12032
Fixes pr 12034
(cherry picked from commit ebe9453e73)
2011-07-11 21:30:18 -04:00
Sam Tobin-Hochstadt
177fff49e6 Fix capitalization of HtDP.
Merge to 5.1.2.
(cherry picked from commit 64d42fa0d3)
2011-07-11 21:30:16 -04:00
Matthew Flatt
64cac3e13c fix cross reference
Merge to 5.1.2
(cherry picked from commit b5bb703b48)
2011-07-11 21:30:13 -04:00
Matthew Flatt
94770d3a08 fix hash-ref' bugs on immutable eq?'-based tables
There were two:
   * new: after finding a hash code, the key wasn't
          always checked to be `eq?' to the desired key
   * old: the hash code wan't downshifted by 2, so
          changes in the low two bits (like when a pair
          is determined to start a list) could break
          lookup

 Merge to 5.1.2
(cherry picked from commit e765231dad)
2011-07-11 21:30:11 -04:00
Carl Eastlund
d7fcd2f149 Updated unit contract tests to not rely on a specific format for names of
blamed modules in contract error messages.
(cherry picked from commit d5b852c386)
2011-07-11 21:30:00 -04:00
Carl Eastlund
6d79e54a4d Changed source-location->string and ->prefix to use
path->relative-string/library to produce collection and planet-relative source
names.
(cherry picked from commit 00a6442712)
2011-07-11 21:29:58 -04:00
Carl Eastlund
18e9e79aa0 Changed default blame formatter to report blame parties relative to collection
and planet directories where appropriate.  Added a test for this behavior.
(cherry picked from commit b3136095ea)
2011-07-11 21:29:56 -04:00
Carl Eastlund
0911365403 Corrected documentation of quote-module-name to indicate that it does not
produce collection and planet-relative paths on its own.  Deprecated
quote-module-path, and replaced existing uses of it with quote-module-name.
(cherry picked from commit 2e6a608539)
2011-07-11 21:29:54 -04:00
Eli Barzilay
bc607e96e9 New Racket version 5.1.1.900. 2011-07-11 15:03:05 -04:00
Matthew Flatt
6bbfbad6a7 export `step-count?'
Merge to 5.1.2
(cherry picked from commit 8271f7b182)
2011-07-11 14:56:24 -04:00
Matthew Flatt
2b05b96b50 fix dependency
(cherry picked from commit 50bd06af9a)
2011-07-11 14:56:12 -04:00
Guillaume Marceau
020469a716 Remove spurious printf left in 9053f8f9
(cherry picked from commit 3815862a81)
2011-07-11 14:55:55 -04:00
Guillaume Marceau
ec279b706e Fixed documentations bugs in scribblings/htdp-langs
(cherry picked from commit 9053f8f99b)
2011-07-11 14:55:51 -04:00
Guillaume Marceau
ec185e6072 Adding files missing in the previous commit.
(cherry picked from commit 9d465ed298)
2011-07-11 14:55:46 -04:00
Guillaume Marceau
cd153042db Merged htdp-lib.scblr and teachpacks/error-composition.scrbl into htdp/htdp.scrbl,
to form a single manual titled "Implementing HtDP Teachpacks, Libraries, and
Customized Teaching Languages"
(cherry picked from commit 2c075978fd)
2011-07-11 14:55:27 -04:00
Guillaume Marceau
ae6cf4da07 Little tweaks to the *SL documentation
(cherry picked from commit 91d5c92415)
2011-07-11 14:55:23 -04:00
Guillaume Marceau
f468769a75 Catches another way images prints.
(cherry picked from commit ff1ab35a12)
2011-07-11 14:55:20 -04:00
Ryan Culpepper
4fbf087e17 syntax/parse: add expr/c to main module
Merge to release branch
(cherry picked from commit 0aecbf97ff)
2011-07-11 14:55:13 -04:00
Ryan Culpepper
fe3ee8cbc5 removed merge conflict artifact
Merge to release branch
(cherry picked from commit 73230537ba)
2011-07-11 14:55:10 -04:00
Matthew Flatt
7d32a27700 update Racket release notes for v5.1.2
Merge to v5.1.2
(cherry picked from commit fb5c62d9d7)
2011-07-11 14:55:01 -04:00
Matthew Flatt
7fc99aa0b3 make weak taint table actually weak
(cherry picked from commit 4392ab7636)
2011-07-11 14:54:57 -04:00
Matthew Flatt
06f42651f5 optimizer repair; `unsafe-c{a,d}r' can be dropped
(cherry picked from commit 848bba80a3)
2011-07-11 14:54:49 -04:00
Ryan Culpepper
5ed722e144 Alpha version number for the v5.1.2 release 2011-07-07 23:37:24 -06:00
Kevin Tew
8128603b9b Fix non-places build 2011-07-07 17:14:01 -06:00
Kevin Tew
8ed62b715b Fix place-channel place-object race condition 2011-07-07 17:14:00 -06:00