[Github-comments] [geany/geany] New tagmanager query module (#1187)

Thomas Martitz notifications at xxxxx
Tue Aug 23 06:58:22 UTC 2016


> +		g_slice_free(TMQuery, q);
> +	}
> +}
> +
> +
> +/** Add name filter to a query
> + *
> + * The query results will be restricted to tags matching the name. The
> + * matching is a simple prefix matching. The length to match can be
> + * limited to allow multiple tags to match a prefix.
> + *
> + * @param q The query to operate on.
> + * @param name The name to filter.
> + * @param name_len The number of characters to use (from the beginning).
> + *
> + * @return 0 on succcess, < 0 on error.

The ability to return error codes is more to make it extensible. Since I want them in the plugin API the return type should be determined now (even if it always returns the same value *now*).

While gboolean would work, I've almost always regretted using in the past. gint is so much more flexible. I can change to boolean if you truly want it, though.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1187/files/386006313a0b78c614bd1ac522ac121e093df58d#r75811374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160822/bb5bee8d/attachment.html>


More information about the Github-comments mailing list