comparison minijss/jloadxm.c @ 1179:e7a951937374

Move variable definitions closer to where they are used.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Mar 2015 10:28:48 +0200
parents dc26df8b642c
children 08c93ebb85b9
comparison
equal deleted inserted replaced
1178:f1bbac567942 1179:e7a951937374
130 130
131 /* Unpack a XM pattern structure from resource to given JSS pattern 131 /* Unpack a XM pattern structure from resource to given JSS pattern
132 */ 132 */
133 static int jssXMUnpackPattern(DMResource *inFile, int size, JSSPattern *pattern) 133 static int jssXMUnpackPattern(DMResource *inFile, int size, JSSPattern *pattern)
134 { 134 {
135 int packb, row, channel, tmp;
136 JSSNote *pnote; 135 JSSNote *pnote;
136 int row, channel;
137 assert(pattern != NULL); 137 assert(pattern != NULL);
138 138
139 pnote = pattern->data; 139 pnote = pattern->data;
140 140
141 for (row = 0; row < pattern->nrows && size > 0; row++) 141 for (row = 0; row < pattern->nrows && size > 0; row++)
142 for (channel = 0; channel < pattern->nchannels && size > 0; channel++) 142 for (channel = 0; channel < pattern->nchannels && size > 0; channel++)
143 { 143 {
144 int packb, tmp;
144 JSGETBYTE(packb); 145 JSGETBYTE(packb);
145 if (packb & 0x80) 146 if (packb & 0x80)
146 { 147 {
147 if (packb & 0x01) 148 if (packb & 0x01)
148 { 149 {