Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fishier code in handlefeatures
- X-seq: zsh-workers 34098
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Fishier code in handlefeatures
- Date: Tue, 6 Jan 2015 01:20:23 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=XTbDonYKVlBilpAOzh5YYUM4KLenNzmvxW/qkLVPlT8=; b=aRT1WbfLXqafCJFLsfBQB91RK1duCt9yLSNPt+7DdsLTSH4zS6mr7cO0np5HZlo4Xl uGnG3SIvlRHogjvFAeBaE3+z0hIP1vt9mGf4n1k8x8OeTT4jLsF0ik5WMXFQSCuX25fJ 8wwbox11txdqebKqM1Q2joHEEr8WEjcNjtTCYZauhD+GQ0HG1KTB4DLKYTbRu43P6WK/ KhYjZpq9bYNvDzRFXfHVLsUUXbHJC4Udncq/VWI0qA0zaAagFCFgNENIv7BVcpnCpsoS oEHOvhsBvI2/yWUvyyKIPSMj6YT5AHG7kkOl1yeP55E9Wzil73WAy3v82n+b4KOk04k0 tcjA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author