MCPcopy Create free account
hub / github.com/dds-bridge/dds / wipe

Method wipe

library/src/trans_table/trans_table_s.cpp:270–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270auto TransTableS::wipe() -> void
271{
272 int m;
273
274 for (m = 1; m <= wcount_; m++)
275 {
276 if (pw_[m])
277 free(pw_[m]);
278 pw_[m] = nullptr;
279 }
280 for (m = 1; m <= ncount_; m++)
281 {
282 if (pn_[m])
283 free(pn_[m]);
284 pn_[m] = nullptr;
285 }
286
287 for (int k = 1; k <= 13; k++)
288 {
289 for (int h = 0; h < DDS_HANDS; h++)
290 {
291 for (m = 1; m <= lcount_[k][h]; m++)
292 {
293 if (pl_[k][h][m])
294 free(pl_[k][h][m]);
295 pl_[k][h][m] = nullptr;
296 }
297 }
298 }
299
300 allocmem_ = summem_;
301
302}
303
304
305auto TransTableS::init_tt() -> void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected