Commit Graph

4858 Commits

Author SHA1 Message Date
Matthew Flatt
afff5ca7ac cs: adjust default prompt abort handler arity error message 2019-11-26 08:44:39 -07:00
Matthew Flatt
6389b18b01 cs: fix prompt handler for module/eval prompt and multiple values 2019-11-26 08:44:39 -07:00
Matthew Flatt
256f57bfd8 openssl: adjust to make XonX mode work for Catalina
Same repair as #2859, but for XonX mode.
2019-11-26 04:47:01 -07:00
Matthew Flatt
1048341c62 cs & io: fix mode argument when print-as-expression is #f 2019-11-25 20:05:23 -07:00
Matthew Flatt
4c981258f6 cs: improve location info in backtrace
Provide paths instead of strings, and include position and span
information.
2019-11-25 19:00:33 -07:00
Matthew Flatt
254f6a4f14 cs: fix 'nonatomic allocation in 32-bit mode 2019-11-25 16:23:52 -07:00
Matthew Flatt
f3cfac8981 cs: fix popcount in data/bit-vector for 32-bit mode
Related to #2925
2019-11-25 15:06:09 -07:00
Paulo Matos
b1b8beece5
Use AC_CHECK_MEMBERS to check for dirent name length flds (#2923)
If `struct dirent` has `namlen` field, define `HAVE_DIRENT_NAMLEN`.
If the field is instead `namelen`, define `HAVE_DIRENT_NAMELEN` (case of QNX). 

Use this checks in `rktio_fs.c` and simplify `platform.h`.
2019-11-25 16:35:10 +01:00
Matthew Flatt
219bac7fe7 cs configure: propagate preprocessor flags to rktio 2019-11-24 08:10:47 -05:00
Matthew Flatt
cd4ce30ca6 avoid compiler warning 2019-11-24 06:58:02 -05:00
Matthew Flatt
ebbf578b6c cs: fix memset address handling 2019-11-23 20:19:50 -05:00
Matthew Flatt
e0851e6753 cs: range check on seconds->date 2019-11-23 20:19:39 -05:00
Matthew Flatt
c611f126fd JIT: fix 32-bit non-Mac stack alignment
Fix function-call setup to align the stack to a 16-byte boundary on
all platforms.
2019-11-23 17:33:08 -05:00
Matthew Flatt
0bb23c3998 cs: improve checking for "uuid.h" 2019-11-23 17:27:24 -05:00
Paulo Matos
aecee7ff30
Fix typos on windows build README (#2919) 2019-11-23 22:00:21 +01:00
Matthew Flatt
d1bfa6a203 cs: fix error reporting for struct selectors
Fix error reporting for non-inlined struct selectors to use Racket
style instead of Chez Scheme style.

Closes #2926
2019-11-23 15:39:27 -05:00
Matthew Flatt
7eb1ef9250 cs: fix printing on struct type with custom write
Don't try to use a struct type's custom-write procedure on the struct
type itself.

Relevant to #2926
2019-11-23 15:32:10 -05:00
Matthew Flatt
cd048cb1d0 repair arity problems
Fix many incorrect arity declarations and actual arities in Racket CS,
and fix several incorrect arities in traditional Racket. Building
Racket CS now checks the information in "racket/src/cs/primitives"
against both Racket variants to make sure that they're all consistent.

Closes #2924
2019-11-23 15:32:10 -05:00
Matthew Flatt
91190bee63 continuation-prompt-available?: repairs CS and non-CS Racket
Racket CS did not support the optional second argument for
`continuation-prompt-available?`. Traditional racket did not produce a
sensible result for the prompt tag that is used to delimit a
composable continuation or in some cases for the default continuation
prompt tag.
2019-11-23 14:56:17 -05:00
Reuben Thomas
7e3a8c9a3b In-place build: cope with default setting of prefix
configure scripts look for and read a local configuration file given by the
environment variable CONFIG_SITE. This can set variables such as prefix.

Racket’s build system was assuming that prefix would be set to NONE unless a
--prefix command line argument was given. But it could be set by a
CONFIG_SITE configuration file instead.

Hence, for in-place build add an explicit --disable-useprefix option, to
cause any prefix setting to be ignored, and use that in the top-level
Makefile.

Regenerate the configure scripts to get the updated code.
2019-11-18 18:25:37 +01:00
Reuben Thomas
fb9a4a219d Remove erroneously checked-in unused autoconf files 2019-11-18 18:25:37 +01:00
Sam Tobin-Hochstadt
532e649bfd
Clarify embedded executable issues (#2908) 2019-11-15 21:02:20 -05:00
Matthew Flatt
ee4ceb7ae4 expnder: fix problem with nested instantiation
A use of `local-expand` and other things in a module's phase-1
instantiation could trigger a nested attempt to instantiate a module.
2019-11-14 09:18:30 -07:00
Matthew Flatt
0cd7cdaa1f repair bytes-utf-8-ref for #\xFFFF result 2019-11-13 19:33:58 -07:00
Matthew Flatt
ea7452a3ed copy MIT and Apache license files in place on install 2019-11-12 20:15:54 -07:00
Matthew Flatt
52b01ef88b racket/runtime-path: add support for 'share paths
Support include-if-exists for files in the "share" directory analogous
to the include-if-exists support for files in "lib".
2019-11-12 20:10:06 -07:00
Matthew Flatt
3192c02b80 cs: fix struct-type-make-constructor
Support the optional name argument and fix the default name.

Closes #2905
2019-11-12 14:29:06 -07:00
Matthew Flatt
46a73b3d36 expose custom-{write,print-quotable}-accessor as accessor
Revert the part of 39a96dd699 that hides the provenance of these
accessors. Although exposing the fact that the predicates are for
structure properties constrains some internal representations, that
constraint seems unlikely to matter, and exposing the procedures as
property predicates is more consistent with the documentation and the
implementation (especially for Racket CS).

Closes #2904
2019-11-12 14:29:06 -07:00
Paulo Matos
b6627956b6
Improve gcc detection in configure script (#2897)
Improve gcc detection in configure script

We have been detecting gcc by the CC variable but this fails under
ubuntu for example where you might specify CC='gcc-8' to ./configure. 
Also consider clang impersonator to be gcc.

Related to #2890
2019-11-12 19:26:36 +01:00
Winny
3cb41850fa Separate GCC and GNU Make detection (#2902)
Related to #2890.

This ensures when GNU Make is `make`, the `version.mak` file is used
regardless of `CC`.
2019-11-12 10:19:19 +01:00
Matthew Flatt
19411c0dec configure: fix schver.h parsing
Related to #2890
2019-11-11 07:29:35 -06:00
Matthew Flatt
5eb04dfa9e add continuation-mark-set->iterator
Support continuation-mark inspection proportional to the amount that
needs to be inspected, instead of having to build a list of length
propotional to the size of a continuation.

In Racket CS, use iteration to improve exception-handling chaining.
Traditional Racket already used similar functonality internally.
2019-11-10 19:56:58 -06:00
Sam Tobin-Hochstadt
11d8f5c4ce
Mention relicensing in HISTORY.txt. (#2895)
* Mention relicensing in HISTORY.txt.
2019-11-08 10:32:16 -05:00
Matthew Flatt
d14940d22d racket/HISTORY.txt: update for v7.5 2019-11-07 10:14:37 -07:00
Matthew Flatt
470e82a65d adjust / on complex inexact numbers
Add a special case for a real divided by a complex, and remove
(probably) misguided special cases for inexact zero real and imaginary
parts. These changes bring complex `/` further in line for Racket and
Racket CS.

Related to racket/typed-racket#868
2019-11-06 05:33:25 -07:00
Matthew Flatt
ebd7cec834 expander: fix higher-phase variable/syntax provide tracking
The check for whether a provided identifier is syntax or a variable
cuold incorrectly inspect a module that is not yet prepared for the
relevant phase.
2019-11-05 19:36:41 -07:00
Jay McCarthy
2edea7db0d Fix typo 2019-11-02 13:45:16 -04:00
Sorawee Porncharoenwase
73250ae23e only do it for attributes 2019-11-02 10:52:10 -04:00
Sorawee Porncharoenwase
45968e8a3c Fix #2885: convert number entity to character 2019-11-02 10:52:10 -04:00
Matthew Flatt
e8f5501e29 module->exports: add information about defined name
Include the defined name (in addition to the provided name) in the
result of `module->exports` and `module-compiled-exports` --- but for
backward compatibility, only if the new optional `verbosity` argument
is 'defined-names.
2019-10-31 19:35:29 -06:00
Alex Muscar
966399dec6 Fix gen:dict methods for alists with duplicate keys (#2846)
* Fix gen:dict methods for alists with duplicate keys

This fixes https://github.com/racket/racket/issues/2803.

Note that while this works, the implementation is not particlarly fast.
Especially for iterators.

* Fix tabs

* Make code more efficient

* Fix function definition order

* Import set library

* Preserve order

* Use immutable hash sets

* Remove unused import and remove duplicate checks

* Fix syntax error
2019-10-30 11:04:40 -04:00
Matthew Flatt
c5a7d0e38a finish udp-ttl and udp-set-ttl!
Add tests, documentation, and fixes for rktio and Racket CS.
2019-10-29 18:34:03 -06:00
David K. Storrs
24ec75fd03 added udp-ttl and udp-set-ttl! 2019-10-29 15:35:58 -04:00
Matthew Flatt
c34538c58f cs & thread: fix sync shortcut and handle-evt
A shortcut meant to speed up `sync` on values such as semaphores
caused `handle-evt` handlers to sometimes not run in tail position.
2019-10-28 19:05:31 -06:00
Matthew Flatt
a81f9c1c6d /: repair for complex inexact
For a division c+di, when c is less than d, and when (/ d c) produces
infinity, then the sign on the imaginary part of the result was
backwards. For example, `(/ -1.0e-9-1.0e+300i)` produced `-0.0-0.0i`
instead of `-0.0+0.0i`.
2019-10-28 14:02:27 -06:00
Fred Fu
1439fc0e85 fix a typo in comments (#2876) 2019-10-28 10:25:09 -04:00
Sam Tobin-Hochstadt
44895a0027
Relicense this repository under Apache 2.0/MIT. (#2871)
Note: the traditional Racket executable continues to incorporate
LGPLv3 code and thus modifications to it must be released under
that license. However, all Racket code in this repository, as well
as the Racket-on-Chez excutable, are more permissively licensed.

Thanks in particular to @otherjoel and @zyrolasting for their work
on this project.
2019-10-28 09:17:56 -04:00
Dan Holtby
42c897a75f fix for (setup) when (current-library-collection-links) contains hash tables 2019-10-28 06:06:59 -06:00
Matthew Flatt
238cd527f4 revert accidental change to setup/main 2019-10-27 13:49:29 -06:00
Matthew Flatt
0965e5ad6c cs: fix internal procedure-arity-includes/c macro
Repair to 5345fd294c.
2019-10-27 10:38:45 -06:00