| 462 var = ui_malloc(ctx, sizeof(UiVar)); |
462 var = ui_malloc(ctx, sizeof(UiVar)); |
| 463 cxMapPut(ctx->vars, name, var); |
463 cxMapPut(ctx->vars, name, var); |
| 464 } else { |
464 } else { |
| 465 // override var with new value |
465 // override var with new value |
| 466 if(var->type != type) { |
466 if(var->type != type) { |
| 467 fprintf(stderr, "Error: var %s type mismatch: %s - %s\n", name, uic_type2str(var->type), type); |
467 fprintf(stderr, "Error: var %s type mismatch: %s - %s\n", name, uic_type2str(var->type), uic_type2str(type)); |
| 468 return; |
468 return; |
| 469 } |
469 } |
| 470 if(var->bound) { |
470 if(var->bound) { |
| 471 fprintf(stderr, "Error: var %s already bound\n", name); |
471 fprintf(stderr, "Error: var %s already bound\n", name); |
| 472 return; |
472 return; |