[Pcsclite-cvs-commit] r3239 - in /trunk/PCSC/src: lassert.h pcsc-wirecheck-gen.c pcsc-wirecheck-main.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Dec 17 10:16:56 UTC 2008


Author: rousseau
Date: Wed Dec 17 10:16:56 2008
New Revision: 3239

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3239
Log:
add some log to pcsc-wirecheck

Modified:
    trunk/PCSC/src/lassert.h
    trunk/PCSC/src/pcsc-wirecheck-gen.c
    trunk/PCSC/src/pcsc-wirecheck-main.c

Modified: trunk/PCSC/src/lassert.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/lassert.h?rev=3239&op=diff
==============================================================================
--- trunk/PCSC/src/lassert.h (original)
+++ trunk/PCSC/src/lassert.h Wed Dec 17 10:16:56 2008
@@ -7,7 +7,7 @@
 #if 0
 #define FAIL exit (1)
 #else
-#define FAIL
+#define FAIL return 1
 #endif
 
 #define LASSERT(cond)                                                   \

Modified: trunk/PCSC/src/pcsc-wirecheck-gen.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcsc-wirecheck-gen.c?rev=3239&op=diff
==============================================================================
--- trunk/PCSC/src/pcsc-wirecheck-gen.c (original)
+++ trunk/PCSC/src/pcsc-wirecheck-gen.c Wed Dec 17 10:16:56 2008
@@ -262,8 +262,8 @@
             "#include \"eventhandler.h\"\n"
             "#include \"winscard_msg.h\"\n\n"
             "#include \"lassert.h\"\n\n"
-            "void pcsc_assert_wire_constants(void);\n"
-            "void pcsc_assert_wire_constants(void)\n"
+            "int pcsc_assert_wire_constants(void);\n"
+            "int pcsc_assert_wire_constants(void)\n"
             "{\n");
 
     BLANK_LINE ();
@@ -273,6 +273,7 @@
 
     BLANK_LINE ();
 
+    printf ("return 0;\n");
     printf ("}\n");
 
     return 0;

Modified: trunk/PCSC/src/pcsc-wirecheck-main.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcsc-wirecheck-main.c?rev=3239&op=diff
==============================================================================
--- trunk/PCSC/src/pcsc-wirecheck-main.c (original)
+++ trunk/PCSC/src/pcsc-wirecheck-main.c Wed Dec 17 10:16:56 2008
@@ -1,8 +1,12 @@
-void pcsc_assert_wire_constants(void);
+#include <stdio.h>
+
+int pcsc_assert_wire_constants(void);
 
 int
 main (int argc, char **argv)
 {
-    pcsc_assert_wire_constants ();
+	printf("Checking ABI...\n");
+    if (0 == pcsc_assert_wire_constants ())
+		printf("OK\n");
     return 0;
 }




More information about the Pcsclite-cvs-commit mailing list