| 203 | void move(Context* c, Value* value, Site* src, Site* dst); |
| 204 | |
| 205 | unsigned sitesToString(Context* c, Site* sites, char* buffer, unsigned size) |
| 206 | { |
| 207 | unsigned total = 0; |
| 208 | for (Site* s = sites; s; s = s->next) { |
| 209 | total += s->toString(c, buffer + total, size - total); |
| 210 | |
| 211 | if (s->next) { |
| 212 | assertT(c, size > total + 2); |
| 213 | memcpy(buffer + total, ", ", 2); |
| 214 | total += 2; |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | assertT(c, size > total); |
| 219 | buffer[total] = 0; |
| 220 | |
| 221 | return total; |
| 222 | } |
| 223 | |
| 224 | unsigned sitesToString(Context* c, Value* v, char* buffer, unsigned size) |
| 225 | { |