update.c
ds2.10/fluffos-2.16-ds05/testsuite/command/update.c · 380 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
#include <globals.h>
int
main(string file)
{
object obj;
// need to call resolve_path() and query_cwd()
if (!file) {
#ifndef __NO_ADD_ACTION__
return notify_fail("update what?\n");
#else
write("update what?\n");
return 1;
#endif
}
if (obj = find_object(file)) {
destruct(obj);
}
load_object(file);
return 1;
}