On Fri, Mar 7, 2014 at 2:39 PM, Michael Haggerty <mhag...@alum.mit.edu> wrote: > On 03/07/2014 02:38 AM, Duy Nguyen wrote: >> Currently in order to avoid --[no]-xxx form we have to resort to >> declare full struct option. It'd be nice to have a set of OPT_* macros >> with PARSE_OPT_NONEG set. Find and update all "struct option " >> declarations with the new macros (including ones that should never >> accept --no- form, but do anyway). > > I added this to the list, with the following warning: > > This is more a milliproject than a microproject > > because to me it feels considerably more involved than the other > microprojects. To complete it, the student will have to understand at > least part of the parse_options() API, which is more than a 15 minute > job by itself.
I don't know the scope of these microprojects, but yes I think it'll take a few hours for this. By the way, a bit more thought on the idea: instead of making OPT_BOOL_NONEG() that sets NONEG, we could make OPT_BOOL_FLAGS(..., NONEG), which is more flexible. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html