Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 2454:375da267d994
Un-staticize functions in the main program.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Apr 2020 14:18:43 +0300 |
parents | 11151bc8d056 |
children | ac42dccc6b7c |
comparison
equal
deleted
inserted
replaced
2453:11151bc8d056 | 2454:375da267d994 |
---|---|
401 | 401 |
402 return FALSE; | 402 return FALSE; |
403 } | 403 } |
404 | 404 |
405 | 405 |
406 static BOOL dmParseMapOptionMapItem(const char *popt, DMMapValue *value, const unsigned int nmax, const char *msg) | 406 BOOL dmParseMapOptionMapItem(const char *popt, DMMapValue *value, const unsigned int nmax, const char *msg) |
407 { | 407 { |
408 char *end, *split, *opt = dm_strdup(popt); | 408 char *end, *split, *opt = dm_strdup(popt); |
409 | 409 |
410 if (opt == NULL) | 410 if (opt == NULL) |
411 goto error; | 411 goto error; |
486 dmFree(opt); | 486 dmFree(opt); |
487 return FALSE; | 487 return FALSE; |
488 } | 488 } |
489 | 489 |
490 | 490 |
491 static BOOL dmParseMapOptionItem(char *opt, char *end, void *pvalue, const int index, const int nmax, const BOOL requireIndex, const char *msg) | 491 BOOL dmParseMapOptionItem(char *opt, char *end, void *pvalue, const int index, const int nmax, const BOOL requireIndex, const char *msg) |
492 { | 492 { |
493 // Trim whitespace | 493 // Trim whitespace |
494 if (end != NULL) | 494 if (end != NULL) |
495 { | 495 { |
496 *end = 0; | 496 *end = 0; |
1639 | 1639 |
1640 return res; | 1640 return res; |
1641 } | 1641 } |
1642 | 1642 |
1643 | 1643 |
1644 static Uint8 dmConvertByte(const Uint8 *sp, const BOOL multicolor) | 1644 Uint8 dmConvertByte(const Uint8 *sp, const BOOL multicolor) |
1645 { | 1645 { |
1646 Uint8 byte = 0; | 1646 Uint8 byte = 0; |
1647 int xc; | 1647 int xc; |
1648 | 1648 |
1649 if (multicolor) | 1649 if (multicolor) |