diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 14:56:31 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 14:56:31 +0000 |
commit | 68c6f6101de04bbf746cee8fa03485c3372ee64f (patch) | |
tree | 7e09b20ec7a18fffb23e42f4e717ef2708d1ca78 /rsc/source | |
parent | 10fa19f95dd8b3c3d4c0f628a4468bd3172c8d8d (diff) |
INTEGRATION: CWS dbgmacros1 (1.1.56); FILE MERGED
2003/04/09 12:06:50 kso 1.1.56.1: #108413# - debug macro unification.
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/rscpp/cpp4.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rsc/source/rscpp/cpp4.c b/rsc/source/rscpp/cpp4.c index 359ee1af0722..54a49ed106c5 100644 --- a/rsc/source/rscpp/cpp4.c +++ b/rsc/source/rscpp/cpp4.c @@ -2,9 +2,9 @@ * * $RCSfile: cpp4.c,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: nf $ $Date: 2001-04-18 10:31:56 $ + * last change: $Author: vg $ $Date: 2003-04-15 15:56:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -249,7 +249,7 @@ dodefine() *workp = EOS; /* Terminate work */ dp->repl = savestring(work); /* Save the string */ dp->nargs = nargs; /* Save arg count */ -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if (debug) dumpadef("macro definition", dp); else if (bDumpDefs) @@ -455,7 +455,7 @@ register DEFBUF *tokenp; extern FILEINFO *getfile(); #endif -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if (debug) dumpadef("expand entry", tokenp); #endif @@ -525,7 +525,7 @@ register DEFBUF *tokenp; cwarn("Wrong number of macro arguments for \"%s\"", tokenp->name); } -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if (debug) dumpparm("expand"); #endif @@ -591,7 +591,7 @@ expcollect() charput(c); /* Store this one */ } /* Collect an argument */ charput(EOS); /* Terminate argument */ -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if (debug) fprintf( pCppOut, "parm[%d] = \"%s\"\n", nargs, parlist[nargs - 1]); #endif @@ -662,13 +662,13 @@ nospace: cfatal("Out of space in macro \"%s\" arg expansion", } } *defp = EOS; -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 if (debug > 1) fprintf( pCppOut, "macroline: \"%s\"\n", file->buffer); #endif } - -#ifdef DEBUG + +#if OSL_DEBUG_LEVEL > 1 dumpparm(why) char *why; /* |