Too much nestings make editors confused

Get rid of nested double quotes inside nested interpolations.  Also,
remove comments that are no longer needed by the documents.
This commit is contained in:
Nobuyoshi Nakada 2024-01-06 13:47:06 +09:00
parent 54a1236541
commit 4112585be5
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1490,7 +1490,7 @@ SRC
# Used internally by the what_type? method to determine if +type+ is a scalar # Used internally by the what_type? method to determine if +type+ is a scalar
# pointer. # pointer.
def scalar_ptr_type?(type, member = nil, headers = nil, &b) def scalar_ptr_type?(type, member = nil, headers = nil, &b)
try_compile(<<"SRC", &b) # pointer try_compile(<<"SRC", &b)
#{cpp_include(headers)} #{cpp_include(headers)}
/*top*/ /*top*/
volatile #{type} conftestval; volatile #{type} conftestval;
@ -1503,7 +1503,7 @@ SRC
# Used internally by the what_type? method to determine if +type+ is a scalar # Used internally by the what_type? method to determine if +type+ is a scalar
# pointer. # pointer.
def scalar_type?(type, member = nil, headers = nil, &b) def scalar_type?(type, member = nil, headers = nil, &b)
try_compile(<<"SRC", &b) # pointer try_compile(<<"SRC", &b)
#{cpp_include(headers)} #{cpp_include(headers)}
/*top*/ /*top*/
volatile #{type} conftestval; volatile #{type} conftestval;
@ -2377,7 +2377,7 @@ TARGET_ENTRY = #{EXPORT_PREFIX || ''}Init_$(TARGET_NAME)
DLLIB = #{dllib} DLLIB = #{dllib}
EXTSTATIC = #{$static || ""} EXTSTATIC = #{$static || ""}
STATIC_LIB = #{staticlib unless $static.nil?} STATIC_LIB = #{staticlib unless $static.nil?}
#{!$extout && defined?($installed_list) ? "INSTALLED_LIST = #{$installed_list}\n" : ""} #{!$extout && defined?($installed_list) ? %[INSTALLED_LIST = #{$installed_list}\n] : ""}
TIMESTAMP_DIR = #{$extout && $extmk ? '$(extout)/.timestamp' : '.'} TIMESTAMP_DIR = #{$extout && $extmk ? '$(extout)/.timestamp' : '.'}
" #" " #"
# TODO: fixme # TODO: fixme
@ -2404,7 +2404,7 @@ TARGET_SO_DIR_TIMESTAMP = #{timestamp_file(sodir, target_prefix)}
mfile.puts(conf) mfile.puts(conf)
mfile.print " mfile.print "
all: #{$extout ? "install" : target ? "$(DLLIB)" : "Makefile"} all: #{$extout ? "install" : target ? "$(DLLIB)" : "Makefile"}
static: #{$extmk && !$static ? "all" : "$(STATIC_LIB)#{$extout ? " install-rb" : ""}"} static: #{$extmk && !$static ? "all" : %[$(STATIC_LIB)#{$extout ? " install-rb" : ""}]}
.PHONY: all install static install-so install-rb .PHONY: all install static install-so install-rb
.PHONY: clean clean-so clean-static clean-rb .PHONY: clean clean-so clean-static clean-rb
" #" " #"