summaryrefslogtreecommitdiff
path: root/rsc/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-15 14:55:59 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-15 14:55:59 +0000
commit73d251934c841b815f9adadeef316dcd905ff0c6 (patch)
tree16ec6859db154e8985b976710781c4c6273dca0b /rsc/source
parent82f8879992113f38d322cab5ba5516a1d3ae7535 (diff)
INTEGRATION: CWS dbgmacros1 (1.1.34.1.12); FILE MERGED
2003/04/09 12:06:48 kso 1.1.34.1.12.1: #108413# - debug macro unification.
Diffstat (limited to 'rsc/source')
-rw-r--r--rsc/source/rscpp/cpp1.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c
index 2cdcbe98cd99..c19edf3150da 100644
--- a/rsc/source/rscpp/cpp1.c
+++ b/rsc/source/rscpp/cpp1.c
@@ -2,9 +2,9 @@
*
* $RCSfile: cpp1.c,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2003-03-26 15:50:48 $
+ * last change: $Author: vg $ $Date: 2003-04-15 15:55:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -69,7 +69,7 @@
FILE *pCppOut = NULL;
FILE *pCppIn = NULL;
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
FILE *pDefOut = stdout; /* ER evtl. #define's dump */
#endif
@@ -101,7 +101,7 @@ int wrongline; /* Force #line to compiler */
char token[IDMAX + 1]; /* Current input token */
int errors; /* cpp error counter */
FILEINFO *infile = NULL; /* Current input file */
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
int debug; /* TRUE if debugging now */
int bDumpDefs; /* TRUE if #define's dump req. */
#ifdef EVALDEFS
@@ -209,7 +209,7 @@ char *preset[] = { /* names defined at cpp start */
#ifdef COMPILER
COMPILER,
#endif
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
"decus_cpp", /* Ourselves! */
#endif
NULL /* Must be last */
@@ -252,7 +252,7 @@ void InitCpp1()
pCppOut = stdout;
pCppIn = stdin;
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
debug = 0;
bDumpDefs = 0;
pDefOut = stdout;
@@ -310,7 +310,7 @@ nRunde++;
useargv=argv;
}
switch (i) {
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
case 4:
if ( bDumpDefs )
{
@@ -336,7 +336,7 @@ nRunde++;
}
} /* Continue by opening output */
}
-/* DEBUG */
+/* OSL_DEBUG_LEVEL > 1 */
#endif
case 3:
/*
@@ -400,7 +400,7 @@ nRunde++;
setincdirs(); /* Setup -I include directories */
addfile( pCppIn, work); /* "open" main input file */
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
if (debug > 0 || bDumpDefs)
dumpdef("preset #define symbols");
#endif
@@ -418,7 +418,7 @@ nRunde++;
}
/* alt: fclose(stdout); */
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
fclose( pDefOut );
#endif
fclose( pCppOut );