3
3
Regression test report generator
5
Copyright Nicola Salmoria and the MAME Team.
6
Visit http://mamedev.org for licensing and usage restrictions.
8
***************************************************************************/
5
****************************************************************************
10
Redistribution and use in source and binary forms, with or without
11
modification, are permitted provided that the following conditions are
14
* Redistributions of source code must retain the above copyright
15
notice, this list of conditions and the following disclaimer.
16
* Redistributions in binary form must reproduce the above copyright
17
notice, this list of conditions and the following disclaimer in
18
the documentation and/or other materials provided with the
20
* Neither the name 'MAME' nor the names of its contributors may be
21
used to endorse or promote products derived from this software
22
without specific prior written permission.
24
THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
25
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
28
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34
POSSIBILITY OF SUCH DAMAGE.
36
****************************************************************************/
11
39
#include <stdlib.h>
179
207
/* trim leading spaces */
180
while (*string != 0 && isspace(*string))
208
while (*string != 0 && isspace((UINT8)*string))
183
211
/* trim trailing spaces */
184
212
length = strlen(string);
185
while (length > 0 && isspace(string[length - 1]))
213
while (length > 0 && isspace((UINT8)string[length - 1]))
186
214
string[--length] = 0;
436
464
/* find the end */
437
for (end = start; !isspace(*end); end++) ;
465
for (end = start; !isspace((UINT8)*end); end++) ;
439
467
strcpy(lists[index].version, start);
440
468
fprintf(stderr, "Parsing results from version %s\n", lists[index].version);