Commit Graph

33133 Commits

Author SHA1 Message Date
William J. Bowman
b76b2aa638 Fixed uses of free-identifier=? guards
free-identifier=? expects, contrary to documentation, a syntax?, causing
contract errors. (and (identifier? ...) ...) solves this.

[Since the function is called only on fully expanded forms, it doesn't
 look like the `identifier?` tests can ever fail, but it still seems
 sensible to have them. -Matthew]
2014-05-01 06:18:24 -06:00
Matthew Flatt
61d717fd07 file/unzip: change to call-with-unzip and call-with-unzip-entry
Use `call-with-` instead of `with-`, since it's a function instead
of a syntactic form. (This is a weak convention, but one to try to
follow with new functions and forms.)

Fix up the contracts and change the documentation to match the
usual style.

Create the temporary directory in `(find-system-path 'temp-dir)`
instead of the current directory.
2014-05-01 06:18:24 -06:00
simmone
f592cf6e35 file/unzip: add help func with-unzip with-unzip-entry 2014-05-01 06:18:24 -06:00
Robby Findler
351545a10a add missing file 2014-05-01 06:40:28 -05:00
Eric Dobson
4766a94470 Make inst not do crazy splitting. 2014-05-01 00:00:50 -07:00
Eric Dobson
a6789164d8 Remove extraneous old feature of do-inst. 2014-05-01 00:00:50 -07:00
Eric Dobson
379e827070 Remove #%expression in plambda. 2014-05-01 00:00:50 -07:00
Eric Dobson
9d1201a5e2 Replace 'apply -lst*' with -Tuple* 2014-04-30 23:38:55 -07:00
Eric Dobson
209be3b9ac Add quotes to error messages from tc-apply. 2014-04-30 23:38:55 -07:00
Eric Dobson
de1c9a1162 Merge checks for empty case-lambdas in apply. 2014-04-30 23:38:55 -07:00
Eric Dobson
c91a912129 Cleanup non poly case in apply. 2014-04-30 23:38:54 -07:00
Eric Dobson
ab2877ed7f Cleanup Poly cases in tc-apply 2014-04-30 23:38:54 -07:00
Eric Dobson
33a31d2868 Make apply work with more initial args than in the type. 2014-04-30 23:38:54 -07:00
Eric Dobson
3e3e79cf1f Allow apply to work on lists with minimum length. 2014-04-30 23:38:54 -07:00
Eric Dobson
347b15661a Replace uses of untuple with List:. 2014-04-30 23:38:54 -07:00
Eric Dobson
e6b2268f2c Cleanup PolyDotted case of apply. 2014-04-30 23:38:54 -07:00
Robby Findler
b8d13706bf fix srcloc for metafunction errors 2014-04-30 21:58:14 -05:00
Robby Findler
a628bf4040 Rackety
bring down below 102 columns
2014-04-30 21:58:14 -05:00
Matthew Flatt
305340502c racket/draw Cocoa: fix dylib list as needed for raco exe 2014-04-30 15:07:34 -06:00
Matthew Flatt
5c909cca0d raco dist: preserve relative location of runtime files only within a package
Previously, relative locations were preserved for all files with the same
root, but that tends to keep too much information about the original
filesystem layout, especially when runtime files are pulled both from
the installation and a user-specific area. Since packages can be installed
at different relative locations, it makes sense to preserve relative
locations only up to package boundaries.
2014-04-30 14:59:16 -06:00
Matthew Flatt
0c9685d136 raco exe: normalize runtime-file paths
Normalization is needed to ensure that `raco dist` doesn't generate
longer paths (by converting a "/" to "\\", for example) in its
path manipulations.
2014-04-30 14:23:46 -06:00
Matthew Flatt
a8fc2d5ec9 meta/new-web: release announcements as data
... instead of only git meta-data attached to tags.
2014-04-30 14:23:46 -06:00
Asumu Takikawa
eb006a0e9e Improve TR's overlap checking for StructTop types
Closes PR 14458
2014-04-30 15:03:17 -04:00
Eric Dobson
2f032184ca Make tc-results: and Results: not use ... over patterns.
This avoids a case where match is silently wrong.
2014-04-30 09:48:39 -07:00
Eric Dobson
78fbdfec0b Allow more inference on ... lists. 2014-04-29 22:27:39 -07:00
Asumu Takikawa
f60908c7aa Refactor TR's no-check-helper module 2014-04-29 22:47:03 -04:00
Asumu Takikawa
6e8ad86524 Fix require/typed in no-check mode for structs
The constructor name was handled incorrectly for TR's current
defaults. Also support the extra keyword arguments.
2014-04-29 22:35:17 -04:00
Asumu Takikawa
2a32c58815 Update require/typed in no-check mode for keywords
Closes PR 14463
2014-04-29 21:28:08 -04:00
Matthew Flatt
f58cfe596a fix test 2014-04-29 12:59:45 -06:00
Matthew Flatt
04a60d713b fix sync on inaccessible place channel
Commit 5ea4c2ab68 broke GCing of a thread that is blocked
via `sync` (as opposed to `place-channel-get`) on a place
channel whose write end is inaccessible.
2014-04-29 12:56:19 -06:00
Matthew Flatt
03a82e21b5 xrepl: fix tests 2014-04-29 09:11:35 -06:00
Matthew Flatt
f6cff4b52c add some extra test cases on equal? and chaperones
The compiler defeated my original attempt to check arguments in
both orders, but now I see the obvious way to (probably) check
both orders.
2014-04-29 06:58:53 -06:00
Matthew Flatt
f2335ae4dc fix performance bug in equal? on vectors 2014-04-29 06:58:36 -06:00
Matthew Flatt
07e390302c raco exe: attempt to fix problem with room made for runtime-paths table 2014-04-29 06:18:55 -06:00
Matthew Flatt
ae14ff70df raco pkg: fix documentation indexing for user-scoped re-link
If a package installed as a link in user scope, then removed, then
linked again, the documentation index database was not updated
correctly. As a result, the user-specific documentation page was
either not updated or had a broken link for the document.
2014-04-28 20:22:49 -06:00
Matthew Flatt
dee331e3b1 raco setup: fix info-domain cleanup of unlinked planet packages 2014-04-28 19:03:39 -06:00
Matthew Flatt
afb75c7cfe linux: close "/proc/self/maps" after finding the stack base 2014-04-28 17:50:50 -06:00
Matthew Flatt
acf250891f fix wrong size for memset
Probably the assignments cover the structure, anyway.
2014-04-28 17:42:17 -06:00
Matthew Flatt
2ff4802a14 configure: for BSDs, enable pthreads by default, but don't force enabled 2014-04-28 13:07:26 -06:00
Matthew Flatt
bc871b904e need CAS only for futures or places 2014-04-28 13:07:26 -06:00
Asumu Takikawa
715d596e47 Remove code that handles #<undefined> in TR
TR no longer needs to handle #<undefined> because the value
no longer leaks out from uninitialized variables. However, uses
of uninitialized variables are not caught by TR (they are treated
like errors from the `error` function).
2014-04-28 14:14:00 -04:00
Robby Findler
d4c60e8608 generalize the random contract generation so that it can exercise
a function to get more interesting values and then use those values
to guarantee it can generate things it couldn't before

