Use functions defined by parser_st.c to reduce dependency on st.c

This commit is contained in:
yui-knk 2023-07-12 10:51:49 +09:00 committed by Yuichiro Kaneko
parent 6d2174477b
commit 82cd70ef93
Notes: git 2023-07-15 03:51:00 +00:00
3 changed files with 6 additions and 2 deletions

View File

@ -11138,6 +11138,7 @@ parse.$(OBJEXT): {$(VPATH)}parse.c
parse.$(OBJEXT): {$(VPATH)}parse.h
parse.$(OBJEXT): {$(VPATH)}parse.y
parse.$(OBJEXT): {$(VPATH)}parser_node.h
parse.$(OBJEXT): {$(VPATH)}parser_st.h
parse.$(OBJEXT): {$(VPATH)}probes.dmyh
parse.$(OBJEXT): {$(VPATH)}probes.h
parse.$(OBJEXT): {$(VPATH)}ractor.h

View File

@ -603,6 +603,7 @@ ripper.o: $(top_srcdir)/internal/warnings.h
ripper.o: $(top_srcdir)/method.h
ripper.o: $(top_srcdir)/node.h
ripper.o: $(top_srcdir)/parser_node.h
ripper.o: $(top_srcdir)/parser_st.h
ripper.o: $(top_srcdir)/regenc.h
ripper.o: $(top_srcdir)/ruby_assert.h
ripper.o: $(top_srcdir)/ruby_atomic.h

View File

@ -276,11 +276,13 @@ parse_isxdigit(int c)
#undef ISXDIGIT
#define ISXDIGIT(c) parse_isxdigit(c)
#include "parser_st.h"
#undef STRCASECMP
#define STRCASECMP st_locale_insensitive_strcasecmp
#define STRCASECMP rb_parser_st_locale_insensitive_strcasecmp
#undef STRNCASECMP
#define STRNCASECMP st_locale_insensitive_strncasecmp
#define STRNCASECMP rb_parser_st_locale_insensitive_strncasecmp
#ifdef RIPPER
#include "ripper_init.h"