Skip to content

Commit 5b3157a

Browse files
committed
Make file names and variable names consistent
1 parent 6ab3664 commit 5b3157a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ mjit_config.h: Makefile
224224
# Other `-Dxxx`s preceding `-DMJIT_HEADER` will be removed in transform_mjit_header.rb.
225225
# So `-DMJIT_HEADER` should be passed first when rb_mjit_header.h is generated.
226226
$(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time: probes.h vm.$(OBJEXT) \
227-
$(TIMESTAMPDIR)/$(arch)/.time $(srcdir)/tool/mjit_without_tabs.rb
227+
$(TIMESTAMPDIR)/$(arch)/.time $(srcdir)/tool/mjit_tabs.rb
228228
$(ECHO) building $(@F:.time=.h)
229-
$(Q) $(BASERUBY) $(srcdir)/tool/mjit_without_tabs.rb "$(MJIT_WITHOUT_TABS)" \
229+
$(Q) $(BASERUBY) $(srcdir)/tool/mjit_tabs.rb "$(MJIT_TABS)" \
230230
$(CPP) -DMJIT_HEADER $(MJIT_HEADER_FLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/vm.c $(CPPOUTFLAG)$(@F:.time=.h).new
231231
$(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.h) $(@F:.time=.h).new
232232

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,9 +2616,9 @@ AS_CASE(["$target_os"],
26162616
LIBEXT=a
26172617

26182618
AC_ARG_WITH(mjit-tabs,
2619-
AS_HELP_STRING([--without-tabs-mjit], [expand tabs in mjit header]),
2620-
[AS_IF([test $withval = no], [MJIT_WITHOUT_TABS=true])])
2621-
AC_SUBST(MJIT_WITHOUT_TABS)dnl
2619+
AS_HELP_STRING([--without-mjit-tabs], [expand tabs in mjit header]),
2620+
[AS_IF([test $withval = no], [MJIT_TABS=false])])
2621+
AC_SUBST(MJIT_TABS)dnl
26222622
AC_SUBST(DLDFLAGS)dnl
26232623
AC_SUBST(ARCH_FLAG)dnl
26242624
AC_SUBST(MJIT_HEADER_FLAGS)dnl

template/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ MJIT_HEADER = rb_mjit_header.h
102102
MJIT_MIN_HEADER_NAME = rb_mjit_min_header-$(RUBY_PROGRAM_VERSION).h
103103
MJIT_MIN_HEADER = $(MJIT_HEADER_BUILD_DIR)/$(MJIT_MIN_HEADER_NAME)
104104
MJIT_HEADER_BUILD_DIR = $(EXTOUT)/include/$(arch)
105-
MJIT_WITHOUT_TABS=@MJIT_WITHOUT_TABS@
105+
MJIT_TABS=@MJIT_TABS@
106106
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
107107
EXTLDFLAGS = @EXTLDFLAGS@
108108
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)

tool/mjit_without_tabs.rb renamed to tool/mjit_tabs.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
# This is a script to run a command in ARGV, expanding tabs in some files
3-
# included by vm.c to normalize indentation of MJIT header. You can disable
4-
# this feature by setting MJIT_WITHOUT_TABS=false make variable.
3+
# included by vm.c to normalize indentation of MJIT header. You can enable
4+
# this feature by passing `--without-mjit-tabs` in configure.
55
#
66
# Note that preprocessor of GCC converts a hard tab to one spaces, where
77
# we expect it to be shown as 8 spaces. To obviate this script, we need
@@ -27,10 +27,10 @@
2727
sources = {}
2828
mtimes = {}
2929

30-
flag, *command = ARGV
30+
mjit_tabs, *command = ARGV
3131

3232
targets.each do |target|
33-
next if flag != 'true'
33+
next if mjit_tabs != 'false'
3434
unless File.writable?(target)
3535
puts "tool/mjit_without_tabs.rb: Skipping #{target.dump} as it's not writable."
3636
next

0 commit comments

Comments
 (0)