Branch: refs/heads/master Author: Matthew Brush matt@geany.org Committer: Matthew Brush mbrush@codebrainz.ca Date: Fri, 04 Aug 2017 10:44:31 UTC Commit: 44f96d08a8c4b171e637b8964fbf4e38c83040e6 https://github.com/geany/geany/commit/44f96d08a8c4b171e637b8964fbf4e38c83040...
Log Message: ----------- Mark tm_get_real_path with G_DEPRECATED_FOR
This will allow the compiler to notify any callers that it's deprecated. The macro is guarded-out for when Geany is compiling so it won't cause warnings when tagmanager uses it internally and for the utils_ wrapper.
Modified Paths: -------------- src/tagmanager/tm_source_file.c src/tagmanager/tm_source_file.h src/utils.c
Modified: src/tagmanager/tm_source_file.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -115,7 +115,7 @@ static char *realpath (const char *pathname, char *resolved_path) of the file. @param file_name The original file_name @return A newly allocated string containing the real path to the file. NULL if none is available. - @deprecated since 1.29 (ABI 230) + @deprecated since 1.32 (ABI 235) @see utils_get_real_path() */ GEANY_API_SYMBOL
Modified: src/tagmanager/tm_source_file.h 6 lines changed, 5 insertions(+), 1 deletions(-) =================================================================== @@ -42,7 +42,11 @@ TMSourceFile *tm_source_file_new(const char *file_name, const char *name);
void tm_source_file_free(TMSourceFile *source_file);
-gchar *tm_get_real_path(const gchar *file_name); +gchar *tm_get_real_path(const gchar *file_name) +#ifndef GEANY_PRIVATE +G_DEPRECATED_FOR(utils_get_real_path) +#endif +;
#ifdef GEANY_PRIVATE
Modified: src/utils.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -2196,7 +2196,7 @@ void utils_start_new_geany_instance(const gchar *doc_path) * should be freed with `g_free()` when no longer needed, or @c NULL * if the real path cannot be obtained. * - * @since 1.29 (API 230) + * @since 1.32 (API 235) */ GEANY_API_SYMBOL gchar *utils_get_real_path(const gchar *file_name)
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).