File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 6262
6363#include "judy.h"
6464
65- #if defined(STANDALONE ) || defined(ASKITIS )
6665#include <string.h>
6766#include <stdio.h>
6867
68+ #if defined(STANDALONE ) || defined(ASKITIS )
69+
6970extern unsigned int MaxMem ;
7071
7172// void judy_abort (char *msg) __attribute__ ((noreturn)); // Tell static analyser that this function will not return
Original file line number Diff line number Diff line change 66
77#ifdef __cplusplus
88#include < iostream>
9+ #include < iosfwd>
910#include < string>
1011
1112#include " sc_memmgr.h"
Original file line number Diff line number Diff line change 1010#include " lazyTypes.h"
1111#include " lazyInstMgr.h"
1212#include " ExpDict.h"
13- #include " sdaiApplication_instance.h"
1413#include " SubSuperIterators.h"
1514#include < STEPattribute.h>
1615#include < STEPaggregate.h>
1918#define strcasecmp _strcmpi
2019#endif // _WIN32
2120
22-
21+ class SDAI_Application_instance ;
2322/*
2423 * given inverted attr ia:
2524 * attr method value
@@ -132,7 +131,7 @@ class SC_LAZYFILE_EXPORT lazyRefs {
132131 bool found = false ;
133132 if ( sa.getADesc ()->IsAggrType () ) {
134133 // aggregate - search for current inst id
135- EntityAggregate * aggr = dynamic_cast < EntityAggregate * >( sa.Aggregate ());
134+ EntityAggregate * aggr = dynamic_cast < EntityAggregate * >( sa.Aggregate () );
136135 assert ( aggr );
137136 EntityNode * en = ( EntityNode * ) aggr->GetHead ();
138137 while ( en ) {
@@ -180,7 +179,7 @@ class SC_LAZYFILE_EXPORT lazyRefs {
180179 }
181180 std::cerr << " Error! inverse attr " << ia->Name () << " (" << ia << " ) not found in iAMap for entity " << inst->getEDesc ()->Name () << std::endl;
182181 abort ();
183- iAstruct nil;
182+ iAstruct nil = { nullptr } ;
184183 return nil;
185184 }
186185
Original file line number Diff line number Diff line change @@ -946,7 +946,7 @@ const SDAI_Application_instance::iAMap_t::value_type SDAI_Application_instance::
946946 }
947947 iAstruct z;
948948 memset ( &z, 0 , sizeof z );
949- iAMap_t::value_type nil ( nullptr , z );
949+ iAMap_t::value_type nil ( (Inverse_attribute *) nullptr , z );
950950 return nil;
951951}
952952
Original file line number Diff line number Diff line change 11#ifndef STEPENTITY_H
2- #define STEPENTITY_H 1
2+ #define STEPENTITY_H
33
44/*
55* NIST STEP Core Class Library
@@ -197,4 +197,4 @@ class SC_CORE_EXPORT SDAI_Application_instance : public SDAI_DAObject_SDAI {
197197typedef SDAI_Application_instance * SDAI_Application_instance_ptr;
198198typedef SDAI_Application_instance_ptr SDAI_Application_instance_var;
199199
200- #endif
200+ #endif // STEPENTITY_H
You can’t perform that action at this time.
0 commit comments