Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -17,7 +17,7 @@ repos:
exclude: external/.*$

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.6
rev: v21.1.8
hooks:
- id: clang-format
exclude: external/.*$
Expand All @@ -29,7 +29,7 @@ repos:
additional_dependencies: [ pyyaml ]
# - id: cmake-lint

- repo: https://github.com/psf/black
rev: 22.12.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
9 changes: 3 additions & 6 deletions tsp/inc/trackMinimization.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
#ifdef __cplusplus
extern "C"
#endif
int
TrackMinimization_2D(int* xIn, int* yIn, int ncount, int* mytour);
int TrackMinimization_2D(int* xIn, int* yIn, int ncount, int* mytour);

#ifdef __cplusplus
extern "C"
#endif
int
TrackMinimization_segment(int ncount, int* elen, int* mytour);
int TrackMinimization_segment(int ncount, int* elen, int* mytour);

#ifdef __cplusplus
extern "C"
#endif
int
TrackMinimization_3D(int* xIn, int* yIn, int* zIn, int ncount, int* mytour);
int TrackMinimization_3D(int* xIn, int* yIn, int* zIn, int ncount, int* mytour);
2 changes: 1 addition & 1 deletion tsp/inc/tsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ typedef struct CCtsp_branchobj {
} CCtsp_branchobj;

typedef struct CCtsp_cutnode {
#define CCtsp_CUT_INNODELIST(t) ((t)&4)
#define CCtsp_CUT_INNODELIST(t) ((t) & 4)
#define CCtsp_CUT_ROOT 0
#define CCtsp_CUT_PNODE 1
#define CCtsp_CUT_QNODE 2
Expand Down