On Sat, May 22, 2021 at 01:47:24PM +0530, Bharath Rupireddy wrote: > Thanks. I think using bitmaps would help us have clean code. This is > also more extensible. See pseudo code at [1]. One disadvantage is that > we might have bms_XXXfunction calls, but that's okay and it shouldn't > add too much to the performance. Thoughts? > > [1] > typedef enum SubOpts_enum > { > SUB_OPT_NONE = 0, > SUB_OPT_CONNECT, > SUB_OPT_ENABLED, > SUB_OPT_CREATE_SLOT, > SUB_OPT_SLOT_NAME, > SUB_OPT_COPY_DATA, > SUB_OPT_SYNCHRONOUS_COMMIT, > SUB_OPT_REFRESH, > SUB_OPT_BINARY, > SUB_OPT_STREAMING > } SubOpts_enum;
What you are writing here and your comment two paragraphs above are inconsistent as you are using an enum here. Please see a3dc926 and the surrounding discussion for reasons why we've been using bitmaps for option parsing lately. -- Michael
signature.asc
Description: PGP signature