- */
+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.