From de1e36e74dfcce256953ee803222c4f599d28d17 Mon Sep 17 00:00:00 2001 From: thurston Date: Sun, 25 Mar 2007 22:44:11 +0000 Subject: [PATCH] The IDENT_* functions don't need to be virtual. git-svn-id: http://svn.complang.org/ragel/trunk@150 052ea7fc-9027-0410-9066-f65837a77df0 --- rlgen-ruby/rubycodegen.cpp | 4 ---- rlgen-ruby/rubycodegen.h | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/rlgen-ruby/rubycodegen.cpp b/rlgen-ruby/rubycodegen.cpp index 180ca0c..5e8a81c 100644 --- a/rlgen-ruby/rubycodegen.cpp +++ b/rlgen-ruby/rubycodegen.cpp @@ -475,10 +475,6 @@ string RubyCodeGen::INDENT(int level) result += " "; /* The convention in ruby is 2 spaces per level */ return result; } -inline string RubyCodeGen::INDENT_S() { return INDENT(indent_level); } -inline string RubyCodeGen::INDENT_U() { return INDENT(++indent_level); } -inline string RubyCodeGen::INDENT_D() { return INDENT(--indent_level); } -inline string RubyCodeGen::INDENT_O() { return INDENT(indent_level--); } void RubyCodeGen::NEXT( ostream &ret, int nextDest, bool inFinish ) diff --git a/rlgen-ruby/rubycodegen.h b/rlgen-ruby/rubycodegen.h index a00b24e..773b949 100644 --- a/rlgen-ruby/rubycodegen.h +++ b/rlgen-ruby/rubycodegen.h @@ -191,10 +191,10 @@ public: virtual void ACTION( ostream &ret, Action *action, int targState, bool inFinish ); protected: - virtual string INDENT_S(); - virtual string INDENT_U(); - virtual string INDENT_D(); - virtual string INDENT_O(); + string INDENT_S() { return INDENT(indent_level); } + string INDENT_U() { return INDENT(++indent_level); } + string INDENT_D() { return INDENT(--indent_level); } + string INDENT_O() { return INDENT(indent_level--); } private: virtual string INDENT(int level); -- 2.7.4