From c57f14d1a6cd95af6c00ea74ae7ef22430641afc Mon Sep 17 00:00:00 2001 From: thurston Date: Wed, 14 Feb 2007 15:45:31 +0000 Subject: [PATCH] Fixed some references to Java left over from the split. Also, the line directive function does not need to guard against java code. git-svn-id: http://svn.complang.org/ragel/trunk@115 052ea7fc-9027-0410-9066-f65837a77df0 --- rlgen-ruby/rlgen-ruby.h | 4 ++-- rlgen-ruby/rubycodegen.cpp | 18 ++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/rlgen-ruby/rlgen-ruby.h b/rlgen-ruby/rlgen-ruby.h index 219c674..d76d1ed 100644 --- a/rlgen-ruby/rlgen-ruby.h +++ b/rlgen-ruby/rlgen-ruby.h @@ -25,11 +25,11 @@ #include #include "config.h" -#define PROGNAME "rlgen-java" +#define PROGNAME "rlgen-ruby" extern int gblErrorCount; extern char machineMain[]; std::ostream &error(); -#endif /* _RLGEN_JAVA_H */ +#endif /* _RLGEN_RUBY_H */ diff --git a/rlgen-ruby/rubycodegen.cpp b/rlgen-ruby/rubycodegen.cpp index 5d34a1e..e1f2d96 100644 --- a/rlgen-ruby/rubycodegen.cpp +++ b/rlgen-ruby/rubycodegen.cpp @@ -38,17 +38,15 @@ using std::endl; void lineDirective( ostream &out, char *fileName, int line ) { - if ( hostLangType != JavaCode ) { - /* Write a comment containing line info. */ - out << "# line " << line << " \""; - for ( char *pc = fileName; *pc != 0; pc++ ) { - if ( *pc == '\\' ) - out << "\\\\"; - else - out << *pc; - } - out << "\"\n"; + /* Write a comment containing line info. */ + out << "# line " << line << " \""; + for ( char *pc = fileName; *pc != 0; pc++ ) { + if ( *pc == '\\' ) + out << "\\\\"; + else + out << *pc; } + out << "\"\n"; } void genLineDirective( ostream &out ) -- 2.7.4