From: Marc-André Lureau Date: Wed, 9 Feb 2022 07:52:51 +0000 (+0400) Subject: dbus: move DBUS_IS_DIR_SEPARATOR to dbus-internals.h X-Git-Tag: dbus-1.15.0~26^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcdb992dd20112504366b25792e2a7bc64560684;p=thirdparty%2Fdbus.git dbus: move DBUS_IS_DIR_SEPARATOR to dbus-internals.h Signed-off-by: Marc-André Lureau --- diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index ea0ffdd57..2c4336773 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -334,18 +334,7 @@ _dbus_verbose_init (void) } } -/** @def DBUS_IS_DIR_SEPARATOR(c) - * macro for checking if character c is a patch separator - * - * @todo move to a header file so that others can use this too - */ -#ifdef DBUS_WIN -#define DBUS_IS_DIR_SEPARATOR(c) (c == '\\' || c == '/') -#else -#define DBUS_IS_DIR_SEPARATOR(c) (c == '/') -#endif - -/** +/** remove source root from file path the source root is determined by */ diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 1272e8c5a..4f29b239b 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -488,6 +488,15 @@ dbus_bool_t _dbus_get_local_machine_uuid_encoded (DBusString *uuid_str, # define _DBUS_END_IGNORE_LEAKS do { } while (0) #endif +/** @def DBUS_IS_DIR_SEPARATOR(c) + * macro for checking if character c is a path separator + */ +#ifdef DBUS_WIN +#define DBUS_IS_DIR_SEPARATOR(c) (c == '\\' || c == '/') +#else +#define DBUS_IS_DIR_SEPARATOR(c) (c == '/') +#endif + DBUS_END_DECLS #endif /* DBUS_INTERNALS_H */