Declaring debugging channel

Dimitrie O. Paun dpaun at rogers.com
Thu Aug 22 11:02:17 CDT 2002


On August 22, 2002 11:36 am, Andriy Palamarchuk wrote:
> In what cases do I need to declare a debugging
> channel?
> As I see some debugging channels are declared with
> WINE_DECLARE_DEBUG_CHANNEL (e.g. channels cursor,
> icon, resource).

You normally need to just declare a default one with
WINE_DEFAULT_DEBUG_CHANNEL

Normally, if the source is nicely partitioned in files,
there is no need to use more than one channel per
file, and hence no need to use WINE_DEFAULT_DEBUG_CHANNEL.
This is needed only when you want to use in one file more
then the default channel.

> Some other channels are used and not declared
> anywhere, e.g. (e.g. channels in comctl32.dll -
> animate, comtl, comboex).

Eh???

[dimi at dimi wine]$ grep -n DEBUG dlls/comctl32/animate.c
38:WINE_DEFAULT_DEBUG_CHANNEL(animate);
[dimi at dimi wine]$ grep -n DEBUG dlls/comctl32/comboex.c
36:WINE_DEFAULT_DEBUG_CHANNEL(comboex);

> Documentation in DEVELOPER-HINTS seems obsolete
> regarding this.

Indeed. I will prepare a patch.

-- 
Dimi.




More information about the wine-devel mailing list