Menu

#23 Drop val_t__xxx() macros

open
nobody
None
2019-09-16
2011-06-02
Anonymous
No

Originally created by: fge
Originally owned by: chassell

They are simply wrappers in order to access the ->v.xxx configuration values, except for two of them, which access other fields, which make them even more confusing.

What's more, theirs being usable as lvalues is touted as a feature in the header file: I call that a bad quirk.

And finally, they are too uncomfortably close in writing to the val_t_to_* function.

I say, drop them.

Discussion

  • Anonymous

    Anonymous - 2011-06-02

    Originally posted by: djmitche

    This sounds like a good cleanup. The file has a lot of needless complexity, but those macros are particularly loathsome.

    The conffile module is well-tested, and I would also be amenable to a much more thorough rewrite to use some existing parsing libraries. If that could add some more flexibility in the configuration (macros, perhaps, or variables?), that would be even better. That's probably another bug, though

     
  • Anonymous

    Anonymous - 2019-09-16
     
  • Anonymous

    Anonymous - 2019-09-16

    Originally posted by: chassell

    I've worked on a better layer for this.

     

Log in to post a comment.