comparison nav_read.c @ 26:0d82d0f30c98 src

cosmetics: Convert all tabs to spaces.
author diego
date Tue, 23 Sep 2008 09:14:45 +0000
parents 447c5319a522
children 98951f8ec89c
comparison
equal deleted inserted replaced
25:17258a7b3239 26:0d82d0f30c98
158 if((pci->hli.hl_gi.hli_ss & 0x03) != 0) { 158 if((pci->hli.hl_gi.hli_ss & 0x03) != 0) {
159 CHECK_VALUE(pci->hli.hl_gi.btn_ns != 0); 159 CHECK_VALUE(pci->hli.hl_gi.btn_ns != 0);
160 CHECK_VALUE(pci->hli.hl_gi.btngr_ns != 0); 160 CHECK_VALUE(pci->hli.hl_gi.btngr_ns != 0);
161 } else { 161 } else {
162 CHECK_VALUE((pci->hli.hl_gi.btn_ns != 0 && pci->hli.hl_gi.btngr_ns != 0) 162 CHECK_VALUE((pci->hli.hl_gi.btn_ns != 0 && pci->hli.hl_gi.btngr_ns != 0)
163 || (pci->hli.hl_gi.btn_ns == 0 && pci->hli.hl_gi.btngr_ns == 0)); 163 || (pci->hli.hl_gi.btn_ns == 0 && pci->hli.hl_gi.btngr_ns == 0));
164 } 164 }
165 165
166 /* pci hli btnit */ 166 /* pci hli btnit */
167 for(i = 0; i < pci->hli.hl_gi.btngr_ns; i++) { 167 for(i = 0; i < pci->hli.hl_gi.btngr_ns; i++) {
168 for(j = 0; j < (36 / pci->hli.hl_gi.btngr_ns); j++) { 168 for(j = 0; j < (36 / pci->hli.hl_gi.btngr_ns); j++) {
173 CHECK_VALUE(pci->hli.btnit[n].zero4 == 0); 173 CHECK_VALUE(pci->hli.btnit[n].zero4 == 0);
174 CHECK_VALUE(pci->hli.btnit[n].zero5 == 0); 174 CHECK_VALUE(pci->hli.btnit[n].zero5 == 0);
175 CHECK_VALUE(pci->hli.btnit[n].zero6 == 0); 175 CHECK_VALUE(pci->hli.btnit[n].zero6 == 0);
176 176
177 if (j < pci->hli.hl_gi.btn_ns) { 177 if (j < pci->hli.hl_gi.btn_ns) {
178 CHECK_VALUE(pci->hli.btnit[n].x_start <= pci->hli.btnit[n].x_end); 178 CHECK_VALUE(pci->hli.btnit[n].x_start <= pci->hli.btnit[n].x_end);
179 CHECK_VALUE(pci->hli.btnit[n].y_start <= pci->hli.btnit[n].y_end); 179 CHECK_VALUE(pci->hli.btnit[n].y_start <= pci->hli.btnit[n].y_end);
180 CHECK_VALUE(pci->hli.btnit[n].up <= pci->hli.hl_gi.btn_ns); 180 CHECK_VALUE(pci->hli.btnit[n].up <= pci->hli.hl_gi.btn_ns);
181 CHECK_VALUE(pci->hli.btnit[n].down <= pci->hli.hl_gi.btn_ns); 181 CHECK_VALUE(pci->hli.btnit[n].down <= pci->hli.hl_gi.btn_ns);
182 CHECK_VALUE(pci->hli.btnit[n].left <= pci->hli.hl_gi.btn_ns); 182 CHECK_VALUE(pci->hli.btnit[n].left <= pci->hli.hl_gi.btn_ns);
183 CHECK_VALUE(pci->hli.btnit[n].right <= pci->hli.hl_gi.btn_ns); 183 CHECK_VALUE(pci->hli.btnit[n].right <= pci->hli.hl_gi.btn_ns);
184 /* vmcmd_verify(pci->hli.btnit[n].cmd); */ 184 /* vmcmd_verify(pci->hli.btnit[n].cmd); */
185 } else { 185 } else {
186 int k; 186 int k;
187 CHECK_VALUE(pci->hli.btnit[n].btn_coln == 0); 187 CHECK_VALUE(pci->hli.btnit[n].btn_coln == 0);
188 CHECK_VALUE(pci->hli.btnit[n].auto_action_mode == 0); 188 CHECK_VALUE(pci->hli.btnit[n].auto_action_mode == 0);
189 CHECK_VALUE(pci->hli.btnit[n].x_start == 0); 189 CHECK_VALUE(pci->hli.btnit[n].x_start == 0);
190 CHECK_VALUE(pci->hli.btnit[n].y_start == 0); 190 CHECK_VALUE(pci->hli.btnit[n].y_start == 0);
191 CHECK_VALUE(pci->hli.btnit[n].x_end == 0); 191 CHECK_VALUE(pci->hli.btnit[n].x_end == 0);
192 CHECK_VALUE(pci->hli.btnit[n].y_end == 0); 192 CHECK_VALUE(pci->hli.btnit[n].y_end == 0);
193 CHECK_VALUE(pci->hli.btnit[n].up == 0); 193 CHECK_VALUE(pci->hli.btnit[n].up == 0);
194 CHECK_VALUE(pci->hli.btnit[n].down == 0); 194 CHECK_VALUE(pci->hli.btnit[n].down == 0);
195 CHECK_VALUE(pci->hli.btnit[n].left == 0); 195 CHECK_VALUE(pci->hli.btnit[n].left == 0);
196 CHECK_VALUE(pci->hli.btnit[n].right == 0); 196 CHECK_VALUE(pci->hli.btnit[n].right == 0);
197 for (k = 0; k < 8; k++) 197 for (k = 0; k < 8; k++)
198 CHECK_VALUE(pci->hli.btnit[n].cmd.bytes[k] == 0); /* CHECK_ZERO? */ 198 CHECK_VALUE(pci->hli.btnit[n].cmd.bytes[k] == 0); /* CHECK_ZERO? */
199 } 199 }
200 } 200 }
201 } 201 }
202 #endif /* !NDEBUG */ 202 #endif /* !NDEBUG */
203 } 203 }