OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/al_test.c versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/al_test.c 1.16 -> 1.17

--- al_test.c    2002/11/05 14:52:24     1.16
+++ al_test.c    2002/11/28 15:12:40     1.17
@@ -90,7 +90,7 @@
 
 #define DUMP(tag,al) do {\
 printf("+DUMP(%s)\n",tag);\
-al_traverse_cb(al, 0, al_bytes(al), AL_FORWARD, LABEL, printchunk, NULL);\
+al_traverse_cb(al, 0, al_bytes(al), AL_FORWARD, NULL, printchunk, NULL);\
 printf("-DUMP(%s)\n\n",tag);\
 } while (0)
 
@@ -178,6 +178,12 @@
     al_create(&al4);
     rc = al_copy(al, al_bytes(al)-42, 38, LABEL, al4);
     printf("copy result: %d (%s)\n\n",rc,al_error(rc));
+    checklen("SPLICED",al);
+    checklen("COPY",al4);
+
+    rc = al_setlabel(al4, 5, 9, LABEL2);
+    printf("setlabel result: %d (%s)\n\n",rc,al_error(rc));
+    checklen("COPY",al4);
 
     DUMP("SPLICED",al);
     print("SPLICED", al);

CVSTrac 2.0.1