Don't allow the left machine of <: to escape through the right machine via the
[external/ragel.git] / ragel / ragel.h
index 81d3f9a..53baa0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2003 Adrian Thurston <thurston@cs.queensu.ca>
+ *  Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
  */
 
 /*  This file is part of Ragel.
@@ -52,12 +52,12 @@ extern char *machineSpec, *machineName;
 extern bool printStatistics;
 
 extern int gblErrorCount;
-extern char machineMain[];
+extern char mainMachine[];
 
 /* Location in an input file. */
 struct InputLoc
 {
-       char *fileName;
+       const char *fileName;
        int line;
        int col;
 };
@@ -67,14 +67,8 @@ std::ostream &error();
 std::ostream &error( const InputLoc &loc ); 
 std::ostream &warning( const InputLoc &loc ); 
 
-void scan( char *fileName, std::istream &input, std::ostream &output );
 void terminateAllParsers( );
-void checkMachines( );
 void writeMachines( std::ostream &out, std::string hostData, char *inputFileName );
-void xmlEscapeHost( std::ostream &out, char *data, int len );
-
-
-/* Size of the include stack. */
-#define INCLUDE_STACK_SIZE 32
+void xmlEscapeHost( std::ostream &out, char *data, long len );
 
 #endif /* _RAGEL_H */