[Geany-devel] interactive typeahead seach for the sidebar

Enrico Tröger enrico.troeger at xxxxx
Sun Sep 6 12:31:44 UTC 2009

On Sat, 05 Sep 2009 18:30:13 +0200, Colomban wrote:

>Hash: SHA1
>Thomas Martitz a écrit :
>> My patch was buggy. I don't know how I didn't notice it while
>> testing. This should fix it http://pastie.org/606912
>Nothing important, but I wonder why you test for (!reload) as you
>already check for (reload)? The check at the right of a || switch will
>be tested only if the left one is not true, then if the right check
>happens, then reload is necessarily false, isn't it?
>But it just seems strange and complicated to me, not a problem anyway.

Same here.

Before the patch we only checked for "if (reload)". The function
documentation already says:
if reload is set, the doc argument has to be non-NULL, if reload is not
set, doc is NULL. So, the new, additional check is somewhat
unnecessary. It could be argumented as an additional sanity check but
generally, document_open_file_full() is an internal function and so if
the above conditions of the input argumens are not fullfilled, I would
consider this as a bug in the calling code (still sanity checks are
good, no doubt).


Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090906/c9e21af6/attachment.pgp>

More information about the Devel mailing list