]> granicus.if.org Git - graphviz/commitdiff
plugin core: swap duplicated prototypes for missing includes
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Oct 2021 03:13:41 +0000 (20:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Oct 2021 14:50:57 +0000 (07:50 -0700)
This file is calling functions `xml_string` `xml_url_string` without including
the header that prototypes them, utils.h. There seems to be no reason to avoid
this and locally re-prototype these functions.

Related to #1868.

plugin/core/gvrender_core_map.c

index ba9079e1d17447dff51106b06b873e60c36bda53..8d9fe61011fc3e926bfd037002544d1801a3b041 100644 (file)
 
 #include <stdlib.h>
 
+#include <common/types.h>
+#include <common/utils.h>
 #include <gvc/gvplugin_render.h>
 #include <gvc/gvplugin_device.h>
 #include <gvc/gvio.h>
 
-extern char *xml_string(char *str);
-extern char *xml_url_string(char *str);
-
 typedef enum { FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP, FORMAT_CMAPX, } format_type;
 
 static void map_output_shape (GVJ_t *job, map_shape_t map_shape, pointf * AF, int nump,