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

Matthew Brush notifications at xxxxx
Tue Aug 23 00:21:54 UTC 2016


> + */
> +GEANY_API_SYMBOL
> +TMQuery *tm_query_new(const TMWorkspace *workspace, gint data_sources)
> +{
> +	TMQuery *q = g_slice_new(TMQuery);
> +
> +	q->workspace = workspace;
> +	q->data_sources = data_sources;
> +	q->names = g_ptr_array_new();
> +	q->langs = g_array_new(FALSE, FALSE, sizeof(TMParserType));
> +	q->scopes = g_ptr_array_new();
> +	q->type = -1;
> +	q->refcount = 1;
> +
> +	g_ptr_array_set_free_func(q->names, free_g_string);
> +	g_ptr_array_set_free_func(q->scopes, g_free);

https://developer.gnome.org/glib/stable/glib-Pointer-Arrays.html#g-ptr-array-new-with-free-func

-- 
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#r75783966
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160822/a977d2db/attachment.html>


More information about the Github-comments mailing list