Re: global variables in shared libraries
On 24-Jan-04, 06:59 (CST), martin f krafft <madduck@debian.org> wrote:
> I like to control debugging with two variables: the FILE* to the
> stream to which the debugging should be written, and a bitfield so
> see what should be printed.
>
> If you can think of a better way to do this than using globals, then
> please share it with me!
In one C module, you define the FILE* and bitfield, along with functions
to set their values (or pass a filename and toggle specific features),
and a function (or functions) to do the debug printing.
Steve
--
Steve Greenland
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the
world. -- seen on the net
Reply to: