]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Fri, 5 Nov 1999 18:28:10 +0000 (18:28 +0000)
committercas <cas@opencascade.com>
Fri, 5 Nov 1999 18:28:10 +0000 (18:28 +0000)
src/IDLFront/IDL.lex
src/IDLFront/IDL.yacc
src/IDLFront/IDLFront.cxx

index fcb073027edc7e05ee7915a105827f886cb93ab8..2517df84e05dea864cd737d05f92b5c3ef4676fe 100755 (executable)
@@ -7,12 +7,16 @@
 #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()
@@ -220,9 +224,7 @@ idl_atoi(char *s, long b)
 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;
 
index 3103fb79c75f73297c226f4ad56439f7cb8c3aed..1c728c8866abfb94632b78c34c569397117caf5f 100755 (executable)
@@ -6,11 +6,21 @@
 
 %{
 #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* );
+
 %}
 
 /*
index 35dcd7b50d4c1ef8d365ba3c1f9ee989cc66326f..a1a9710aa74b5b8bda8c2937b6a02c2c78b38f0b 100755 (executable)
@@ -28,12 +28,11 @@ extern FILE             *IDLin;
 #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;
 
@@ -158,7 +157,7 @@ int IDLTranslate(const Handle(MS_MetaSchema)&             aMetaSchema,
                 const Handle(TColStd_HSequenceOfHAsciiString)& anInstList,
                 const Handle(TColStd_HSequenceOfHAsciiString)& anGenList) 
 {
-  Standard_Integer  ErrorLevel = 0;
+  volatile Standard_Integer  ErrorLevel = 0;
 
   theMetaSchema    = aMetaSchema;
   ListOfGlobalUsed = aGlobalList;