[Fxruby-commits] CVS: FXRuby/scripts iface.rb,1.1.2.1,1.1.2.2
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@us...> - 2002-05-30 14:41:57
|
Update of /cvsroot/fxruby/FXRuby/scripts In directory usw-pr-cvs1:/tmp/cvs-serv26842/scripts Modified Files: Tag: release10 iface.rb Log Message: Modified the iface.rb script so that it puts the output file (scintilla.rb) in the Fox module. Index: iface.rb =================================================================== RCS file: /cvsroot/fxruby/FXRuby/scripts/Attic/iface.rb,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** iface.rb 20 May 2002 22:38:20 -0000 1.1.2.1 --- iface.rb 30 May 2002 14:41:52 -0000 1.1.2.2 *************** *** 182,190 **** def processCommand(_cmd, _args) ! process = "process" + _cmd[0..0].upcase + _cmd[1..-1] ! if respond_to?(process) ! method(process).call(_args) ! else ! puts "*** Unknown cmd: #{_cmd} #{_args}" end end --- 182,192 ---- def processCommand(_cmd, _args) ! unless _cmd.empty? ! process = "process" + _cmd[0..0].upcase + _cmd[1..-1] ! if respond_to?(process) ! method(process).call(_args) ! else ! puts "*** Unknown cmd: #{_cmd} #{_args}" ! end end end *************** *** 258,268 **** def generate generateHeader ! @output.puts("class FXScintilla") @iface.cat.each do |cat| ! @output.puts(" # #{cat.name}") cat.entries.each do |entry| entry.accept(self) end end @output.puts("end") end --- 260,272 ---- def generate generateHeader ! @output.puts("module Fox") ! @output.puts(" class FXScintilla") @iface.cat.each do |cat| ! @output.puts(" # #{cat.name}") cat.entries.each do |entry| entry.accept(self) end end + @output.puts(" end") @output.puts("end") end *************** *** 273,277 **** def visitIFaceComment(_comment) ! @output.puts(" ##{_comment.text}") end --- 277,281 ---- def visitIFaceComment(_comment) ! @output.puts(" ##{_comment.text}") end *************** *** 279,283 **** return if _val.name == "KeyMod" return if _val.name == "Lexer" ! @output.puts(" #{name(_val.name)} = #{_val.code}") end --- 283,287 ---- return if _val.name == "KeyMod" return if _val.name == "Lexer" ! @output.puts(" #{name(_val.name)} = #{_val.code}") end *************** *** 287,291 **** name = name(_fun.name[0..0].downcase + _fun.name[1..-1]) ! @output.print(" def #{name}") args = _fun.args.collect do |arg| if stringresult and arg.type == "stringresult" --- 291,295 ---- name = name(_fun.name[0..0].downcase + _fun.name[1..-1]) ! @output.print(" def #{name}") args = _fun.args.collect do |arg| if stringresult and arg.type == "stringresult" *************** *** 300,304 **** if stringresult and !stringresult1 ! @output.puts(" buffer = \"\".ljust(#{_fun.args[0].name})") end --- 304,308 ---- if stringresult and !stringresult1 ! @output.puts(" buffer = \"\".ljust(#{_fun.args[0].name})") end *************** *** 314,323 **** if stringresult and !stringresult1 ! @output.puts(" #{returnValue}") ! @output.puts(" buffer") else ! @output.puts(" #{typeRet(_fun.return, returnValue)}") end ! @output.puts(" end") end --- 318,327 ---- if stringresult and !stringresult1 ! @output.puts(" #{returnValue}") ! @output.puts(" buffer") else ! @output.puts(" #{typeRet(_fun.return, returnValue)}") end ! @output.puts(" end") end *************** *** 332,336 **** def visitIFaceEvt(_evt) name = "SCN_" + _evt.name.upcase ! @output.puts(" #{name} = #{_evt.code}") end --- 336,340 ---- def visitIFaceEvt(_evt) name = "SCN_" + _evt.name.upcase ! @output.puts(" #{name} = #{_evt.code}") end |