[Github-comments] [geany/geany] Remove deprecated symbol: tm_get_real_path (PR #3024)

elextr notifications at xxxxx
Mon Nov 29 08:29:17 UTC 2021


@elextr commented on this pull request.



> @@ -2414,6 +2419,48 @@ void utils_start_new_geany_instance(const gchar *doc_path)
 }
 
 
+
+static int get_path_max(const char *path)
+{
+#ifdef PATH_MAX
+	return PATH_MAX;
+#else
+	int path_max = pathconf(path, _PC_PATH_MAX);
+	if (path_max <= 0)
+		path_max = 4096;
+	return path_max;
+#endif

> but I'm unsure if it's supported on our relevant platforms

As I said on #3019 its POSIX 2008, so I would change it to use NULL and see if any platforms report that they are still in the noughties :-)

-- 
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/3024#discussion_r758128059
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211129/b7356ed3/attachment-0001.htm>


More information about the Github-comments mailing list