zsh-workers
 help / color / mirror / code / Atom feed
* Fishier code in handlefeatures
@ 2015-01-06  0:20 Mikael Magnusson
  2015-01-06  0:24 ` ZyX
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Magnusson @ 2015-01-06  0:20 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: zsh workers

mod_export int
handlefeatures(Module m, Features f, int **enables)
{
    if (!enables || *enables)
      return setfeatureenables(m, f, *enables);
    *enables = getfeatureenables(m, f);
    return 0;
}

so if enables is NULL, we immediately do *enables? I'm not sure what's
intended here but obviously it somehow works.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-06  7:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06  0:20 Fishier code in handlefeatures Mikael Magnusson
2015-01-06  0:24 ` ZyX
2015-01-06  0:32   ` Mikael Magnusson
2015-01-06  0:36     ` ZyX
2015-01-06  7:45       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).