[dia] [warningectomy] no previous prototype for function 'path_combine'
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] no previous prototype for function 'path_combine'
- Date: Sat, 4 Oct 2014 11:07:32 +0000 (UTC)
commit 1bbfa0abd64dae16f5e5872ea6d8c902baeae414
Author: Hans Breuer <hans breuer org>
Date: Sat Oct 4 11:54:25 2014 +0200
[warningectomy] no previous prototype for function 'path_combine'
Add one more single function header.
lib/Makefile.am | 1 +
lib/diapathrenderer.c | 2 ++
lib/diapathrenderer.h | 2 +-
lib/path-math.c | 2 ++
lib/path-math.h | 29 +++++++++++++++++++++++++++++
5 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index fc1590c..17ee987 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -171,6 +171,7 @@ libdia_la_SOURCES = \
diagdkrenderer.c \
diapathrenderer.h \
diapathrenderer.c \
+ path-math.h \
path-math.c \
diapatternselector.h \
diapatternselector.c \
diff --git a/lib/diapathrenderer.c b/lib/diapathrenderer.c
index 71616a1..1a836c0 100644
--- a/lib/diapathrenderer.c
+++ b/lib/diapathrenderer.c
@@ -777,6 +777,7 @@ dia_path_renderer_class_init (DiaPathRendererClass *klass)
#include "object.h"
#include "create.h"
#include "group.h"
+#include "path-math.h" /* path_combine() */
/*!
* \brief Convert an object to a _StdPath by rendering it with _DiaPathRenderer
@@ -892,3 +893,4 @@ create_standard_path_from_list (GList *objects,
g_array_free (p1, TRUE);
return path;
}
+
diff --git a/lib/diapathrenderer.h b/lib/diapathrenderer.h
index f94ef85..64adb33 100644
--- a/lib/diapathrenderer.h
+++ b/lib/diapathrenderer.h
@@ -48,6 +48,6 @@ void path_build_ellipse (GArray *path,
real width, real height);
/* in path-math.c */
-GArray *path_combine (const GArray *p1, const GArray *p2, PathCombineMode mode);
#endif
+
diff --git a/lib/path-math.c b/lib/path-math.c
index b3dbea2..bc1bf42 100644
--- a/lib/path-math.c
+++ b/lib/path-math.c
@@ -22,6 +22,7 @@
#include "geometry.h"
#include "boundingbox.h"
+#include "path-math.h"
#include <string.h> /* memcmp() */
@@ -848,3 +849,4 @@ path_combine (const GArray *p1,
}
return result;
}
+
diff --git a/lib/path-math.h b/lib/path-math.h
new file mode 100644
index 0000000..821c49b
--- /dev/null
+++ b/lib/path-math.h
@@ -0,0 +1,29 @@
+/* Dia -- an diagram creation/manipulation program
+ * Copyright (C) 1998 Alexander Larsson
+ *
+ * path-math.c -- some helper function for binary path operations
+ * Copyright (C) 2014, Hans Breuer <Hans Breuer Org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+#ifndef DIA_PATH_MATH_H
+#define DIA_PATH_MATH_H
+
+#include <glib.h>
+
+GArray *path_combine (const GArray *p1, const GArray *p2, PathCombineMode mode);
+
+#endif
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]