[Pcsclite-cvs-commit] r5589 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Feb 10 09:07:47 UTC 2011
Author: rousseau
Date: Thu Feb 10 09:07:39 2011
New Revision: 5589
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5589
Log:
Move the definition of DO_TRACE, DO_PROFILE, and DO_CHECK_SAME_PROCESS
at the top of the file, and add documentation.
Modified:
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=5589&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Thu Feb 10 09:07:39 2011
@@ -106,6 +106,19 @@
#include "winscard_msg.h"
#include "utils.h"
+/* Display, on stderr, a trace of the WinSCard calls with arguments and
+ * results */
+#undef DO_TRACE
+
+/* Profile the execution time of WinSCard calls */
+#undef DO_PROFILE
+
+/* Check that handles are not shared between (forked) processes
+ * This check is disabled since some systems uses the same PID for
+ * different threads of a same process */
+#undef DO_CHECK_SAME_PROCESS
+
+
/** used for backward compatibility */
#define SCARD_PROTOCOL_ANY_OLD 0x1000
@@ -122,7 +135,6 @@
#define COLOR_MAGENTA "\33[35m"
#define COLOR_NORMAL "\33[0m"
-#undef DO_TRACE
#ifdef DO_TRACE
#include <stdio.h>
@@ -150,7 +162,6 @@
#define API_TRACE_OUT(...)
#endif
-#undef DO_PROFILE
#ifdef DO_PROFILE
#define PROFILE_FILE "/tmp/pcsc_profile"
More information about the Pcsclite-cvs-commit
mailing list