[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19439] Re: recursive dryrun (Re: [ruby-cvs] ruby, ruby/ext, ruby/win32, ruby/bcc32: * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,)

From: "Akinori MUSHA" <knu@...>
Date: 2003-01-25 23:27:54 UTC
List: ruby-dev #19439
At Sun, 26 Jan 2003 06:31:07 +0900,
nobu wrote:
> GNU makeだと$(MAKE)は直接含まれていないと特別な意味を持たないよ

 この特別な意味って何でしたっけ。

> うです。+フラグってどの程度移植性があるもんなんでしょうか。

 UNIX 系は大丈夫です。SUSv3 にもあるし。

> あとmake -n installで$dryrunにならなくなってますが、no-install
> があるから不要ってことでしょうか。というか、だから$(MAKE)が特別
> 扱いされなくても構わない?

 前のコードが MAKEFLAGS の解析や整理に頑張りすぎてバグが出ていた
ので、一回そぎ落とそうと思ったのでした。でもそれでできるならいいと
思います。

> Index: instruby.rb
> ===================================================================

> +  def $mflags.set?(flag)
> +    grep(Regexp.new("^-(?!-).*%c"%flag, /nmake/ =~ $nmake)) {break true}
> +  end

 $nmake は $make でしょうか。それにしてもこの第二引数はマッチ
すると 0 とかが返るので変な気がします。たぶん意図は

    $nmake == ?m ? true : false

かな?(Regexp::IGNORECASE/nil の方がはっきりしますが)

 ただ、直下のコメントに書いてあるように、 MAKEFLAGS にフラグを
くっつけて渡してくるのは nmake だけみたいです。他の環境で引数を
取るオプションで誤認識したりしないよう、こうするのはどうでしょう。

    if $nmake == ?m
      grep(/^-(?!-).*#{'%c' % flag}/i) { return true }
    else
      include?('-%c' % flag)
    end

>    $mflags << '-n' if $dryrun
> +  $dryrun ||= $mflags.set?(?n)

 一瞬、堂々巡りに見えるので、こう書くと分かりやすいかも。

    if $mflags.set?(?n)
      $dryrun = true
    else
      $mflags << '-n' if $dryrun
    end

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"It went right by me -- At the time it went over my head
   I was looking out the window.. I should have looked at your face instead"

In This Thread