From a55630bd37ceddf8f3678fb51d3fd28365521c82 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 11 Nov 2004 14:42:35 +0100 Subject: [PATCH] document DBUG_OUTPUT() misc cleanup dbug/example1.c: cleanup dbug/example2.c: cleanup dbug/example3.c: cleanup dbug/main.c: cleanup dbug/user.r: document DBUG_OUTPUT() --- dbug/example1.c | 3 --- dbug/example2.c | 3 --- dbug/example3.c | 3 --- dbug/main.c | 2 +- dbug/user.r | 9 ++++++++- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/dbug/example1.c b/dbug/example1.c index e468f065796..7b3c3fcd63d 100644 --- a/dbug/example1.c +++ b/dbug/example1.c @@ -1,6 +1,3 @@ - -#include - main (argc, argv) int argc; char *argv[]; diff --git a/dbug/example2.c b/dbug/example2.c index 5e5f14f0e7e..75fc1321b13 100644 --- a/dbug/example2.c +++ b/dbug/example2.c @@ -1,6 +1,3 @@ - -#include - int debug = 0; main (argc, argv) diff --git a/dbug/example3.c b/dbug/example3.c index f177c07425d..c035cdfffa0 100644 --- a/dbug/example3.c +++ b/dbug/example3.c @@ -1,6 +1,3 @@ - -#include - main (argc, argv) int argc; char *argv[]; diff --git a/dbug/main.c b/dbug/main.c index 6d1a307095e..00e80c8ba31 100644 --- a/dbug/main.c +++ b/dbug/main.c @@ -1,4 +1,4 @@ -#include +#include int main (argc, argv) int argc; diff --git a/dbug/user.r b/dbug/user.r index 2d46c6663bd..84c5bca908c 100644 --- a/dbug/user.r +++ b/dbug/user.r @@ -873,7 +873,14 @@ disabled by DBUG_OFF togeher with the .I dbug library. So there will be no need to disable asserts separately with NDEBUG. .SP 1 -EX:\ \fCDBUG_ASSERT(\ a\ >\ 0);\fR +EX:\ \fCDBUG_ASSERT(\ a\ >\ 0\ );\fR +.SP 1 +.LI DBUG_OUTPUT\ +In multi-threaded environment disables (or enables) any +.I dbug +output from the current thread. +.SP 1 +EX:\ \fCDBUG_OUTPUT(\ 0\ );\fR .SP 1 .LE