]> andersk Git - libyaml.git/commitdiff
Undefine the NDEBUG directive for the test programs.
authorKirill Simonov <xi@resolvent.net>
Mon, 8 Jan 2007 16:13:59 +0000 (16:13 +0000)
committerKirill Simonov <xi@resolvent.net>
Mon, 8 Jan 2007 16:13:59 +0000 (16:13 +0000)
tests/run-dumper.c
tests/run-emitter.c
tests/run-loader.c
tests/run-parser.c
tests/run-scanner.c
tests/test-reader.c
tests/test-version.c

index 149dde01e308a0f588c62fc3745f42efce946e79..41bead4940f57e3b96b5f98246f201440040c6e6 100644 (file)
@@ -2,9 +2,13 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <assert.h>
 #include <string.h>
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+#include <assert.h>
+
 #define BUFFER_SIZE 65536
 #define MAX_DOCUMENTS  16
 
@@ -114,7 +118,9 @@ int compare_nodes(yaml_document_t *document1, int index1,
                             document2, node2->data.mapping.pairs.start[k].value)) return 0;
             }
             break;
-
+        default:
+            assert(0);
+            break;
     }
     return 1;
 }
index 07878952da811fcebdb93cb30929b04b79bb5343..6b246fa81df96c147b6b8470078308865cdd6178 100644 (file)
@@ -2,9 +2,13 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <assert.h>
 #include <string.h>
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+#include <assert.h>
+
 #define BUFFER_SIZE 65536
 #define MAX_EVENTS  1024
 
index a34ad07a41138c9f8a53beaeb17fce44a76c3d27..8c36b668ce203aa9c8f4a3a48a8a9802e7c1f69c 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
index 8c1a5dbc395cbc9713957282a28315089279a665..13031121ae49228a80d974fd47d8a5404b3129e0 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
index 2c8d33e5b68aade683b58aeeccad1f7c031c0586..2c79e7ccf38001b3f9104f3859b22485a21deac8 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
index 49dc8746a257bff582c7d1194fe7e6c86204e125..c6f84cd0d6e46627e549ee49495a9eef0c48e8b4 100644 (file)
@@ -5,6 +5,10 @@ yaml_parser_update_buffer(yaml_parser_t *parser, size_t length);
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 /*
index 5982f7d753183546618f1e8b758090fc635dd3fc..e3e4a1623b3aa43b158902c3bf5c2155fb61d79e 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
This page took 0.108202 seconds and 5 git commands to generate.