patch-analyser_impl_analyse_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-analyser_impl_analyse_c,v 1.1 2017/05/07 23:57:16 espie Exp $
  2. Index: analyser/impl/analyse.c
  3. --- analyser/impl/analyse.c.orig
  4. +++ analyser/impl/analyse.c
  5. @@ -1208,7 +1208,7 @@ static Boolean __analyseBehindConnector(iOAnalyse inst
  6. __analyseItem(inst, nextitem, route, occ, travel, 0, depth, searchingSignal, behindABlock );
  7. }
  8. - return;
  9. + return found;
  10. }
  11. }
  12. }
  13. @@ -1437,7 +1437,7 @@ static Boolean __analyseItem(iOAnalyse inst, iONode it
  14. searchingSignal = False;
  15. if( behindABlock) {
  16. - return;
  17. + return False;
  18. }
  19. }
  20. @@ -1454,7 +1454,7 @@ static Boolean __analyseItem(iOAnalyse inst, iONode it
  21. if( behindABlock) {
  22. TraceOp.trc( name, TRCLEVEL_DEBUG, __LINE__, 9999, "behind a block");
  23. - return;
  24. + return False;
  25. }
  26. TraceOp.trc( name, TRCLEVEL_INFO, __LINE__, 9999, "next is a block: [%s]", wItem.getid(nextitem));
  27. @@ -1503,7 +1503,7 @@ static Boolean __analyseItem(iOAnalyse inst, iONode it
  28. if( travelp > 10 && behindABlock){
  29. TraceOp.trc( name, TRCLEVEL_INFO, __LINE__, 9999, " found a turnout [%s] behind the end block: return", wItem.getid(nextitem));
  30. - return;
  31. + return False;
  32. }
  33. /* item is a turnout -> coming from the points: dive into branches */