diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-09 04:32:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-09 04:32:24 +0000 |
| commit | e0208c14e0e8161f80c14624a5d4a1f544a74a70 (patch) | |
| tree | cf8d2904f1e9ba1a42b0e68e59571e97c3695f2b /lib | |
| parent | 2eb957394cc2120ba77e6a3bf367d029a148ca3a (diff) | |
| download | ruby-e0208c14e0e8161f80c14624a5d4a1f544a74a70.tar.gz ruby-e0208c14e0e8161f80c14624a5d4a1f544a74a70.tar.xz ruby-e0208c14e0e8161f80c14624a5d4a1f544a74a70.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cgi.rb | 2 | ||||
| -rw-r--r-- | lib/mkmf.rb | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 7f40c3a0f..1b55f0ac9 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -939,7 +939,7 @@ convert string charset, and set language to "ja". start_pos = lines.rindex(/^\s*<#{element}/ni, end_pos) lines[start_pos ... end_pos] = "__" + lines[start_pos ... end_pos].gsub(/\n(?!\z)/n, "\n" + shift) + "__" end - lines.gsub(/^(\s*)__(?=<\/?\w)/n, '\1') + lines.gsub(/^((?:#{Regexp::quote(shift)})*)__(?=<\/?\w)/n, '\1') end diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 0d6768763..41ffe4c72 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -386,7 +386,7 @@ hdrdir = #{$hdrdir} CC = #{CONFIG["CC"]} CFLAGS = #{CONFIG["CCDLFLAGS"]} #{CFLAGS} #{$CFLAGS} -CPPFLAGS = -I$(hdrdir) -I#{CONFIG["includedir"]} #{$defs.join(" ")} + CPPFLAGS = -I$(hdrdir) -I#{CONFIG["includedir"]} #{$defs.join(" ")} #{CONFIG["CPPFLAGS"]} CXXFLAGS = $(CFLAGS) DLDFLAGS = #{$DLDFLAGS} #{$LDFLAGS} LDSHARED = #{CONFIG["LDSHARED"]} #{defflag} @@ -455,6 +455,11 @@ EOMF $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< " + else + mfile.print " +.c.#{$OBJEXT}: + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< +" end if CONFIG["DLEXT"] != $OBJEXT |
