Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ A lot of work has gone into making Ractors more stable, performant, and usable.
* ZJIT
* Add an experimental method-based JIT compiler.
Use `--enable-zjit` on `configure` to enable the `--zjit` support.
* As of Ruby 3.5.0-preview2, ZJIT is not yet ready for speeding up most benchmarks.
Please refrain from evaluating ZJIT just yet. Stay tuned for the Ruby 3.5 release.
* As of Ruby 4.0.0-preview1, ZJIT is not yet ready for speeding up most benchmarks.
Please refrain from evaluating ZJIT just yet. Stay tuned for the Ruby 4.0 release.
* RJIT
* `--rjit` is removed. We will move the implementation of the third-party JIT API
to the [ruby/rjit](https://github.com/ruby/rjit) repository.
Expand Down
6 changes: 3 additions & 3 deletions box.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ copy_ext_file_error(char *message, size_t size)
}
#else
static const char *
copy_ext_file_error(char *message, size_t size, int copy_retvalue, char *src_path, char *dst_path)
copy_ext_file_error(char *message, size_t size, int copy_retvalue, const char *src_path, const char *dst_path)
{
switch (copy_retvalue) {
case 1:
Expand All @@ -532,7 +532,7 @@ copy_ext_file_error(char *message, size_t size, int copy_retvalue, char *src_pat
#endif

static int
copy_ext_file(char *src_path, char *dst_path)
copy_ext_file(const char *src_path, const char *dst_path)
{
#if defined(_WIN32)
int rvalue;
Expand Down Expand Up @@ -664,7 +664,7 @@ rb_box_local_extension(VALUE box_value, VALUE fname, VALUE path)
{
char ext_path[MAXPATHLEN], fname2[MAXPATHLEN], basename[MAXPATHLEN];
int copy_error, wrote;
char *src_path = RSTRING_PTR(path), *fname_ptr = RSTRING_PTR(fname);
const char *src_path = RSTRING_PTR(path), *fname_ptr = RSTRING_PTR(fname);
rb_box_t *box = rb_get_box_t(box_value);

fname_without_suffix(fname_ptr, fname2, sizeof(fname2));
Expand Down