Move own include in RW source, according to code rules.
Update list of already generated entities.
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
+#if __cplusplus > 199711L
+#define register// Deprecated in C++11.
+#endif
/************************************************/
/* ERROR MESSAGE FUNCTION */
/* external functions (from Express.l) */
-int ec_error ( char *s, char *text );
+int ec_error ( char const *s, char const *text );
int ec_curline ( void );
#define yyerror ec_error
-void ec_error ( char *s )
+void ec_error ( char const *s )
{
printf ( "\nParse error at line %d: %s\n", ec_curline(), s );
}
{ yyval.field = mkfield ( yypvt[-4].str, yypvt[-1].type, yypvt[-2].num ); } break;
case 53:
# line 242 "Express.y"
-{ yyval.num = NULL; printf ( "Warning at line %d: field redefinition ignored\n", ec_curline() ); /* redefinition of inherited field */ } break;
+{ yyval.num = 0; printf ( "Warning at line %d: field redefinition ignored\n", ec_curline() ); /* redefinition of inherited field */ } break;
case 54:
# line 244 "Express.y"
{ yyval.tlist = mktlist ( yypvt[-0].str, 0 ); /* inherited field specification */ } break;
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
+#if __cplusplus > 199711L
+#define register// Deprecated in C++11.
+#endif
# define U(x) x
# define NLSTATE yyprevious=YYNEWLINE
return ec_linenum;
}
-int ec_error ( char *s, char *text )
+int ec_error ( char const *s, char const *text )
{
printf ( "\nError at line %d: %s \"%s\"\n", ec_curline(), s, text );
return 0;
/* parsing rules */
# define YYNEWLINE 10
int yylex(){
-int nstr; extern int yyprevious;
+int nstr = 0; extern int yyprevious;
#ifdef __cplusplus
/* to avoid CC and lint complaining yyfussy not being used ...*/
static int __lex_hack = 0;
struct ec_field *mkfield ( char *name, struct ec_type *type, int optional );
/* Error reporting functions */
-int ec_error ( char *s, char *text );
+int ec_error ( char const *s, char const *text );
int ec_curline ( void );
/* Access to result of parsing */
TessellatedGeometricSet StepVisual
TessellatedCurveSet StepVisual
CoordinatesList StepVisual
+SurfaceStyleTransparent StepVisual
+SurfaceStyleReflectanceAmbient StepVisual
+SurfaceStyleRendering StepVisual
+SurfaceStyleRenderingWithProperties StepVisual
Express::WriteFileStamp ( os );
// write include section
- os << "#include <Interface_EntityIterator.hxx>" << std::endl;
- os << "#include <StepData_StepReaderData.hxx>" << std::endl;
- os << "#include <StepData_StepWriter.hxx>" << std::endl;
os << "#include <" << RWCPPName->ToCString() << ".hxx>" << std::endl;
dict.Clear();
os << "#include <" << CPPname->ToCString() << ".hxx>" << std::endl;
dict.Bind(CPPname->ToCString(), 1);
+ os << "#include <Interface_EntityIterator.hxx>" << std::endl;
+ os << "#include <StepData_StepReaderData.hxx>" << std::endl;
+ os << "#include <StepData_StepWriter.hxx>" << std::endl;
WriteRWInclude ( os, dict );
// write constructor
Express::WriteMethodStamp ( os, RWCPPName );