On May 8, 2015, at 11:30 AM, Jorge Pereira <jpereiran@gmail.com> wrote:
I guess that i got it your idea... because today we have the src/main/command.c that have a static 'options' like the string "auth+acct" (you can't invert the order!) that set a static defines.
In command.c, that string is used only when printing. So it's easy enough to fix.
I think that we can change for bit-wise matchs... like:
That's probably the best approach.
// And in the places when need to match...
if (type_value & HOME_TYPE_ACCT) do_handle_acct(); else if (type_value & HOME_TYPE_COA) do_handle_coa();
Yes. There's already code to do this for the auth+acct, I think.
</pseudo imaginary code>
something like that? btw... I have looked around, looks like a hard work! :)
It's just work. I don't think it involves serious changes to the core. Alan DeKok.