+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and / or modify it
+// under the terms of the GNU Lesser General Public version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
// abv 09.04.99 S4136: eliminate parameter step.readaccept.void
// sln 04,10.2001. BUC61003. Prevent exception which may occur during reading of complex entity (if entity's items are not in alphabetical order)
#include <StepData_StepReaderData.ixx>
// Attention : False pour dire OK, True sinon (car remplace strcmp)
Standard_Integer i,j = 0; Standard_Boolean res = Standard_False;
for (i = 0; name[i] != '\0' && type[i] != '\0' && !res ; i ++) {
- if (name[i] == ' ') { j = i; break; }
+ if (name[i] == ' ' && type[i] == '\0') { j = i; break; }
if (type[i] != name[i]) res = Standard_True;
}
if (!res || (j == 0)) return res;
Standard_Integer fromscope = nr;
Standard_Integer toscope = indm(indmap);
if (toscope < 0) toscope = -toscope;
- while (1) {
+ for(;;) {
fromscope --; // iteration de base
if (fromscope <= toscope) {
errorscope = Standard_True; // BANG, on est dessus