Benjamin Quorning
931a870606
[ruby/prism] Increase value of PRISM_DEPTH_MAXIMUM to 10000
...
The previous value of 1_000 was added with a reference to the Bison
parser[^1], but the value of YYMAXDEPTH in the Bison docs is 10_000,
not 1_000.
[^1]: https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html
Fixes [Bug #21044 ]
e098533ab4
Co-authored-by: Nony Dutton <nonydutton@gmail.com>
2025-01-16 01:47:46 +00:00
Kevin Newton
d597118b3f
[ruby/prism] Fallthrough fallback for unknown compilers
...
cc810b1e06
2025-01-11 19:09:05 -05:00
Alexander Momchilov
fa1427a63e
[ruby/prism] Enable implicit fall-through errors
...
03797b84d3
2025-01-11 19:09:05 -05:00
Masataka Pocke Kuwabara
2f0674478b
[ruby/prism] Fix cross-compile issue with newlib on Ubuntu 24.04
...
61ebe51233
2025-01-02 16:40:14 +00:00
Kevin Newton
29caae9991
[ruby/prism] Use isinf on non-mingw windows
...
2f903d7865
2024-12-12 01:10:13 +00:00
Hiroshi SHIBATA
59d23174c0
Added missing header file for _finite
2024-12-03 09:53:17 +09:00
Kevin Newton
c8dd047955
[ruby/prism] _finitef is unavailable on Windows x86
...
Instead cast it inline to a double on Windows.
9064d872aa
2024-12-02 20:19:52 +00:00
Kevin Newton
a6ea4ddb4e
[ruby/prism] Remove use of __assume to simplify
...
4daf58f7a0
2024-09-25 16:17:08 +00:00
Kevin Newton
bf6109c8cc
[ruby/prism] Fix up windows use of __assume
...
9fd0c0901e
2024-09-25 16:08:13 +00:00
Kevin Newton
57688cd625
[ruby/prism] Support a max depth to protect against malicious payloads
...
a474017bbe
2024-09-25 15:47:08 +00:00
Yuta Saito
a65c205a1b
[ruby/prism] Add explicit check for PRISM_HAS_NO_FILESYSTEM
...
89c22f0e6c
2024-07-26 17:07:50 +00:00
Koichi ITO
52cf6ec46b
[ruby/prism] Fix typos
...
After finding the "if if" typo, some additional typos identified by running `codespell` are also being corrected:
https://github.com/codespell-project/codespell
e6a34cfeeb
2024-03-26 10:51:12 +00:00
Kevin Newton
a08954569f
[ruby/prism] Fix up minimal build setting
...
98c85c4acb
2024-03-25 11:54:20 -04:00
HASUMI Hitoshi
ce544f8dbd
[ruby/prism] [Compatibility] Improve printf format
...
For better compatibility, this patch suggests using __MINGW_PRINTF_FORMAT that GCC provides for MINGW environment.
a3a792b64f
2024-03-19 01:30:38 +00:00
Kevin Newton
2cfcebb2a8
[ruby/prism] Warn for maximum number variables
...
2cdbf81c95
2024-03-13 18:35:18 +00:00
Kevin Newton
f7adee34a3
[ruby/prism] Only define xallocator when not defined
...
919d682379
2024-03-04 16:49:14 +00:00
Kevin Newton
c0a34a6c8c
[ruby/prism] Document xallocator functions
...
ee1a4acacd
2024-03-04 16:40:24 +00:00
HASUMI Hitoshi
54f27549e2
[ruby/prism] Chage some names
...
- PRISM_CUSTOM_ALLOCATOR -> PRISM_XALLOCATOR
- prism_custom_allocator.h -> prism_xallocator.h
83b4071e5b
2024-03-04 16:40:23 +00:00
HASUMI Hitoshi
c4bd6da298
[ruby/prism] Make alloc interface replaceable
...
- Add `x` prefix to malloc, calloc, realloc, and free
(eg: malloc -> xmalloc)
- By default, they are replaced with stdlib's functions at build
- You can use custom functions by defining `PRISM_CUSTOM_ALLOCATOR` macro
7a878af619
2024-03-04 16:40:23 +00:00
Kevin Newton
a154ea0c91
[ruby/prism] Ignore other ERANGE errors for floats
...
4267161ca7
2024-02-22 22:42:44 -05:00
Kevin Newton
bcfcdae58e
[ruby/prism] Fix windows build checking for _POSIX_MAPPED_FILES
...
acf603603f
2024-02-20 14:31:03 +00:00
HASUMI Hitoshi
f0a46c6334
[ruby/prism] Include unistd.h before cheching _POSIX_MAPPED_FILES
...
84b3c294f0
2024-02-20 14:21:17 +00:00
HASUMI Hitoshi
15b53e901c
[ruby/prism] Use _POSIX_MAPPED_FILES
and _WIN32
to know if memory map interface is available in the target platform
...
88e2ff52d4
2024-02-20 14:21:16 +00:00
Kevin Newton
d29cd972f7
[ruby/prism] Use inttypes for more accurate printf formatting
...
2a22b9b72f
2024-01-19 14:49:09 +00:00
Kevin Newton
82f18baa21
[ruby/prism] Provide flags for changing encodings
...
e838eaff6f
2023-12-06 14:23:38 -05:00
Kevin Newton
f479e629ab
[ruby/prism] Revert "Ensure serialized file is little endian"
...
4cec275fff
2023-11-18 01:32:37 +00:00
Kevin Newton
7c99e43c3f
[ruby/prism] Ensure serialized file is little endian
...
0c762ee68a
2023-11-17 20:11:25 +00:00
Kevin Newton
3551abab06
[ruby/prism] Fix up lint
...
77d4056766
2023-11-01 13:10:29 -04:00
Kevin Newton
690f3bbf5d
[ruby/prism] Last remaining missing C comments
...
e327449db6
2023-11-01 13:10:29 -04:00
Kevin Newton
f791db4433
[ruby/prism] Documentation for defines, version, and prettyprint
...
e2e29bef2d
2023-11-01 13:10:29 -04:00
Kevin Newton
493439c9ce
[ruby/prism] Documentation for pm_strncasecmp
...
26934263b7
2023-11-01 13:10:29 -04:00
Kevin Newton
26a05c4217
[ruby/prism] Use printf attribute and then fix warnings
...
3193902c43
2023-10-27 14:23:17 +00:00
Kevin Newton
4f73a7c2f7
Sync to prism rename commits
2023-09-27 13:57:38 -04:00
Kevin Newton
8ab56869a6
Rename YARP filepaths to prism filepaths
2023-09-27 13:57:38 -04:00