diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-09 09:07:42 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-09 09:07:42 +0000 |
| commit | af01708d5dd420a6bb71baf25d896db5a50db1cd (patch) | |
| tree | 5b95fb0862e291a904c79b9cad9fd3963831f254 | |
| parent | 57e292e9d0d38a05df4e51fa7f0fa7df66249659 (diff) | |
| download | ruby-af01708d5dd420a6bb71baf25d896db5a50db1cd.tar.gz ruby-af01708d5dd420a6bb71baf25d896db5a50db1cd.tar.xz ruby-af01708d5dd420a6bb71baf25d896db5a50db1cd.zip | |
* lib/mkmf.rb (create_makefile): prevent substitution of macro
definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/mkmf.rb | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,10 @@ -Sun Jul 9 18:04:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> +Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb (try_constant): fix for value 1 at cross compiling. + * lib/mkmf.rb (create_makefile): prevent substitution of macro + definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02 + Sun Jul 9 00:54:34 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (next_jump): deal with destination of next. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index dada337e4..e711bb2dc 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1234,7 +1234,7 @@ site-install-rb: install-rb suffixes << m[1] << m[2] implicit = [[m[1], m[2]], [m.post_match]] next - elsif RULE_SUBST and /\A[$\w][^#]*:/ =~ line + elsif RULE_SUBST and /\A(?!\s*\w+\s*=)[$\w][^#]*:/ =~ line line.gsub!(%r"(\s)(?!\.)([^$(){}+=:\s\/\\,]+)(?=\s|\z)") {$1 + RULE_SUBST % $2} end depout << line |
