Skip to content

Commit c387f9a

Browse files
committed
(winnie) Fixing edefinition of struct stat
1 parent 2e801bd commit c387f9a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

src/metrics/metrics_driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*PGR-GNU*****************************************************************
2-
File: allpairs_driver.cpp
2+
File: metrics_driver.cpp
33
44
Generated with Template by:
55
Copyright (c) 2025 pgRouting developers
66
77
8-
Developer:
8+
Developer:
99
Copyright (c) 2025 Saloni Kumari
1010
Mail: chaudharysaloni2510 at gmail.com
1111

src/metrics/metrics_process.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3232

3333
#include "process/metrics_process.h"
3434

35-
#include <string>
36-
3735
extern "C" {
3836
#include "c_common/postgres_connection.h"
3937
#include "c_common/e_report.h"
4038
#include "c_common/time_msg.h"
4139
}
4240

41+
#include <string>
42+
4343
#include "c_types/iid_t_rt.h"
4444
#include "cpp_common/assert.hpp"
4545
#include "drivers/metrics_driver.hpp"
4646

47-
#if 0
48-
which = 0 -> bandwidth
47+
/**
48+
which = 0 -> bandwidth
4949
50-
This is c++ code, linked as C code, because pgr_process_metrics is called from C code
51-
#endif
50+
This is c++ code, linked as C code, because pgr_process_metrics is called from C code
51+
*/
5252
void pgr_process_metrics(const char* edges_sql, int which, IID_t_rt **result_tuples, size_t *result_count) {
5353
pgassert(edges_sql);
5454
pgassert(!(*result_tuples));

src/ordering/ordering_process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2929

3030
#include "process/ordering_process.h"
3131

32-
#include <string>
33-
3432
extern "C" {
3533
#include "c_common/postgres_connection.h"
3634
#include "c_common/e_report.h"
3735
#include "c_common/time_msg.h"
3836
}
3937

38+
#include <string>
39+
4040
#include "cpp_common/assert.hpp"
4141
#include "drivers/ordering_driver.hpp"
4242

tools/scripts/code_checker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ INCLUDE_ORDER="
4747
-build/include_order:src/cpp_common/pgdata_getters.cpp,
4848
-build/include_order:include/cpp_common/get_data.hpp,
4949
-build/include_order:src/dijkstra/shortestPath_process.cpp,
50+
-build/include_order:src/metrics/metrics_process.cpp,
51+
-build/include_order:src/ordering/ordering_process.cpp,
5052
-build/include_order:src/allpairs/allpairs_process.cpp"
5153

5254
if test -z "$DIRECTORY"; then

0 commit comments

Comments
 (0)