71 fprintf(stderr, "UI Error: var %s has incompatible type.\n", name); |
71 fprintf(stderr, "UI Error: var %s has incompatible type.\n", name); |
72 return NULL; |
72 return NULL; |
73 } else { |
73 } else { |
74 // register the current document/wdata map |
74 // register the current document/wdata map |
75 // if the document is closed, the var will be moved to this map |
75 // if the document is closed, the var will be moved to this map |
76 |
|
77 // TODO: get current map |
|
78 var->from = from; |
76 var->from = from; |
79 |
77 |
80 return var; |
78 return var; |
81 } |
79 } |
82 } else { |
80 } else { |