#define yylval IDLlval
#include <IDL.tab.h>
#include <string.h>
+#include <ctype.h>
+#ifdef WNT
+# include <io.h>
+#else
+# include <unistd.h>
+#endif /* WNT */
static char idl_escape_reader(char *);
static double idl_atof(char *);
static long idl_atoi(char *, long);
-static void idl_parse_line_and_file(char *);
-static void idl_store_pragma(char *);
/* static char *yytext = (char *) yytext; */
#define yyinput() input()
static double
idl_atof(char *s)
{
- char *h = s;
double d = 0.0;
- double f = 0.0;
double e, k;
long neg = 0, negexp = 0;
%{
#include <stdio.h>
+#include <stdlib.h>
#define yyv IDLv
#if (defined(apollo) || defined(hpux)) && defined(__cplusplus)
extern "C" int IDLwrap();
#endif // (defined(apollo) || defined(hpux)) && defined(__cplusplus)
+
+extern void IDL_SetIdentifier ( char* );
+extern void IDL_InterfaceDeclaration ( void );
+extern void IDL_InterfaceDefinitionBegin ( void );
+extern void IDL_InterfaceDefinitionEnd ( void );
+
+extern int IDLlex ( void );
+extern void IDLerror ( char* );
+
%}
/*
#else
extern "C" FILE *IDLin;
#endif // WNT
-extern "C" IDLparse();
+extern "C" int IDLparse();
// BEGIN Variables
//
-static char *YY_fileName="";
static int YY_nb_error;
static int YY_nb_warning;
const Handle(TColStd_HSequenceOfHAsciiString)& anInstList,
const Handle(TColStd_HSequenceOfHAsciiString)& anGenList)
{
- Standard_Integer ErrorLevel = 0;
+ volatile Standard_Integer ErrorLevel = 0;
theMetaSchema = aMetaSchema;
ListOfGlobalUsed = aGlobalList;