[Github-comments] [geany] Proxy plugins (#629)
Colomban Wendling
notifications at xxxxx
Fri Oct 2 20:40:35 UTC 2015
> gint count = 0;
>
> list = utils_get_file_list(path, NULL, NULL);
>
> for (item = list; item != NULL; item = g_slist_next(item))
> {
> - tmp = strrchr(item->data, '.');
> - if (tmp == NULL || utils_str_casecmp(tmp, "." G_MODULE_SUFFIX) != 0)
> - continue;
> + gchar *fname = g_build_filename(path, item->data, NULL);
> + PluginProxy *proxy = is_plugin(fname);
> +
> + if (proxy != NULL && plugin_new(proxy->plugin, fname, FALSE, TRUE))
> + count++;
weird indentation
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/629/files#r41065268
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151002/14f9addd/attachment.html>
More information about the Github-comments
mailing list