Diff for /libaitcfg/example/test.c between versions 1.6 and 1.7

version 1.6, 2019/11/21 14:30:02 version 1.7, 2023/01/23 23:27:26
Line 72  int main() Line 72  int main()
         printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, NULL, "att", "0001122222222222"));          printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, NULL, "att", "0001122222222222"));
         printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "att", "0001122222222222"));          printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "att", "0001122222222222"));
         printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "attr2", "1111111122222222222"));          printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "attr2", "1111111122222222222"));
           printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "dup", "1"));
         printf("GetAttribute value=%s\n", cfg_getAttribute(tmp2, "global", "attr2"));          printf("GetAttribute value=%s\n", cfg_getAttribute(tmp2, "global", "attr2"));
         printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", "a"));          printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", "a"));
         printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", ""));          printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", ""));
Line 102  int main() Line 103  int main()
         printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "gruh", "shmink", "ohoboho2"));          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", "blahz1"));
         printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "piuk", "blahz2"));          printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "piuk", "blahz2"));
           printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "dup", "2"));
   
 #ifndef SKIP_TEST_MERGE  #ifndef SKIP_TEST_MERGE
         printf("before_merge ---------------------------------\n");          printf("before_merge ---------------------------------\n");
         cfgWriteConfig(stdout, tmp2, 1);          cfgWriteConfig(stdout, tmp2, 1);
         printf("after_merge=%d ---------------------------------\n", cfgMergeConfig(tmp2, tmp));          printf("after_merge=%d ---------------------------------\n", cfgMergeConfig(tmp2, tmp));
         cfgWriteConfig(stdout, tmp2, 1);          cfgWriteConfig(stdout, tmp2, 1);
           printf("END_merge=%d ---------------------------------\n", cfg_getAttributeLong(tmp2, "global", "dup"));
 #else  #else
         cfgEndConfig(&tmp);          cfgEndConfig(&tmp);
 #endif  #endif

Removed from v.1.6  
changed lines
  Added in v.1.7


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