equal
deleted
inserted
replaced
542 uint index = 1; |
542 uint index = 1; |
543 const Widget *wi; |
543 const Widget *wi; |
544 |
544 |
545 for (wi = widget; wi->type != WWT_LAST; wi++) index++; |
545 for (wi = widget; wi->type != WWT_LAST; wi++) index++; |
546 |
546 |
547 ReallocT(&w->widget, index); |
547 w->widget = ReallocT(w->widget, index); |
548 memcpy(w->widget, widget, sizeof(*w->widget) * index); |
548 memcpy(w->widget, widget, sizeof(*w->widget) * index); |
549 w->widget_count = index - 1; |
549 w->widget_count = index - 1; |
550 } else { |
550 } else { |
551 w->widget = NULL; |
551 w->widget = NULL; |
552 w->widget_count = 0; |
552 w->widget_count = 0; |