diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/c4copy.c | 1 | ||||
| -rw-r--r-- | examples/c4info.c | 2 | ||||
| -rw-r--r-- | examples/c4ls.c | 3 | ||||
| -rw-r--r-- | examples/c4ls_asChild.c | 3 | ||||
| -rw-r--r-- | examples/c4ls_buffer.c | 3 | ||||
| -rw-r--r-- | examples/unc4group.c | 1 |
6 files changed, 9 insertions, 4 deletions
diff --git a/examples/c4copy.c b/examples/c4copy.c index 35e201b..3c0d092 100644 --- a/examples/c4copy.c +++ b/examples/c4copy.c @@ -14,6 +14,7 @@ int main(int argc, char* argv[]) bool success = true; CC4Group* group = cc4group.new(); + cc4group.setLazy(group, false); if(!cc4group.openExisting(group, argv[1])) { fprintf(stderr, "ERROR: Can not open group file \"%s\": %s\n", argv[1], cc4group.getErrorMessage(group)); diff --git a/examples/c4info.c b/examples/c4info.c index ef4ace0..09d0257 100644 --- a/examples/c4info.c +++ b/examples/c4info.c @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) CC4Group_EntryInfo info; // yes, this should be error checked, but this is only an example. and actually, if the root entry info can not be retrieved, there must be some serious problem somewhere else // anyway, the worst thing that can happen would be printing some random uninitialized data to stdout. what a nice surprise! - cc4group.getEntryInfo(group, "", &info); + cc4group.getEntryInfo(group, "", &info, false); puts(argv[1]); printf("Created: %s\n", formatTime(info.modified)); diff --git a/examples/c4ls.c b/examples/c4ls.c index 58cc29e..20b1aca 100644 --- a/examples/c4ls.c +++ b/examples/c4ls.c @@ -55,6 +55,7 @@ int main(int argc, char* argv[]) } CC4Group* group = cc4group.new(); + cc4group.setLazy(group, false); bool success = cc4group.openExisting(group, argv[1]); if(!success) { @@ -65,7 +66,7 @@ int main(int argc, char* argv[]) CC4Group_EntryInfo* infos; size_t entries; - success = cc4group.getEntryInfos(group, argc == 3 ? argv[2] : NULL, &infos, &entries); + success = cc4group.getEntryInfos(group, argc == 3 ? argv[2] : NULL, &infos, &entries, false); if(!success) { diff --git a/examples/c4ls_asChild.c b/examples/c4ls_asChild.c index 8a9d00b..4aef787 100644 --- a/examples/c4ls_asChild.c +++ b/examples/c4ls_asChild.c @@ -55,6 +55,7 @@ int main(int argc, char* argv[]) } CC4Group* group = cc4group.new(); + cc4group.setLazy(group, false); bool success = cc4group.openExisting(group, argv[1]); if(!success) { @@ -76,7 +77,7 @@ int main(int argc, char* argv[]) CC4Group_EntryInfo* infos; size_t entries; - success = cc4group.getEntryInfos(child, NULL, &infos, &entries); + success = cc4group.getEntryInfos(child, NULL, &infos, &entries, false); if(!success) { diff --git a/examples/c4ls_buffer.c b/examples/c4ls_buffer.c index 7280afd..df63cd6 100644 --- a/examples/c4ls_buffer.c +++ b/examples/c4ls_buffer.c @@ -100,6 +100,7 @@ int main(int argc, char* argv[]) } CC4Group* group = cc4group.new(); + cc4group.setLazy(group, false); bool success = cc4group.openMemory(group, buffer, pos, cc4group.MemoryManagement.Take); if(!success) { @@ -110,7 +111,7 @@ int main(int argc, char* argv[]) CC4Group_EntryInfo* infos; size_t entries; - success = cc4group.getEntryInfos(group, argc == 2 ? argv[1] : NULL, &infos, &entries); + success = cc4group.getEntryInfos(group, argc == 2 ? argv[1] : NULL, &infos, &entries, false); if(!success) { diff --git a/examples/unc4group.c b/examples/unc4group.c index 8d08eb3..ae6aaeb 100644 --- a/examples/unc4group.c +++ b/examples/unc4group.c @@ -12,6 +12,7 @@ int main(int argc, char* argv[]) } CC4Group* group = cc4group.new(); + cc4group.setLazy(group, false); if(!cc4group.openExisting(group, argv[1])) { fprintf(stderr, "ERROR: Can not open group file \"%s\": %s\n", argv[1], cc4group.getErrorMessage(group)); |
