Re: [hackers] [xssstate] Refactor xssstate.c

From: Russ <rroissie_AT_gmail.com>
Date: Sun, 11 Sep 2016 16:46:29 -0400

> does it really simplify the code? I think it makes it less readable
> without arg.h.
 
I agree it does some, but using strcmp allows matching the flags exactly, and
prevents things like "xssstate -v" being equivilant to "xssstate -vxyz". And
since you would only ever use one flag at a time, arg.h seemed like it was
excessive, but perhaps I was thinking about simplify the wrong way. I also like
being able to use only one switch statement, but that's mostly a personal
preference. Thanks for the input!

Russ
Received on Sun Sep 11 2016 - 22:46:29 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 11 2016 - 22:48:14 CEST