Mercurial > hg > dmlib
comparison tools/xm2jss.c @ 1167:848a88ce7a57
Use dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 07:37:35 +0200 |
parents | d0898867ec4c |
children | 1f2cfa0119aa |
comparison
equal
deleted
inserted
replaced
1166:f29fa5b6b748 | 1167:848a88ce7a57 |
---|---|
537 for (totalSize = instr = 0; instr < m->nextInstruments; instr++) | 537 for (totalSize = instr = 0; instr < m->nextInstruments; instr++) |
538 { | 538 { |
539 JSSMODExtInstrument jssE; | 539 JSSMODExtInstrument jssE; |
540 JSSExtInstrument *einst = m->extInstruments[instr]; | 540 JSSExtInstrument *einst = m->extInstruments[instr]; |
541 | 541 |
542 memset(&jssE, 0, sizeof(jssE)); | 542 dmMemset(&jssE, 0, sizeof(jssE)); |
543 | 543 |
544 if (einst) | 544 if (einst) |
545 { | 545 { |
546 // Create header | 546 // Create header |
547 jssE.nsamples = einst->nsamples; | 547 jssE.nsamples = einst->nsamples; |
573 for (totalSize = instr = 0; instr < m->ninstruments; instr++) | 573 for (totalSize = instr = 0; instr < m->ninstruments; instr++) |
574 { | 574 { |
575 JSSMODInstrument jssI; | 575 JSSMODInstrument jssI; |
576 JSSInstrument *inst = m->instruments[instr]; | 576 JSSInstrument *inst = m->instruments[instr]; |
577 | 577 |
578 memset(&jssI, 0, sizeof(jssI)); | 578 dmMemset(&jssI, 0, sizeof(jssI)); |
579 | 579 |
580 // Create header | 580 // Create header |
581 if (inst != NULL) | 581 if (inst != NULL) |
582 { | 582 { |
583 jssI.size = inst->size; | 583 jssI.size = inst->size; |