
On 12/11/2010 04:18 PM, Juergen Schoenwaelder wrote:
On Sat, Dec 11, 2010 at 09:40:17PM +0000, Roddy Pratt wrote:
If a NULL tag is passed to smiInit the config file isn't read. I had to read through the init code before I realised what was going on.
If tag is not NULL, the global configuration file and (on UNIX systems) a
user configuration file are read implicitly,
Yes, it's documented, but it doesn't feel like 'natural' behaviour. Why would you not want the init file called in this case.
Since this is the only way to turn off reading init files and thus have complete control over things? It is not clear to me whether you have a problem with the semantics of smiInit() or its documentation or both. Perhaps you can send a patch so I can better understand what you think is not 'natural'.
/js
Well, I did not dig that deep in the code, was just looking for clarification on it's usage, I read the man page, nothing new there, but you can pass it 'ANY' string to provoke the reading of the config file, just basically was assuming there was some other intent, I'll dig in the code, some more, just not clear what 'tag:dataset' is or what it refers to, It still parses, so even though it is not entirely clear what it's use is, other than to pass a none null argument, I am sure I will find out it's secrets, will disect it further, just assumed the author had some method to his/her madness, other than a config. I have used this library on a couple of occasions and it does what it is supposed to. I.e. I keep the config in .smirc, so I just thought it was strange behavior, UNLESS one can reference more than one 'tag:dataset' by way of the 'handle' in the code. Just not totally clear on how it it 'supposed' to behave.