Re: reading config files from C

2020-02-22 Thread George Georgalis
Thanks Mark. The project manager decided to add a command line option so env parameters is no longer on my critical path. (I'm working around current autotools dep builds...) Someday I hope to return to reading parameters from runtime env, will let you know how that goes when I return to

Re: reading config files from C

2020-02-22 Thread George Georgalis
On Sun, Feb 2, 2020 at 1:25 PM Brett Lymn wrote: > If you are doing more than just a simple key/value per line then it may > be worth investing in learning lex/yacc to do the parsing instead of > rolling your own. It is a bit of a learning curve to get going but > extending the config language is

Re: reading config files from C

2020-02-02 Thread Brett Lymn
On Thu, Jan 30, 2020 at 10:29:31AM -0800, George Georgalis wrote: > > Hi, actually Mark told me exactly what I needed, both. > I have a few minor followup questions, but I have some > work first. Thanks, -George > If you are doing more than just a simple key/value per line then it may be worth i

Re: reading config files from C

2020-01-30 Thread MJ
On 31/01/2020 5:12 am, Sad Clouds wrote: It would help if you provided a few specific examples. I don't quite understand what you're trying to do, i.e. read config files for a build system, or read config files for a running program, or something else. I have to agree. Examples go a long way

Re: reading config files from C

2020-01-30 Thread George Georgalis
On Thu, Jan 30, 2020 at 10:12 AM Sad Clouds wrote: > > It would help if you provided a few specific examples. I don't quite > understand what you're trying to do, i.e. read config files for a build > system, or read config files for a running program, or something else. Hi, actually Mark told me

Re: reading config files from C

2020-01-30 Thread Sad Clouds
It would help if you provided a few specific examples. I don't quite understand what you're trying to do, i.e. read config files for a build system, or read config files for a running program, or something else.

Re: reading config files from C

2020-01-29 Thread MJ
Hi George, On 30/01/2020 10:07 am, George Georgalis wrote: Hi Mark, On Wed, Jan 29, 2020 at 2:07 PM MJ wrote: On 30/01/2020 5:19 am, George Georgalis wrote: Hi, I would like to introduce configuration files to a software project I am supporting with build infrastructure. The C programs depen

Re: reading config files from C

2020-01-29 Thread George Georgalis
Hi Mark, On Wed, Jan 29, 2020 at 2:07 PM MJ wrote: > On 30/01/2020 5:19 am, George Georgalis wrote: > > Hi, I would like to introduce configuration files to a software > > project I am supporting with build infrastructure. The C programs > > depend on quite a few libraries from different sources.

Re: reading config files from C

2020-01-29 Thread MJ
On 30/01/2020 5:19 am, George Georgalis wrote: Hi, I would like to introduce configuration files to a software project I am supporting with build infrastructure. The C programs depend on quite a few libraries from different sources. As a result of development evolution, we have hardcoded paths