• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révision1bbfa0abd64dae16f5e5872ea6d8c902baeae414 (tree)
l'heure2014-10-04 18:54:25
AuteurHans Breuer <hans@breu...>
CommiterHans Breuer

Message de Log

[warningectomy] no previous prototype for function 'path_combine'

Add one more single function header.

Change Summary

Modification

--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -171,6 +171,7 @@ libdia_la_SOURCES = \
171171 diagdkrenderer.c \
172172 diapathrenderer.h \
173173 diapathrenderer.c \
174+ path-math.h \
174175 path-math.c \
175176 diapatternselector.h \
176177 diapatternselector.c \
--- a/lib/diapathrenderer.c
+++ b/lib/diapathrenderer.c
@@ -777,6 +777,7 @@ dia_path_renderer_class_init (DiaPathRendererClass *klass)
777777 #include "object.h"
778778 #include "create.h"
779779 #include "group.h"
780+#include "path-math.h" /* path_combine() */
780781
781782 /*!
782783 * \brief Convert an object to a _StdPath by rendering it with _DiaPathRenderer
@@ -892,3 +893,4 @@ create_standard_path_from_list (GList *objects,
892893 g_array_free (p1, TRUE);
893894 return path;
894895 }
896+
--- a/lib/diapathrenderer.h
+++ b/lib/diapathrenderer.h
@@ -48,6 +48,6 @@ void path_build_ellipse (GArray *path,
4848 real width, real height);
4949
5050 /* in path-math.c */
51-GArray *path_combine (const GArray *p1, const GArray *p2, PathCombineMode mode);
5251
5352 #endif
53+
--- a/lib/path-math.c
+++ b/lib/path-math.c
@@ -22,6 +22,7 @@
2222
2323 #include "geometry.h"
2424 #include "boundingbox.h"
25+#include "path-math.h"
2526
2627 #include <string.h> /* memcmp() */
2728
@@ -848,3 +849,4 @@ path_combine (const GArray *p1,
848849 }
849850 return result;
850851 }
852+
--- /dev/null
+++ b/lib/path-math.h
@@ -0,0 +1,29 @@
1+/* Dia -- an diagram creation/manipulation program
2+ * Copyright (C) 1998 Alexander Larsson
3+ *
4+ * path-math.c -- some helper function for binary path operations
5+ * Copyright (C) 2014, Hans Breuer <Hans@Breuer.Org>
6+ *
7+ * This program is free software; you can redistribute it and/or modify
8+ * it under the terms of the GNU General Public License as published by
9+ * the Free Software Foundation; either version 2 of the License, or
10+ * (at your option) any later version.
11+ *
12+ * This program is distributed in the hope that it will be useful,
13+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+ * GNU General Public License for more details.
16+ *
17+ * You should have received a copy of the GNU General Public License
18+ * along with this program; if not, write to the Free Software
19+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20+ */
21+#ifndef DIA_PATH_MATH_H
22+#define DIA_PATH_MATH_H
23+
24+#include <glib.h>
25+
26+GArray *path_combine (const GArray *p1, const GArray *p2, PathCombineMode mode);
27+
28+#endif
29+