diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-20 11:03:18 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-20 11:03:18 +0000 |
commit | 64b349955eba25c5107a6bb70d4213eb7a32592e (patch) | |
tree | dd89dbd8e180f392d8394f370e4711390c19f7b8 /dmake/dbug | |
parent | 4a4787573e8a715f43cedb48abd8af995768a553 (diff) |
INTEGRATION: CWS dmake43p01 (1.1.1.1.132); FILE MERGED
2005/09/26 00:33:12 vq 1.1.1.1.132.1: #i55070# Fix Fred Fishes DBUG macros and add --enable-dbug to enable them
in a configure type build. Also regenerate autotool files.
Diffstat (limited to 'dmake/dbug')
-rw-r--r-- | dmake/dbug/dbug/dbug.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/dmake/dbug/dbug/dbug.c b/dmake/dbug/dbug/dbug.c index c20db79315b6..e63a4750ed5b 100644 --- a/dmake/dbug/dbug/dbug.c +++ b/dmake/dbug/dbug/dbug.c @@ -153,7 +153,8 @@ typedef int BOOLEAN; * be accessed via the macro package facilities. */ -EXPORT FILE *_db_fp_ = stderr; /* Output stream, default stderr */ +EXPORT FILE *_db_fp_ = (FILE *)0; /* Output stream, default is set to + * stderr later */ EXPORT FILE *_db_pfp_ = (FILE *)0; /* Profile stream, 'dbugmon.out' */ EXPORT char *_db_process_ = "dbug"; /* Pointer to process name; argv[0] */ EXPORT BOOLEAN _db_on_ = FALSE; /* TRUE if debugging currently on */ @@ -163,6 +164,9 @@ EXPORT BOOLEAN _db_pon_ = FALSE; /* TRUE if debugging currently on */ * Externally supplied functions. */ +/* Disable the manual definitions, if something is missing use #include's! */ +#if 0 + #ifdef unix /* Only needed for unix */ IMPORT VOID perror (); /* Print system/library error */ IMPORT int chown (); /* Change owner of a file */ @@ -196,6 +200,8 @@ IMPORT int strlen (); /* Find length of string */ IMPORT int fflush (); /* Flush output for stream */ #endif +#endif + /* * The user may specify a list of functions to trace or @@ -263,6 +269,8 @@ LOCAL char *BaseName (); /* Remove leading pathname components */ LOCAL VOID DoPrefix (); /* Print debugger line prefix */ LOCAL VOID FreeList (); /* Free memory from linked list */ LOCAL VOID Indent (); /* Indent line to specified indent */ +LOCAL int DelayArg (int value); /* Convert D flag argument */ +LOCAL BOOLEAN DoProfile (); /* Check if profiling is enabled */ /* Supplied in Sys V runtime environ */ LOCAL char *strtok (); /* Break string into tokens */ @@ -431,6 +439,9 @@ char *control; REGISTER char *scan; REGISTER struct link *temp; + if (!_db_fp_) + _db_fp_ = stderr; /* Output stream, default stderr */ + if (control && *control == '-') { if (*++control == '#') { control++; |