From f48754e0673ecd0f1f8ab679eac77aa63987595c Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 12 Jun 2012 14:24:50 -0300 Subject: [PATCH] cameo/path.c: make path_is_closed global --- cameo/path.c | 2 +- cameo/path.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cameo/path.c b/cameo/path.c index f8a8515..7533cc1 100644 --- a/cameo/path.c +++ b/cameo/path.c @@ -98,7 +98,7 @@ static int points_eq(const struct point *a, const struct point *b) } -static int path_is_closed(const struct path *path) +int path_is_closed(const struct path *path) { if (path->first == path->last) return 1; diff --git a/cameo/path.h b/cameo/path.h index bbf3097..de1c585 100644 --- a/cameo/path.h +++ b/cameo/path.h @@ -34,6 +34,7 @@ struct path *path_new(double r_tool, const char *id); void path_add(struct path *path, double x, double y, double z); struct path *path_reverse(const struct path *path); struct path *path_clone(const struct path *path); +int path_is_closed(const struct path *path); int path_tool_is_left(const struct path *path); struct path *path_offset(const struct path *path, int left, int notch); const struct path *path_find_leftmost(const struct path *path);