* replaces it with a new one. Returns a newed up string. */
char *fileNameFromStem( char *stemFile, char *suffix )
{
- int len = strlen( stemFile );
+ long len = strlen( stemFile );
assert( len > 0 );
/* Get the extension. */
#undef TXL
#undef RUBY
-#ifdef WIN32
+#ifdef _MSC_VER
#define strcasecmp _stricmp
+#define strtoll _strtoi64
+#pragma warning( disable: 4244 4250 4355 4800 )
#endif
#endif /* _CONFIG_H */
#ifndef _FSMGRAPH_H
#define _FSMGRAPH_H
+#include "config.h"
#include <assert.h>
#include <iostream>
#include "common.h"
void terminateAllParsers( );
void writeMachines( std::ostream &out, std::string hostData, char *inputFileName );
-void xmlEscapeHost( std::ostream &out, char *data, int len );
+void xmlEscapeHost( std::ostream &out, char *data, long len );
#endif /* _RAGEL_H */
out << "</action>\n";
}
-void xmlEscapeHost( std::ostream &out, char *data, int len )
+void xmlEscapeHost( std::ostream &out, char *data, long len )
{
char *end = data + len;
while ( data != end ) {
#define _GENDATA_H
#include <iostream>
+#include "config.h"
#include "redfsm.h"
#include "common.h"
typedef unsigned long ulong;
-struct FsmCodeGen;
struct CodeGenData;
typedef AvlMap<char *, CodeGenData*, CmpStr> CodeGenMap;
#include <assert.h>
#include <string.h>
#include <string>
+#include "config.h"
#include "common.h"
#include "vector.h"
#include "dlist.h"
#include <stdio.h>
#include <iostream>
+#include "config.h"
#include "avltree.h"
#include "vector.h"
#include "config.h"
#include <stdio.h>
#include <iostream>
+#include "config.h"
#include "avltree.h"
#include "vector.h"
#include "config.h"