summaryrefslogtreecommitdiff
path: root/prism/internal
AgeCommit message (Collapse)Author
2026-04-29[ruby/prism] Fix array-bounds error with GCC 9Benoit Daloze
* In file included from /usr/include/string.h:535, from include/prism/internal/arena.h:12, from src/prism.c:6: In function 'memset', inlined from 'lex_mode_push_regexp' at src/prism.c:290:5: .../string_fortified.h:59:10: error: '__builtin_memset' offset [26, 34] from the object at 'lex_mode' is out of the bounds of referenced subobject 'breakpoints' with type 'uint8_t[7]' {aka 'unsigned char[7]'} at offset 18 [-Werror=array-bounds] https://github.com/ruby/prism/commit/2908c1c6c5
2026-04-01[ruby/prism] Remove a warning from `discarded-qualifiers`Earlopain
I've been seeing this for a while now: ``` ../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’: ../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 35 | return memchr(memory, character, number); | ^~~~~~ ``` https://github.com/ruby/prism/commit/a3b1f10dbc
2026-03-20[ruby/prism] Provide a single-entry cache on parser for avoiding constant hashesKevin Newton
https://github.com/ruby/prism/commit/56cdcbbb8c
2026-03-20[ruby/prism] Rename strings to stringy because of linux conflictsKevin Newton
https://github.com/ruby/prism/commit/eb1d518736
2026-03-20[ruby/prism] Introduce pm_source_tKevin Newton
https://github.com/ruby/prism/commit/f50c25b5c1
2026-03-20[ruby/prism] Also expose pm_constant_id_list_init, ↵Kevin Newton
pm_constant_id_list_append, and pm_string_owned_init https://github.com/ruby/prism/commit/a52c48186e
2026-03-20[ruby/prism] pm_parser_constant_findKevin Newton
https://github.com/ruby/prism/commit/d4a3ef9e43
2026-03-20[ruby/prism] Add necessary functions for CRuby integrationKevin Newton
https://github.com/ruby/prism/commit/6ba2c6424e
2026-03-20[ruby/prism] Clean up documentationKevin Newton
https://github.com/ruby/prism/commit/94d16c61cf
2026-03-20[ruby/prism] Fix up bindingsKevin Newton
https://github.com/ruby/prism/commit/1c1e94849e
2026-03-20[ruby/prism] RebaseKevin Newton
https://github.com/ruby/prism/commit/665bcf3056
2026-03-20[ruby/prism] Make some token logic internalKevin Newton
https://github.com/ruby/prism/commit/06a944a08f
2026-03-20[ruby/prism] Move JSON to its own TUKevin Newton
https://github.com/ruby/prism/commit/3b09886633
2026-03-20[ruby/prism] pm_parser_init and pm_parser_cleanup -> internalKevin Newton
https://github.com/ruby/prism/commit/879139efc9
2026-03-20[ruby/prism] Make the constant pool fully opaqueKevin Newton
https://github.com/ruby/prism/commit/250b2c9ac5
2026-03-20[ruby/prism] Make arena fully opaqueKevin Newton
https://github.com/ruby/prism/commit/93085a52d9
2026-03-20[ruby/prism] Move some of arena internalKevin Newton
https://github.com/ruby/prism/commit/639da14de5
2026-03-20[ruby/prism] Move node list append internalKevin Newton
https://github.com/ruby/prism/commit/2867c529a3
2026-03-20[ruby/prism] Remove iterators, just use callbacksKevin Newton
https://github.com/ruby/prism/commit/e0d17eb9e7
2026-03-20[ruby/prism] Fix up buildKevin Newton
https://github.com/ruby/prism/commit/bbc2023d0b
2026-03-20[ruby/prism] Move magic comments entirely internalKevin Newton
https://github.com/ruby/prism/commit/f2e8648522
2026-03-20[ruby/prism] Move diagnostics entirely internalKevin Newton
https://github.com/ruby/prism/commit/6f40516041
2026-03-20[ruby/prism] Move more constants internalKevin Newton
https://github.com/ruby/prism/commit/84b08e23d6
2026-03-20[ruby/prism] Move comment into its own sectionKevin Newton
https://github.com/ruby/prism/commit/1ddff36b54
2026-03-20[ruby/prism] Make pm_comment_t opaqueKevin Newton
https://github.com/ruby/prism/commit/0b17e49b8b
2026-03-20[ruby/prism] Move some options internal metadata internalKevin Newton
https://github.com/ruby/prism/commit/da00377f7d
2026-03-20[ruby/prism] Move encoding entirely internalKevin Newton
https://github.com/ruby/prism/commit/10ebcaf908
2026-03-20[ruby/prism] Move some serialize functions internalKevin Newton
https://github.com/ruby/prism/commit/2b84d22051
2026-03-20[ruby/prism] Move static literals entirely internalKevin Newton
https://github.com/ruby/prism/commit/7cb8b59590
2026-03-20[ruby/prism] Make parser an opaque pointerKevin Newton
https://github.com/ruby/prism/commit/3da08fd638
2026-03-20[ruby/prism] Make options fully opaqueKevin Newton
https://github.com/ruby/prism/commit/0167645490
2026-03-20[ruby/prism] Make buffer an opaque pointerKevin Newton
https://github.com/ruby/prism/commit/1b594e10da
2026-03-20[ruby/prism] Split node.h headersKevin Newton
https://github.com/ruby/prism/commit/a4a44cb14a
2026-03-20[ruby/prism] Trim down even more of internal header includesKevin Newton
https://github.com/ruby/prism/commit/a5dfba8dbe
2026-03-20[ruby/prism] Move allocator to internal headersKevin Newton
https://github.com/ruby/prism/commit/1e3ec12adc
2026-03-20[ruby/prism] Move compiler detection stuff into include/prism/compilerKevin Newton
https://github.com/ruby/prism/commit/01d575aa2f
2026-03-20[ruby/prism] More splitting of headersKevin Newton
https://github.com/ruby/prism/commit/8ad880255d
2026-03-20[ruby/prism] Move regexp to internalKevin Newton
https://github.com/ruby/prism/commit/8d1df7815e
2026-03-20[ruby/prism] Put inline in its own headerKevin Newton
https://github.com/ruby/prism/commit/cc93903d08
2026-03-20[ruby/prism] Split up public/internal optionsKevin Newton
https://github.com/ruby/prism/commit/abd0a833be
2026-03-20[ruby/prism] Split up static literals public and internalKevin Newton
https://github.com/ruby/prism/commit/d2ec3620fa
2026-03-20[ruby/prism] Split up encoding public and internal headersKevin Newton
https://github.com/ruby/prism/commit/f9f9cd55d2
2026-03-20[ruby/prism] Split up list public and internal headersKevin Newton
https://github.com/ruby/prism/commit/2cd264f1cd
2026-03-20[ruby/prism] Move list out of utilsKevin Newton
https://github.com/ruby/prism/commit/c6610459c7
2026-03-20[ruby/prism] Split up public and internal strings headersKevin Newton
https://github.com/ruby/prism/commit/60e105fc0c
2026-03-20[ruby/prism] Move strings out of utilKevin Newton
https://github.com/ruby/prism/commit/b27fd8276d
2026-03-20[ruby/prism] Split up constant pool headers between public and internalKevin Newton
https://github.com/ruby/prism/commit/281244ff57
2026-03-20[ruby/prism] Split up diagnostic headers into public and internalKevin Newton
https://github.com/ruby/prism/commit/af683324ea
2026-03-20[ruby/prism] Move strpbrk into internalKevin Newton
https://github.com/ruby/prism/commit/104b6abd10
2026-03-20[ruby/prism] Move compiler macro definitions into include/prism/attributeKevin Newton
https://github.com/ruby/prism/commit/a18e3ca178