Diff for /libaitcfg/example/test.c between versions 1.3 and 1.3.8.2

version 1.3, 2012/08/06 14:53:34 version 1.3.8.2, 2013/06/06 08:20:18
Line 37  int main() Line 37  int main()
         printf("Str=%s\n", AIT_GET_STR(&v));          printf("Str=%s\n", AIT_GET_STR(&v));
         AIT_FREE_VAL(&v);          AIT_FREE_VAL(&v);
   
        printf("GetAttribute value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest"));        printf("GetAttribute multi-lines value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest"));
         printf("GetAttribute multi-lines w/o \\ value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest_1"));
         cfgUnloadConfig(&lst);          cfgUnloadConfig(&lst);
         printf("0) ---------------------------------\n");          printf("0) ---------------------------------\n");
   
Line 80  int main() Line 81  int main()
         printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "gniah", "tiiiiiii"));          printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "gniah", "tiiiiiii"));
         printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, NULL, "att", "0001122777777"));          printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, NULL, "att", "0001122777777"));
         printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho"));          printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho"));
           printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho1"));
           printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho2"));
           printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "piuk", "blahz1"));
           printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "piuk", "blahz2"));
   
 #ifndef SKIP_TEST_MERGE  #ifndef SKIP_TEST_MERGE
         printf("before_merge ---------------------------------\n");          printf("before_merge ---------------------------------\n");

Removed from v.1.3  
changed lines
  Added in v.1.3.8.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>