Skip to content

Commit c5fae67

Browse files
committed
Merge branch 'master' into jb/ircode2oc
2 parents c48e638 + dacf9d6 commit c5fae67

File tree

185 files changed

+3195
-1902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+3195
-1902
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2009-2021: Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors: https://github.com/JuliaLang/julia/contributors
3+
Copyright (c) 2009-2022: Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors: https://github.com/JuliaLang/julia/contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

Make.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,15 +1394,15 @@ clean-$$(abspath $(2)/$(3)):
13941394
ifeq ($(BUILD_OS), WINNT)
13951395
-cmd //C rmdir $$(call mingw_to_dos,$(2)/$(3),cd $(2) &&)
13961396
else
1397-
-rm -r $$(abspath $(2)/$(3))
1397+
rm -rf $$(abspath $(2)/$(3))
13981398
endif
13991399
$$(abspath $(2)/$(3)): | $$(abspath $(2))
14001400
ifeq ($$(BUILD_OS), WINNT)
14011401
@cmd //C mklink //J $$(call mingw_to_dos,$(2)/$(3),cd $(2) &&) $$(call mingw_to_dos,$(1),)
14021402
else ifneq (,$$(findstring CYGWIN,$$(BUILD_OS)))
14031403
@cmd /C mklink /J $$(call cygpath_w,$(2)/$(3)) $$(call cygpath_w,$(1))
14041404
else ifdef JULIA_VAGRANT_BUILD
1405-
@rm -r $$@
1405+
@rm -rf $$@
14061406
@cp -R $$(abspath $(1)) $$@.tmp
14071407
@mv $$@.tmp $$@
14081408
else

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ Standard library changes
9090

9191
#### UUIDs
9292

93+
#### Unicode
94+
95+
* `graphemes(s, m:n)` returns a substring of the `m`-th to `n`-th graphemes in `s` ([#44266]).
96+
9397
#### Mmap
9498

9599
#### DelimitedFiles

base/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ $$(build_private_libdir)/$$(libname_$2):
169169
REALPATH=$$(libpath_$2); \
170170
$$(call resolve_path,REALPATH) && \
171171
[ -e "$$$$REALPATH" ] && \
172-
([ ! -e "$$@" ] || rm "$$@") && \
172+
rm -f "$$@" && \
173173
echo ln -sf "$$$$REALPATH" "$$@" && \
174174
ln -sf "$$$$REALPATH" "$$@"; \
175175
else \
@@ -193,7 +193,7 @@ endif
193193

194194
$(build_bindir)/7z$(EXE):
195195
[ -e "$(7Z_PATH)" ] && \
196-
([ ! -e "$@" ] || rm "$@") && \
196+
rm -f "$@" && \
197197
ln -svf "$(7Z_PATH)" "$@"
198198

199199
# the following excludes: libuv.a, libutf8proc.a
@@ -258,7 +258,7 @@ $(build_private_libdir)/libLLVM.$(SHLIB_EXT):
258258
REALPATH=$(LLVM_CONFIG_HOST_LIBS) && \
259259
$(call resolve_path,REALPATH) && \
260260
[ -e "$$REALPATH" ] && \
261-
([ ! -e "$@" ] || rm "$@") && \
261+
rm -f "$@" && \
262262
echo ln -sf "$$REALPATH" "$@" && \
263263
ln -sf "$$REALPATH" "$@"
264264
ifneq ($(USE_SYSTEM_LLVM),0)

base/client.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ function eval_user_input(errio, @nospecialize(ast), show_value::Bool)
124124
end
125125
if lasterr !== nothing
126126
lasterr = scrub_repl_backtrace(lasterr)
127-
istrivialerror(lasterr) || ccall(:jl_set_global, Cvoid, (Any, Any, Any), Main, :err, lasterr)
127+
istrivialerror(lasterr) || setglobal!(Main, :err, lasterr)
128128
invokelatest(display_error, errio, lasterr)
129129
errcount = 0
130130
lasterr = nothing
131131
else
132132
ast = Meta.lower(Main, ast)
133133
value = Core.eval(Main, ast)
134-
ccall(:jl_set_global, Cvoid, (Any, Any, Any), Main, :ans, value)
134+
setglobal!(Main, :ans, value)
135135
if !(value === nothing) && show_value
136136
if have_color
137137
print(answer_color())
@@ -151,7 +151,7 @@ function eval_user_input(errio, @nospecialize(ast), show_value::Bool)
151151
end
152152
errcount += 1
153153
lasterr = scrub_repl_backtrace(current_exceptions())
154-
ccall(:jl_set_global, Cvoid, (Any, Any, Any), Main, :err, lasterr)
154+
setglobal!(Main, :err, lasterr)
155155
if errcount > 2
156156
@error "It is likely that something important is broken, and Julia will not be able to continue normally" errcount
157157
break

0 commit comments

Comments
 (0)