Diff for /libaitcfg/contrib/Attic/test.c between versions 1.1.1.1.4.1 and 1.1.1.1.4.2

version 1.1.1.1.4.1, 2009/09/23 14:20:53 version 1.1.1.1.4.2, 2009/10/19 14:58:24
Line 33  int main() Line 33  int main()
         printf("tmp: SetAttribute=%d\n", cfg_SetAttribute(&tmp, "global", "piuk", "blahz"));          printf("tmp: SetAttribute=%d\n", cfg_SetAttribute(&tmp, "global", "piuk", "blahz"));
         printf("tmp: SetAttribute=%d\n", cfg_SetAttribute(&tmp, "bzyt", "00", "99999"));          printf("tmp: SetAttribute=%d\n", cfg_SetAttribute(&tmp, "bzyt", "00", "99999"));
         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"));
         InitConfig(&lst);          InitConfig(&lst);
         printf("SetAttribute=%d\n", cfg_SetAttribute(&lst, NULL, "zzz", "ZZZ"));          printf("SetAttribute=%d\n", cfg_SetAttribute(&lst, NULL, "zzz", "ZZZ"));
         printf("SetAttribute=%d\n", cfg_SetAttribute(&lst, NULL, "att", "0001122222222222"));          printf("SetAttribute=%d\n", cfg_SetAttribute(&lst, NULL, "att", "0001122222222222"));
Line 43  int main() Line 44  int main()
         printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, "global", ""));          printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, "global", ""));
         printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, NULL, "att"));          printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, NULL, "att"));
         printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, "global", "attr2"));          printf("UnsetAttribute=%d\n", cfg_UnsetAttribute(&lst, "global", "attr2"));
           printf("tmp: SetAttribute=%d\n", cfg_SetAttribute(&lst, "bzyt", "111", "99999"));
   
         WriteConfig(stdout, &tmp);          WriteConfig(stdout, &tmp);
        ConcatConfig(&lst, &tmp);        WriteConfig(stdout, &lst);
         printf("---------------------------------\n");
         printf("%d\n---------------------------------\n", MergeConfig(&lst, &tmp));
         WriteConfig(stdout, &lst);
 //      printf("%d\n---------------------------------\n", ConcatConfig(&lst, &tmp));
 //      WriteConfig(stdout, &lst);
         printf("%d\n---------------------------------\n", ConcatConfig(&lst, &tmp));
         WriteConfig(stdout, &lst);          WriteConfig(stdout, &lst);
   
         printf("CreateConfig=%d\n", CreateConfig("test4e.cfg", &lst));          printf("CreateConfig=%d\n", CreateConfig("test4e.cfg", &lst));

Removed from v.1.1.1.1.4.1  
changed lines
  Added in v.1.1.1.1.4.2


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