summaryrefslogtreecommitdiffstats
path: root/src/trace/potrace/curve.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2007-10-26 21:01:30 +0000
committerishmal <ishmal@users.sourceforge.net>2007-10-26 21:01:30 +0000
commit7427b461ed13f3e84f61a02f55ca04ff8f2d49ad (patch)
treec1e4331a2a92b26e157904fd6ecca93c8cff3552 /src/trace/potrace/curve.cpp
parentadd ca@valencian language to win32 installer selection (diff)
downloadinkscape-7427b461ed13f3e84f61a02f55ca04ff8f2d49ad.tar.gz
inkscape-7427b461ed13f3e84f61a02f55ca04ff8f2d49ad.zip
Update Potrace to 1.8
(bzr r3965)
Diffstat (limited to 'src/trace/potrace/curve.cpp')
-rw-r--r--src/trace/potrace/curve.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/trace/potrace/curve.cpp b/src/trace/potrace/curve.cpp
index 89b6ee5fd..c9a6fbe04 100644
--- a/src/trace/potrace/curve.cpp
+++ b/src/trace/potrace/curve.cpp
@@ -1,13 +1,15 @@
-/* Copyright (C) 2001-2005 Peter Selinger.
- This file is part of potrace. It is free software and it is covered
+/* Copyright (C) 2001-2007 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
by the GNU General Public License. See the file COPYING for details. */
/* $Id$ */
/* private part of the path and curve data structures */
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "potracelib.h"
#include "lists.h"
#include "curve.h"
@@ -34,6 +36,16 @@ path_t *path_new(void) {
return NULL;
}
+/* free the members of the given curve structure. Leave errno unchanged. */
+static void privcurve_free_members(privcurve_t *curve) {
+ free(curve->tag);
+ free(curve->c);
+ free(curve->vertex);
+ free(curve->alpha);
+ free(curve->alpha0);
+ free(curve->beta);
+}
+
/* free a path. Leave errno untouched. */
void path_free(path_t *p) {
if (p) {
@@ -88,16 +100,6 @@ int privcurve_init(privcurve_t *curve, int n) {
return 1;
}
-/* free the members of the given curve structure */
-void privcurve_free_members(privcurve_t *curve) {
- free(curve->tag);
- free(curve->c);
- free(curve->vertex);
- free(curve->alpha);
- free(curve->alpha0);
- free(curve->beta);
-}
-
/* copy private to public curve structure */
void privcurve_to_curve(privcurve_t *pc, potrace_curve_t *c) {
c->n = pc->n;