[Github-comments] [geany/geany-plugins] geanyctags: Use base path as relative to the project file path (#755)

Jiří Techet notifications at xxxxx
Thu Jun 14 17:52:00 UTC 2018


techee commented on this pull request.



> @@ -205,6 +205,26 @@ static gchar *generate_find_string(GeanyProject *prj)
 }
 
 
+static const gchar *get_base_path(void)
+{
+	static gchar *ret = NULL;

Things start making much more sense once you notice the magic word "static", don't they ;-). And yes, it probably won't win any competition in code beautifulness but despite that it makes other code simpler and easier to maintain.

-- 
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-plugins/pull/755#discussion_r195514863
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180614/b1c684c8/attachment.html>


More information about the Github-comments mailing list