Skip to content

Commit ca42dda

Browse files
committed
1 parent 8ebf32e commit ca42dda

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "lib/prism"]
22
path = lib/prism
3-
url = https://github.com/ruby/prism
3+
url = https://github.com/hasumikin/prism
4+
branch = fix/pm_constant_id_list_init_capacity

include/prism_xallocator.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#define mrc_realloc(c,ptr,size) mrbc_raw_realloc(ptr, size)
3131
#define mrc_free(c,ptr) mrbc_raw_free(ptr)
3232
#endif
33-
#else /* May be building mrbc (picorbc) */
33+
#else
34+
35+
// for picorbc
3436
#define mrc_malloc(c,size) malloc(size)
3537
#define mrc_calloc(c,nmemb,size) calloc(nmemb, size)
3638
#define mrc_realloc(c,ptr,size) realloc(ptr, size)
@@ -39,6 +41,7 @@
3941
#define xcalloc(nmemb,size) calloc(nmemb, size)
4042
#define xrealloc(ptr,size) realloc(ptr, size)
4143
#define xfree(ptr) free(ptr)
44+
4245
#endif
4346

4447
#endif

lib/prism

Submodule prism updated 296 files

src/compile.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,17 @@ mrc_load_string_cxt(mrc_ccontext *c, const uint8_t **source, size_t length)
273273
mrc_irep *irep = mrc_load_exec(c, root);
274274
return irep;
275275
}
276+
277+
#if defined(MRC_TARGET_MRUBY)
278+
279+
MRC_API void
280+
mrb_mruby_compiler2_gem_init(mrb_state *mrb)
281+
{
282+
}
283+
284+
MRC_API void
285+
mrb_mruby_compiler2_gem_final(mrb_state *mrb)
286+
{
287+
}
288+
289+
#endif

0 commit comments

Comments
 (0)