174 var->from = from; |
174 var->from = from; |
175 |
175 |
176 return var; |
176 return var; |
177 } |
177 } |
178 } else { |
178 } else { |
179 // create an empty value and add it to the window variables |
179 // create an empty value and add it to the context variables |
180 // it can be moved to the document vars later |
180 // it can be moved to the document vars later |
181 void *value = uic_create_value(ctx->mempool->allocator, type); |
181 void *value = uic_create_value(ctx->mempool->allocator, type); |
182 if(!value) { |
182 if(!value) { |
183 fprintf(stderr, "UI Error: Cannot create empty value.\n"); |
183 fprintf(stderr, "UI Error: Cannot create empty value.\n"); |
184 return NULL; |
184 return NULL; |