[librsvg/rustification] rsvg-shapes: Move the RsvgNodePath declarations inside the .c file
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] rsvg-shapes: Move the RsvgNodePath declarations inside the .c file
- Date: Fri, 28 Oct 2016 16:22:27 +0000 (UTC)
commit ae1f5a558ea5a43dd5b37234caeae389763e6720
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Oct 27 21:51:36 2016 -0500
rsvg-shapes: Move the RsvgNodePath declarations inside the .c file
They are private anyway, and not used elsewhere.
rsvg-shapes.c | 7 +++++++
rsvg-shapes.h | 7 -------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/rsvg-shapes.c b/rsvg-shapes.c
index df8641f..20f0777 100644
--- a/rsvg-shapes.c
+++ b/rsvg-shapes.c
@@ -40,6 +40,13 @@
/* 4/3 * (1-cos 45)/sin 45 = 4/3 * sqrt(2) - 1 */
#define RSVG_ARC_MAGIC ((double) 0.5522847498)
+typedef struct _RsvgNodePath RsvgNodePath;
+
+struct _RsvgNodePath {
+ RsvgNode super;
+ cairo_path_t *path;
+};
+
static void
rsvg_node_path_free (RsvgNode * self)
{
diff --git a/rsvg-shapes.h b/rsvg-shapes.h
index 66c6e34..2559c36 100644
--- a/rsvg-shapes.h
+++ b/rsvg-shapes.h
@@ -51,13 +51,6 @@ RsvgNode *rsvg_new_circle (void);
G_GNUC_INTERNAL
RsvgNode *rsvg_new_ellipse (void);
-typedef struct _RsvgNodePath RsvgNodePath;
-
-struct _RsvgNodePath {
- RsvgNode super;
- cairo_path_t *path;
-};
-
G_END_DECLS
#endif /* RSVG_SHAPES_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]