[Github-comments] [geany/geany] New tagmanager query module (#1187)
Thomas Martitz
notifications at xxxxx
Tue Aug 23 06:54:47 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);
Will use that.
--
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#r75811068
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160822/c839abbf/attachment.html>
More information about the Github-comments
mailing list