作図ソフト dia の改良版
Révision | 1bbfa0abd64dae16f5e5872ea6d8c902baeae414 (tree) |
---|---|
l'heure | 2014-10-04 18:54:25 |
Auteur | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
[warningectomy] no previous prototype for function 'path_combine'
Add one more single function header.
@@ -171,6 +171,7 @@ libdia_la_SOURCES = \ | ||
171 | 171 | diagdkrenderer.c \ |
172 | 172 | diapathrenderer.h \ |
173 | 173 | diapathrenderer.c \ |
174 | + path-math.h \ | |
174 | 175 | path-math.c \ |
175 | 176 | diapatternselector.h \ |
176 | 177 | diapatternselector.c \ |
@@ -777,6 +777,7 @@ dia_path_renderer_class_init (DiaPathRendererClass *klass) | ||
777 | 777 | #include "object.h" |
778 | 778 | #include "create.h" |
779 | 779 | #include "group.h" |
780 | +#include "path-math.h" /* path_combine() */ | |
780 | 781 | |
781 | 782 | /*! |
782 | 783 | * \brief Convert an object to a _StdPath by rendering it with _DiaPathRenderer |
@@ -892,3 +893,4 @@ create_standard_path_from_list (GList *objects, | ||
892 | 893 | g_array_free (p1, TRUE); |
893 | 894 | return path; |
894 | 895 | } |
896 | + |
@@ -48,6 +48,6 @@ void path_build_ellipse (GArray *path, | ||
48 | 48 | real width, real height); |
49 | 49 | |
50 | 50 | /* in path-math.c */ |
51 | -GArray *path_combine (const GArray *p1, const GArray *p2, PathCombineMode mode); | |
52 | 51 | |
53 | 52 | #endif |
53 | + |
@@ -22,6 +22,7 @@ | ||
22 | 22 | |
23 | 23 | #include "geometry.h" |
24 | 24 | #include "boundingbox.h" |
25 | +#include "path-math.h" | |
25 | 26 | |
26 | 27 | #include <string.h> /* memcmp() */ |
27 | 28 |
@@ -848,3 +849,4 @@ path_combine (const GArray *p1, | ||
848 | 849 | } |
849 | 850 | return result; |
850 | 851 | } |
852 | + |
@@ -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 | + |