[erlang-bugs] Generap purpose macros DBG/2 in xmerl.hrl

Ulf Wiger ulf.wiger@REDACTED
Wed Jun 17 11:02:40 CEST 2009


Maxim Treskin wrote:
> Hello
> 
> After including xmerl header file with
> -include_lib("xmerl/include/xmerl.hrl") I have compilation error because
> DBG/2 already defined in my code.
> It seems strange to define general purpose macros like DBG in that place.
> BTW, xmerl does not use this macros anywhere.
> 
> Thank you.
> 

Mea culpa.

In my defense, when I added those macros four years ago,
xmerl was still only a proof of concept hack. (:

http://jungerl.cvs.sourceforge.net/viewvc/jungerl/jungerl/lib/xmerl/inc/xmerl.hrl?revision=1.2&view=markup

(The committer was Luke Gorrie, but that was just because it was
non-trivial back then to use CVS/SSH from behind Ericsson's
firewalls. No blame should fall on poor Luke.)

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com


More information about the erlang-bugs mailing list