diff --git a/include/drivers/yen/withPoints_ksp_driver.h b/include/drivers/yen/withPoints_ksp_driver.h index b11551a2c8..09dcc5d2e3 100644 --- a/include/drivers/yen/withPoints_ksp_driver.h +++ b/include/drivers/yen/withPoints_ksp_driver.h @@ -69,7 +69,7 @@ extern "C" { Path_rt**, size_t*, char**, char**, char**); - + /*TODO remove on v4*/ int do_pgr_withPointsKsp( Edge_t *edges, size_t total_edges, diff --git a/include/yen/pgr_ksp.hpp b/include/yen/pgr_ksp.hpp index 3aaa06ef2f..5a3eba2d16 100644 --- a/include/yen/pgr_ksp.hpp +++ b/include/yen/pgr_ksp.hpp @@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #include #include #include +#include #include "dijkstra/dijkstra.hpp" #include "cpp_common/pgr_assert.h" @@ -246,7 +247,7 @@ namespace algorithms { G &graph, const std::map> &combinations, size_t k, - bool heap_paths){ + bool heap_paths) { std::deque paths; pgrouting::yen::Pgr_ksp fn_yen; @@ -267,7 +268,7 @@ namespace algorithms { return paths; } -} // namespace algorithms +} // namespace algorithms } // namespace pgrouting diff --git a/src/ksp/withPoints_ksp.c b/src/ksp/withPoints_ksp.c index 797e4ac016..ad86f7835b 100644 --- a/src/ksp/withPoints_ksp.c +++ b/src/ksp/withPoints_ksp.c @@ -74,8 +74,8 @@ processv4( size_t k = (size_t)p_k; driving_side[0] = (char) tolower(driving_side[0]); - if(!((driving_side[0] == 'r') - || (driving_side[0] == 'l') || (driving_side[0] == 'b'))){ + if (!((driving_side[0] == 'r') + || (driving_side[0] == 'l') || (driving_side[0] == 'b'))) { elog(ERROR, "Driving side is not selected or Invalid Values"); return; } @@ -207,7 +207,7 @@ PGDLLEXPORT Datum _pgr_v4withpointsksp(PG_FUNCTION_ARGS) { funcctx = SRF_FIRSTCALL_INIT(); oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx); - if(PG_NARGS() == 9){ + if (PG_NARGS() == 9) { processv4( text_to_cstring(PG_GETARG_TEXT_P(0)), text_to_cstring(PG_GETARG_TEXT_P(1)), @@ -221,7 +221,7 @@ PGDLLEXPORT Datum _pgr_v4withpointsksp(PG_FUNCTION_ARGS) { PG_GETARG_BOOL(8), &result_tuples, &result_count); - } else/* (PG_NARGS() == 8) */{ + } else /* (PG_NARGS() == 8) */ { processv4( text_to_cstring(PG_GETARG_TEXT_P(0)), text_to_cstring(PG_GETARG_TEXT_P(1)), @@ -516,4 +516,4 @@ PGDLLEXPORT Datum _pgr_withpointsksp(PG_FUNCTION_ARGS) { } else { SRF_RETURN_DONE(funcctx); } -} \ No newline at end of file +} diff --git a/src/ksp/withPoints_ksp_driver.cpp b/src/ksp/withPoints_ksp_driver.cpp index 08a0cdf1ee..9498b91ac8 100644 --- a/src/ksp/withPoints_ksp_driver.cpp +++ b/src/ksp/withPoints_ksp_driver.cpp @@ -348,4 +348,4 @@ do_pgr_withPointsKsp( *log_msg = pgr_msg(log.str().c_str()); } return 1000; -} \ No newline at end of file +}