[librsvg] Mark rsvg_defs_lookup() as G_GNUC_INTERNAL



commit fb985fc42845d42be62ceabc44548cb519ab7efd
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 29 10:13:04 2018 -0600

    Mark rsvg_defs_lookup() as G_GNUC_INTERNAL

 librsvg/rsvg-private.h |  2 +-
 rsvg-convert.c         | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index c439dca8..8cd0d771 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -241,7 +241,7 @@ G_GNUC_INTERNAL
 void rsvg_defs_free (RsvgDefs *defs);
 
 /* Defined in rsvg_internals/src/defs.rs */
-/* for some reason this one's public... */
+G_GNUC_INTERNAL
 RsvgNode *rsvg_defs_lookup (const RsvgDefs * defs, RsvgHandle *handle, const char *name);
 
 G_GNUC_INTERNAL
diff --git a/rsvg-convert.c b/rsvg-convert.c
index c615a709..cdd9b5da 100644
--- a/rsvg-convert.c
+++ b/rsvg-convert.c
@@ -97,11 +97,11 @@ get_lookup_id_from_command_line (const char *lookup_id)
     if (lookup_id == NULL)
         export_lookup_id = NULL;
     else {
-        /* rsvg_handle_has_sub() and rsvg_defs_lookup() expect ids to have a
-         * '#' prepended to them, so they can lookup ids in externs like
-         * "subfile.svg#subid".  For the user's convenience, we include this
-         * '#' automatically; we only support specifying ids from the
-         * toplevel, and don't expect users to lookup things in externs.
+        /* rsvg_handle_has_sub() expects ids to have a '#' prepended to them, so
+         * it can lookup ids in externs like "subfile.svg#subid".  For the
+         * user's convenience, we include this '#' automatically; we only
+         * support specifying ids from the toplevel, and don't expect users to
+         * lookup things in externs.
          */
         export_lookup_id = g_strdup_printf ("#%s", lookup_id);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]