[BACK]Return to test-stringlist.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/test-stringlist.c between version 1.1 and 1.2

version 1.1, 2015/05/20 22:22:59 version 1.2, 2015/10/06 18:32:20
Line 24  main(void)
Line 24  main(void)
         char             teststr[] = "test";          char             teststr[] = "test";
   
         if ((sl = sl_init()) == NULL)          if ((sl = sl_init()) == NULL)
                 return(1);                  return 1;
         if (sl_add(sl, teststr))          if (sl_add(sl, teststr))
                 return(2);                  return 2;
         if (sl->sl_cur != 1)          if (sl->sl_cur != 1)
                 return(3);                  return 3;
         if (sl->sl_str[0] != teststr)          if (sl->sl_str[0] != teststr)
                 return(4);                  return 4;
   
         sl_free(sl, 0);          sl_free(sl, 0);
         return(0);          return 0;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb