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
#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 */
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 )