summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/base/nfuncs.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-12-07 09:54:52 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-12-07 09:54:52 +0000
commit3f8677a7438b662bcb7ff8b60762bed41811ab2a (patch)
treecf5bf67ea76eb23b4edacacb79772c458fbfe5b8 /extensions/source/plugin/base/nfuncs.cxx
parent3f7999d4d9e08953ee7a8288e982d64be4a03fd0 (diff)
#95301# swf
Diffstat (limited to 'extensions/source/plugin/base/nfuncs.cxx')
-rw-r--r--extensions/source/plugin/base/nfuncs.cxx33
1 files changed, 25 insertions, 8 deletions
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx
index 4f856cf8af6b..d9ddac0cfb3d 100644
--- a/extensions/source/plugin/base/nfuncs.cxx
+++ b/extensions/source/plugin/base/nfuncs.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: nfuncs.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: pl $ $Date: 2001-10-23 17:31:19 $
+ * last change: $Author: dbo $ $Date: 2001-12-07 10:54:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,15 +65,32 @@
#include <list>
-#ifdef USE_NAMESPACE
-using namespace std;
-#endif
-
-
#include <plugin/impl.hxx>
-// #define TRACE(x) DBG_ERROR( (x) )
+#ifdef DEBUG
+#include <osl/thread.h>
+#include <stdio.h>
+static FILE * s_file = 0;
+void TRACE( char const * s )
+{
+ if (! s_file)
+ s_file = fopen( "f:\\pluginlog.txt", "w" );
+ oslThreadIdentifier t = osl_getThreadIdentifier(0);
+ fprintf( s_file, "log [t_id=%d]: %s\n", t, s );
+ fflush( s_file );
+}
+void TRACE( char const * s, long n )
+{
+ if (! s_file)
+ s_file = fopen( "f:\\pluginlog.txt", "w" );
+ oslThreadIdentifier t = osl_getThreadIdentifier(0);
+ fprintf( s_file, "log [t_id=%d]: %s%d\n", t, s, n );
+ fflush( s_file );
+}
+#else
#define TRACE(x)
+#define TRACE(x,n)
+#endif
NPNetscapeFuncs aNPNFuncs =