[Github-comments] [geany/geany] Don't use temporary file when creating tag files without running preprocessor (PR #3204)

Jiří Techet notifications at github.com
Sun May 15 13:39:21 UTC 2022


@techee commented on this pull request.



> @@ -453,19 +419,19 @@ static GList *lookup_includes(const gchar **includes, gint includes_count)
 #ifdef HAVE_GLOB_H
 	globbuf.gl_offs = 0;
 
-	if (includes[0][0] == '"')	/* leading \" char for glob matching */
+	if (sources[0][0] == '"')	/* leading \" char for glob matching */

> I know its not something you changed (except the variable name) but where did this " come from? Its not mentioned in the manual as being required for globbing, nor in the parameter description of sources?

This seems to be wrong. I think this was meant to detect
```
geany -g *
```
vs
```
geany -g "*"
```
where in the first case the shell expands `*` to the list of files Geany receives as its argument list while in the second case it receives `*` (but without the `"` which gets removed by the shell).

Not sure what we want and whether we actually want/need to support globbing by ourselves or whether what the shell does for us is sufficient already. I think the situation where this might be useful is when there are too many files matching the patterns so they exceed the max. number of command-line arguments.

Maybe we could just drop this check completely and always try to apply globbing (when `HAVE_GLOB_H` is defined).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3204#discussion_r873171340
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3204/review/973175799 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220515/1a1c6e31/attachment.htm>


More information about the Github-comments mailing list