Nixers Book Club - Book #4: The Art of UNIX Programming - Community & Forums Related Discussions
Users browsing this thread: 10 Guest(s)
|
|||
(05-06-2021, 02:12 PM)ckester Wrote:(05-06-2021, 09:49 AM)phillbush Wrote: The chapter then explains where configuration should be read from. Parsing configuration files requires more code. I can see the advantage of using a config.h for a project that privileges simple code. However, the system provides configuration methods that do not require parsing: command-line arguments, environment variables and X resources, solutions which are not explored by suckless tools (except by patches). In my programs, I explore those methods for configuration. Also, as movq said Quote:I think config.h only makes sense for programs with very few external libraries.Which is the case for suckless tools. |
|||