[librsvg/librsvg-2.44] Move rsvg_css_parse_color_() to rsvg-base.c
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.44] Move rsvg_css_parse_color_() to rsvg-base.c
- Date: Thu, 27 Sep 2018 16:33:22 +0000 (UTC)
commit 841a9492015c5266e6590c0c7cac7414074f80db
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Sep 26 18:30:15 2018 -0500
Move rsvg_css_parse_color_() to rsvg-base.c
So we can get rid of rsvg-styles.c.
librsvg/rsvg-base.c | 9 +++++++++
librsvg/rsvg-styles.c | 8 --------
2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/librsvg/rsvg-base.c b/librsvg/rsvg-base.c
index 24501ba3..2242fadb 100644
--- a/librsvg/rsvg-base.c
+++ b/librsvg/rsvg-base.c
@@ -27,6 +27,7 @@
#include "config.h"
#include "rsvg-private.h"
+#include "rsvg-css.h"
/*
* This is configurable at runtime
@@ -149,3 +150,11 @@ rsvg_return_if_fail_warning (const char *pretty_function, const char *expression
g_set_error (error, RSVG_ERROR, 0, _("%s: assertion `%s' failed"), pretty_function, expression);
}
+/* This is defined like this so that we can export the Rust function... just for
+ * the benefit of rsvg-convert.c
+ */
+RsvgCssColorSpec
+rsvg_css_parse_color_ (const char *str)
+{
+ return rsvg_css_parse_color (str);
+}
diff --git a/librsvg/rsvg-styles.c b/librsvg/rsvg-styles.c
index 7b8bce1d..6582d00d 100644
--- a/librsvg/rsvg-styles.c
+++ b/librsvg/rsvg-styles.c
@@ -35,11 +35,3 @@
#include <libcroco/libcroco.h>
-/* This is defined like this so that we can export the Rust function... just for
- * the benefit of rsvg-convert.c
- */
-RsvgCssColorSpec
-rsvg_css_parse_color_ (const char *str)
-{
- return rsvg_css_parse_color (str);
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]