diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-01 18:32:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-21 13:17:45 -0500 |
commit | 4dbe795ac2b9af24c3c45d4d25ac0eedf86f3d12 (patch) | |
tree | 81a867ec77541be7a6b4e43efc8e5072c50f92af /klippy/chelper/trapq.h | |
parent | 2843c850198010b1948a578a1b1421ee81be36b7 (diff) | |
download | kutter-4dbe795ac2b9af24c3c45d4d25ac0eedf86f3d12.tar.gz kutter-4dbe795ac2b9af24c3c45d4d25ac0eedf86f3d12.tar.xz kutter-4dbe795ac2b9af24c3c45d4d25ac0eedf86f3d12.zip |
trapq: Implement sentinel nodes on the trapq list
Use sentinels to make list traversal code simpler. Also add in null
moves so that there are no time gaps in the list.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/trapq.h')
-rw-r--r-- | klippy/chelper/trapq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/chelper/trapq.h b/klippy/chelper/trapq.h index ec762621..4572ef1a 100644 --- a/klippy/chelper/trapq.h +++ b/klippy/chelper/trapq.h @@ -29,6 +29,7 @@ double move_get_distance(struct move *m, double move_time); struct coord move_get_coord(struct move *m, double move_time); struct trapq *trapq_alloc(void); void trapq_free(struct trapq *tq); +void trapq_check_sentinels(struct trapq *tq); void trapq_add_move(struct trapq *tq, struct move *m); void trapq_free_moves(struct trapq *tq, double print_time); |