|
@@ -16,7 +16,6 @@ Void function compilation_manager():
|
|
|
if (operation == "upload"):
|
|
|
object_name = input()
|
|
|
node = create_node()
|
|
|
- dict_add(root, object_name, node)
|
|
|
dict_add(node, "hash_md5", input())
|
|
|
if (input()):
|
|
|
dict_add(node, "initializers", construct_top())
|
|
@@ -28,8 +27,11 @@ Void function compilation_manager():
|
|
|
dict_add(node, "symbols", symbols)
|
|
|
while (input()):
|
|
|
dict_add(symbols, input(), input())
|
|
|
- elif (operation == "remove_obj"):
|
|
|
- dict_delete(root, input())
|
|
|
+
|
|
|
+ if (dict_in(root, object_name)):
|
|
|
+ // Already exists, so remove first
|
|
|
+ dict_delete(root, object_name)
|
|
|
+ dict_add(root, object_name, node)
|
|
|
elif (operation == "read_initializers"):
|
|
|
node = root[input()]["initializers"]
|
|
|
output(node)
|