[ruby/prism] Test embedded in CI

Make sure we do not accidentally break newlib/ARM embedded consumers.

https://github.com/ruby/prism/commit/19762c99ce
This commit is contained in:
Kevin Newton authored and git committed 2026-10-27 14:17:54 +00:00
1 parent 25eb737f03
commit caf4f279d1
3 files changed
+7 -9

No files matched your search

-4
View File
@@ -8,10 +8,6 @@
#include "prism/internal/parser.h"
#include <assert.h>
// Include sys/types.h before inttypes.h to work around an issue with certain
// versions of GCC and newlib which causes omission of the 64-bit PRI macros
// (see 61ebe5123; the removal of defines.h dropped it).
#include <sys/types.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
+5 -4
View File
@@ -3,12 +3,13 @@
#include "prism/internal/allocator.h"
#include "prism/internal/buffer.h"
#include <assert.h>
// Include sys/types.h before inttypes.h to work around an issue with certain
// versions of GCC and newlib which causes omission of PRIu64 and the other
// 64-bit macros (see 61ebe5123; the removal of defines.h dropped it).
/* Include sys/types.h before inttypes.h to work around an issue with certain
* versions of GCC and newlib which causes omission of PRIu64 and the other
* 64-bit macros. */
#include <sys/types.h>
#include <inttypes.h>
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
+2 -1
View File
@@ -12,6 +12,7 @@
#include "prism/internal/xxh3.h"
#include <assert.h>
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
@@ -534,7 +535,7 @@ pm_static_literal_inspect(pm_buffer_t *buffer, const pm_parser_t *parser, const
break;
}
case PM_SOURCE_LINE_NODE:
pm_buffer_append_format(buffer, "%d", pm_line_offset_list_line_column(&parser->line_offsets, node->location.start, parser->start_line).line);
pm_buffer_append_format(buffer, "%" PRIi32, pm_line_offset_list_line_column(&parser->line_offsets, node->location.start, parser->start_line).line);
break;
case PM_STRING_NODE: {
const pm_string_t *unescaped = &((const pm_string_node_t *) node)->unescaped;