Revert "At least on OpenBSD/amd64, this macro returns a bogus value if its argument...
authorJon Trulson <jon@radscan.com>
Tue, 14 Aug 2012 00:18:52 +0000 (18:18 -0600)
committerJon Trulson <jon@radscan.com>
Tue, 14 Aug 2012 00:18:52 +0000 (18:18 -0600)
commit3b06b6a6b7269c7f1d3bf249ef0b177bb5dbf3e3
tree9363612d0b50e856bdd188e67199046f60ea7451
parentbf8c5e674fb84611f744a953d638415eca553c49
Revert "At least on OpenBSD/amd64, this macro returns a bogus value if its argument is NULL."

This reverts commit 0d2f7866ac676ab0f3c8ac3eabcec06f580a9d62.

This causes great mayhem in building/generating dtbuilder .msg files
(corrupting them, and inserting '(nil)' all over the place).

These would cause dtbuilder, and any other program built by dtcodegen
to have screwed up colors, missing callbacks and other mayhem.

This was confirmed by others on the list - reverting this made those
issues go away.

It may be that the int -> long is correct, but the NULL check
certainly does not seem to do what was intended.  I'll leave it up to
Pascal to investigate :)
cde/programs/dtappbuilder/src/libAButil/istr.h