diff options
author | Max Kellermann <max@duempel.org> | 2012-08-02 18:15:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-02 19:12:18 +0200 |
commit | 8e331cfc65b6817a147dfaac4d9c4d01414782ac (patch) | |
tree | 5a67ed93b37e98a3164b693da1f7e5a140dbecee /src/uri.h | |
parent | edf811fa0271da729e9962e3976f2a68ac35a395 (diff) | |
download | mpd-8e331cfc65b6817a147dfaac4d9c4d01414782ac.tar.gz mpd-8e331cfc65b6817a147dfaac4d9c4d01414782ac.tar.xz mpd-8e331cfc65b6817a147dfaac4d9c4d01414782ac.zip |
gcc.h: re-add gcc_const and gcc_pure
Remove GLib dependency from some headers.
Diffstat (limited to '')
-rw-r--r-- | src/uri.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -20,7 +20,7 @@ #ifndef MPD_URI_H #define MPD_URI_H -#include <glib.h> +#include "gcc.h" #include <stdbool.h> @@ -28,10 +28,10 @@ * Checks whether the specified URI has a scheme in the form * "scheme://". */ -G_GNUC_PURE +gcc_pure bool uri_has_scheme(const char *uri); -G_GNUC_PURE +gcc_pure const char * uri_get_suffix(const char *uri); @@ -43,7 +43,7 @@ uri_get_suffix(const char *uri); * - no double slashes * - no path component begins with a dot */ -G_GNUC_PURE +gcc_pure bool uri_safe_local(const char *uri); @@ -53,7 +53,7 @@ uri_safe_local(const char *uri); * NULL if nothing needs to be removed, or if the URI is not * recognized. */ -G_GNUC_MALLOC +gcc_malloc char * uri_remove_auth(const char *uri); |