[IRCServices Coding] questions with unreal and sjoin
Andrew Church
achurch at achurch.org
Wed Oct 9 16:04:58 PDT 2002
>i am a little confused with the UNREAL_HACK define. i see the #ifndef/#el
>se in
>sjoin.c for changing the way it sends the SJOIN. maybe i dont fully
>understand the way the modules work, but why is it required to #define
>do_sjoin, init_sjoin, and exit_sjoin to *_unreal?
To avoid namespace collisions when compiling modules statically.
Since the functions are used in other files, their symbols must be
exported, and this would cause a symbol name clash if the modules were
statically linked into the executable.
--Andrew Church
achurch at achurch.org
http://achurch.org/