Fixed some references to Java left over from the split. Also, the line
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Wed, 14 Feb 2007 15:45:31 +0000 (15:45 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Wed, 14 Feb 2007 15:45:31 +0000 (15:45 +0000)
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
rlgen-ruby/rubycodegen.cpp

index 219c674..d76d1ed 100644 (file)
 #include <iostream>
 #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 */
index 5d34a1e..e1f2d96 100644 (file)
@@ -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 )