"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/winebuild/utils.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

utils.c  (wine-5.12.tar.xz):utils.c  (wine-5.13.tar.xz)
skipping to change at line 951 skipping to change at line 951
default: default:
return odp->link_name; return odp->link_name;
} }
free( buffer ); free( buffer );
buffer = ret; buffer = ret;
return ret; return ret;
} }
/*******************************************************************
* sort_func_list
*
* Sort a list of functions, removing duplicates.
*/
int sort_func_list( ORDDEF **list, int count, int (*compare)(const void *, const
void *) )
{
int i, j;
if (!count) return 0;
qsort( list, count, sizeof(*list), compare );
for (i = j = 0; i < count; i++) if (compare( &list[j], &list[i] )) list[++j]
= list[i];
return j + 1;
}
/* parse a cpu name and return the corresponding value */ /* parse a cpu name and return the corresponding value */
int get_cpu_from_name( const char *name ) int get_cpu_from_name( const char *name )
{ {
unsigned int i; unsigned int i;
for (i = 0; i < ARRAY_SIZE(cpu_names); i++) for (i = 0; i < ARRAY_SIZE(cpu_names); i++)
if (!strcmp( cpu_names[i].name, name )) return cpu_names[i].cpu; if (!strcmp( cpu_names[i].name, name )) return cpu_names[i].cpu;
return -1; return -1;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)