>>>>> "DS" == Dave Shield <[EMAIL PROTECTED]> writes:

DS> Is it really that unimaginable that a different package might also
DS> define LOGFILE?

Sure!

No, just kidding of course.

DS> a)  Net-SNMP-specific settings - stuff that's only meaningful to our code.
DS> (e.g. DEFAULT_MIBDIRS, USE_REVERSE_ASNENCODING, etc)

DS> It probably doesn't matter if an application includes these, as
DS> they're unlikely to clash with anything from another autoconf-based
DS> library.

No, though better naming with a NS or some prefix would still be a
good thing.

DS> b)  Generic system-related settings
DS> (e.g. HAVE_SOME_HEADER_H, HAVE_SOME_FUNCTION)

DS> It probably doesn't matter if an application includes there, as they
DS> ought to be consistent with the equivalent settings from another
DS> autoconf-based library.   Maybe the compilation would throw up a few
DS> warnings, but nothing too critical.

Should be, but...  In general I agree though.

DS> c)  Generically-named, Net-SNMP-specific definitions
DS> (e.g. VERSION, LOGFILE)

DS> This seems to be where the source of most conflicts would lie - and
DS> I'm not sure there's an easy way to resolve these in general.

I think a number of these can be renamed...  I'm not sure how many of
those (without thinking about them before writing, which of course I
didn't do) would cause problems for people if we renamed them.  I
doubt many people besides us are using our LOGFILE definition in their
code.  A small enough (1-2) number of people if any that I don't mind
changing it...

DS> As a first pass, I'd be tempted to separate out the Net-SNMP
DS> settings (a & c above) from the system-configuration information
DS> (b), and list these in two separate header files.  That feels a
DS> much cleaner arrangement than our current rag-bag mix.  It's
DS> clearly not a full solution, but it might be a start.

Sounds fine with me.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to