Use guint for search_get_file_list length

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@719 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2006-08-15 12:26:15 +00:00
parent 2e62262320
commit 6823698d0c
2 changed files with 11 additions and 3 deletions

View File

@ -62,7 +62,7 @@ static void search_close_pid(GPid child_pid, gint status, gpointer user_data);
static gchar **search_get_argv(const gchar **argv_prefix, const gchar *dir);
static GSList *search_get_file_list(const gchar *path, gint *length);
static GSList *search_get_file_list(const gchar *path, guint *length);
static void add_find_checkboxes(GtkDialog *dialog);
@ -859,11 +859,11 @@ static gchar **search_get_argv(const gchar **argv_prefix, const gchar *dir)
/* Gets a list of files in the current directory, or NULL if no files found.
* The list and the data in the list should be freed after use.
* *length is set to the number of non-NULL data items in the list. */
static GSList *search_get_file_list(const gchar *path, gint *length)
static GSList *search_get_file_list(const gchar *path, guint *length)
{
GError *error = NULL;
GSList *list = NULL;
gint len = 0;
guint len = 0;
const gchar *filename;
GDir *dir;
g_return_val_if_fail(path != NULL, NULL);

View File

@ -875,6 +875,14 @@ static void addOtherFields (tagEntryInfo* const tag, const tagType type,
{
tag->extensionFields.access = accessField (st);
}
if ((TRUE == st->gotArgs) && (TRUE == Option.extensionFields.argList) &&
((TAG_FUNCTION == type) || (TAG_METHOD == type) || (TAG_PROTOTYPE == type))) {
if (1) {
tag->extensionFields.arglist = getArglistFromPos(
tag->filePosition, tag->name);
}
}
break;
}