[Win32utils-devel] [ win32utils-Bugs-8942 ] several typo in windows-pr.

noreply at rubyforge.org noreply at rubyforge.org
Wed Feb 28 21:10:19 EST 2007


Bugs item #8942, was opened at 2007-02-28 07:59
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85

Category: windows-pr
Group: Code
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Katsuyuki MIYAMUKO (miyamuko)
Assigned to: Daniel Berger (djberg96)
Summary: several typo in windows-pr.

Initial Comment:
I found typo in windows-pr.
Attached is a patch against windows-pr HEAD.

I checked all windows-pr sources using following script.
Thanks,

--
class String
  def normalize
    self.downcase.gsub(/_/, "")
  end
end

ARGV.each do |file|
  defs = nil
  File.read(file).each_with_index do |line, i|
    case line
    when /(\w+)\s*=\s*Win32API.new\([^,]+?,\s*.(\w+)/
      a, b = $1, $2
      p ["Win32API", file, i + 1, a, b] if a.normalize != b.normalize
    when /(\w+).call\(/
      next unless defs
      a = $1
      p ["def/call", file, i + 1, defs, a] if a.normalize != defs.normalize
    when /def\s+(\w+)/
      defs = $1
    end
  end
end


----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2007-02-28 19:10

Message:
Fixed and included in windows-pr 0.6.5

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2007-02-28 18:38

Message:
Thank you very much for the diff and the helper script. I'll apply those to CVS tonight. Since some of those could be rather crucial, expect an 0.6.5 release soon.

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85


More information about the win32utils-devel mailing list