For example, it can now generate a function with this contract:

  (-> (-> is-eleven?) is-eleven?)

without knowing what the is-eleven? predicate does -- instead it can
figure out to call the argument thunk and then pipe that result around
2014-04-28 12:22:01 -05:00
Robby Findler
6343159701 I maintain planet 2014-04-28 12:22:00 -05:00
Neil Toronto
2677568b3d Change test to use exact flonums instead of 0.1 2014-04-28 01:14:38 -06:00
Matthew Flatt
9cb652dd0e racket/gui Win32: fix use-before-definition problem for choice%
Closes PR 14475
2014-04-27 20:51:35 -06:00
Matthew Flatt
2b948c6250 win64: fix longdouble DLL 2014-04-27 16:51:23 -06:00
Matthew Flatt
04c4538f44 speed up inexact->exact
Parse IEEE floating-point numbers directly.

Thanks to Neil T.!
2014-04-27 16:51:23 -06:00
Matthew Flatt
d682c940bd repairs to precision of exact->inexact et al.
Thanks to Neil T.!
2014-04-27 16:51:23 -06:00
Matthew Flatt
520f7f839d racket/draw: fix problem with rotated text, font substition, and kerning
Closes PR 14469
2014-04-27 16:51:23 -06:00
Eric Dobson
8372ee9f6d Add tests for new letrec semantics.
Closes existing bugs because the old broken semantics is now right
because of undefined changes.

Closer PR 13303.
Closer PR 13333.
2014-04-27 12:51:03 -07:00