Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Fri, 31 Oct 2014 19:20:25 UTC Commit: 61ee7de86ecd5e10cf077b9c519d818013f52b8b https://github.com/geany/geany/commit/61ee7de86ecd5e10cf077b9c519d818013f52b...
Log Message: ----------- Return an unisgned tag count in tm_tags_find()
There is no reason to return a signed value an it help unifying caller's types.
Modified Paths: -------------- tagmanager/src/tm_source_file.c tagmanager/src/tm_tag.c tagmanager/src/tm_tag.h tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_source_file.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -117,7 +117,7 @@ static int tm_source_file_tags(const tagEntryInfo *tag) /* Set the argument list of tag identified by its name */ static void tm_source_file_set_tag_arglist(const char *tag_name, const char *arglist) { - int count; + guint count; TMTag **tags, *tag;
if (NULL == arglist ||
Modified: tagmanager/src/tm_tag.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -819,7 +819,7 @@ void tm_tags_remove_file_tags(TMSourceFile *source_file, GPtrArray *tags_array) for (i = 0; i < source_file->tags_array->len; i++) { guint j; - gint tag_count; + guint tag_count; TMTag **found; TMTag *tag = source_file->tags_array->pdata[i]; @@ -1080,11 +1080,11 @@ static TMTag **tags_search(const GPtrArray *tags_array, TMTag *tag, gboolean par @param tagCount Return location of the matched tags. */ TMTag **tm_tags_find(const GPtrArray *tags_array, const char *name, - gboolean partial, gboolean tags_array_sorted, int * tagCount) + gboolean partial, gboolean tags_array_sorted, guint * tagCount) { static TMTag *tag = NULL; TMTag **result; - int tagMatches=0; + guint tagMatches=0; TMSortOptions sort_options;
*tagCount = 0;
Modified: tagmanager/src/tm_tag.h 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -179,7 +179,7 @@ gboolean tm_tags_prune(GPtrArray *tags_array); gboolean tm_tags_dedup(GPtrArray *tags_array, TMTagAttrType *sort_attributes, gboolean unref_duplicates);
TMTag **tm_tags_find(const GPtrArray *tags_array, const char *name, - gboolean partial, gboolean tags_array_sorted, int * tagCount); + gboolean partial, gboolean tags_array_sorted, guint * tagCount);
void tm_tags_array_free(GPtrArray *tags_array, gboolean free_all);
Modified: tagmanager/src/tm_workspace.c 5 lines changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -638,7 +638,8 @@ const GPtrArray *tm_workspace_find(const char *name, TMTagType type, TMTagAttrTy { static GPtrArray *tags = NULL; TMTag **matches[2]; - int len, tagCount[2]={0,0}, tagIter; + int len; + guint tagCount[2]={0,0}, tagIter; gint tags_lang;
if (!name) @@ -739,7 +740,7 @@ fill_find_tags_array (GPtrArray *dst, const GPtrArray *src, gint lang, gboolean first) { TMTag **match; - int tagIter, count; + guint tagIter, count;
if ((!src) || (!dst) || (!name) || (!*name)) return 0;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).