Skip to content

Commit d5296b9

Browse files
committed
Added linting to src/trsp/src/trsp.h
1 parent 8d8d924 commit d5296b9

File tree

1 file changed

+37
-40
lines changed

1 file changed

+37
-40
lines changed

src/trsp/src/trsp.h

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,32 @@
1818
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1919
*
2020
*/
21-
22-
#ifndef _TRSP_H
23-
#define _TRSP_H
21+
22+
#ifndef SRC_TRSP_SRC_TRSP_H_
23+
#define SRC_TRSP_SRC_TRSP_H_
2424

2525
#define MAX_RULE_LENGTH 5
2626

2727
#include "postgres.h"
2828
#include "c_types/pgr_types.h"
2929

3030

31-
typedef struct edge
32-
{
31+
typedef struct edge {
3332
long id;
3433
long source;
3534
long target;
3635
float8 cost;
3736
float8 reverse_cost;
3837
} edge_t;
3938

40-
typedef struct restrict_struct
41-
{
42-
int target_id;
43-
float8 to_cost;
44-
int via[MAX_RULE_LENGTH];
45-
}
39+
typedef struct restrict_struct {
40+
int target_id;
41+
float8 to_cost;
42+
int via[MAX_RULE_LENGTH];
43+
}
4644
restrict_t;
4745

48-
typedef struct path_element
49-
{
46+
typedef struct path_element {
5047
long vertex_id;
5148
long edge_id;
5249
float8 cost;
@@ -57,38 +54,38 @@ extern "C" {
5754
#endif
5855

5956
int trsp_node_wrapper(
60-
edge_t *edges,
61-
size_t edge_count,
62-
restrict_t *restricts,
63-
size_t restrict_count,
64-
int64_t start_vertex,
65-
int64_t end_vertex,
66-
bool directed,
67-
bool has_reverse_cost,
68-
path_element_tt **path,
69-
size_t *path_count,
70-
char **err_msg
71-
);
57+
edge_t *edges,
58+
size_t edge_count,
59+
restrict_t *restricts,
60+
size_t restrict_count,
61+
int64_t start_vertex,
62+
int64_t end_vertex,
63+
bool directed,
64+
bool has_reverse_cost,
65+
path_element_tt **path,
66+
size_t *path_count,
67+
char **err_msg
68+
);
7269

7370

7471
int trsp_edge_wrapper(
75-
edge_t *edges,
76-
size_t edge_count,
77-
restrict_t *restricts,
78-
size_t restrict_count,
79-
int64_t start_edge,
80-
double start_pos,
81-
int64_t end_edge,
82-
double end_pos,
83-
bool directed,
84-
bool has_reverse_cost,
85-
path_element_tt **path,
86-
size_t *path_count,
87-
char **err_msg
88-
);
72+
edge_t *edges,
73+
size_t edge_count,
74+
restrict_t *restricts,
75+
size_t restrict_count,
76+
int64_t start_edge,
77+
double start_pos,
78+
int64_t end_edge,
79+
double end_pos,
80+
bool directed,
81+
bool has_reverse_cost,
82+
path_element_tt **path,
83+
size_t *path_count,
84+
char **err_msg
85+
);
8986

9087
#ifdef __cplusplus
9188
}
9289
#endif
9390

94-
#endif
91+
#endif // SRC_TRSP_SRC_TRSP_H_

0 commit comments

Comments
 (0)