equal
deleted
inserted
replaced
375 * Simple sorter for GRFS |
375 * Simple sorter for GRFS |
376 * @param p1 the first GRFConfig * |
376 * @param p1 the first GRFConfig * |
377 * @param p2 the second GRFConfig * |
377 * @param p2 the second GRFConfig * |
378 * @return the same strcmp would return for the name of the NewGRF. |
378 * @return the same strcmp would return for the name of the NewGRF. |
379 */ |
379 */ |
380 static int GRFSorter(const void *p1, const void *p2) |
380 static int CDECL GRFSorter(const void *p1, const void *p2) |
381 { |
381 { |
382 const GRFConfig *c1 = *(const GRFConfig **)p1; |
382 const GRFConfig *c1 = *(const GRFConfig **)p1; |
383 const GRFConfig *c2 = *(const GRFConfig **)p2; |
383 const GRFConfig *c2 = *(const GRFConfig **)p2; |
384 |
384 |
385 return strcmp(c1->name != NULL ? c1->name : c1->filename, |
385 return strcmp(c1->name != NULL ? c1->name : c1->filename, |