I have submitted a feature enhancement request for this available at:

<https://sourceforge.net/tracker/?func=detail&atid=353152&aid=1124272&group_id=3152>

If anyone has a problem with me committing these changes to the current CVS,
please speak up. I'll wait a week then commit my changes, unless requested
not to.

The patch will not change any existing functionality.

During testing of this the config.c code I noticed a few things which might be
addressed in the future, or maybe just documented somehow with respect to the
interpretation of values in the config params.

1. any integer is interpreted as boolean.
2. large values derived from tcl expr which result in values in scientific
notation (9.12345e5) end up with a value the whole part for integer
conversion.
3. values of integer larger than the max size supported are given the max
value for that integer type (int or int64).
4. string values which begin with one or more digits can be interpreted as
integers. They are stored as the integer up to the first non-digit in the
string.

I have written a C module 'config-test' which provides a tcl api allowing you
to test any config section. In cases where the stored (in C struct) differs
from the string, the difference is noted (with the obvious exception of
boolean). The tcl api allows you to test one param or one section at a time.

The C module is not part of the patch.

One deficiency of the new API is the inability to document the use of NULL
values as a default. One instance is the nslog format string.

tom jackson


On Monday 14 February 2005 12:13, Tom Jackson wrote:
> I have added a few new C API's for setting (just adding, not replacing)
> config params during startup.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to