[JDEV] why mod_basic_*?
Thomas Charron
tcharron at ductape.net
Sun Jan 30 09:34:30 CST 2000
Quoting Russell Nelson <nelson at crynwr.com>:
> Why does jabber-transport/modules/basic/*.c name all its functions
> "mod_basic_FOO"? By virtue of being in basic, the function should be
> assumed to be part of the basic module. Why not just call the
> function "FOO"?
You very well could. But for simplicity, since we *ARE* dealing with shared
libraries here, it's better when looking at logs, etc, to be able to have the
module data along with the function. We may have 5 modules loaded, and looking
at the debugging data is a whole lot easier if we can see the module in the
function name.. Otherwise, you may get two or three messages from different
modules, all with the same function name, and be rather hard to debug.
To each their own.. ;-P
---
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used >>
<< and stored in garage. ?>>
More information about the JDev
mailing list