Mercurial > hg > dmlib
comparison tools/ppl.c @ 1606:93d1050eac99
Rename dmf_create_*() functions to dmf_open_*().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 May 2018 11:20:05 +0300 |
parents | 096767827bb8 |
children | 8af6067b6bd7 |
comparison
equal
deleted
inserted
replaced
1605:53482dbdef73 | 1606:93d1050eac99 |
---|---|
555 { | 555 { |
556 dmErrorMsg("No filename specified.\n"); | 556 dmErrorMsg("No filename specified.\n"); |
557 return 1; | 557 return 1; |
558 } | 558 } |
559 | 559 |
560 if ((result = dmf_create_stdio(optFilename, "rb", &file)) != DMERR_OK) | 560 if ((result = dmf_open_stdio(optFilename, "rb", &file)) != DMERR_OK) |
561 { | 561 { |
562 dmErrorMsg("Error opening file '%s', %d: (%s)\n", | 562 dmErrorMsg("Error opening file '%s', %d: (%s)\n", |
563 optFilename, result, dmErrorStr(result)); | 563 optFilename, result, dmErrorStr(result)); |
564 return 1; | 564 return 1; |
565 } | 565 } |
604 result, dmErrorStr(result)); | 604 result, dmErrorStr(result)); |
605 goto error_exit; | 605 goto error_exit; |
606 } | 606 } |
607 | 607 |
608 // Get font | 608 // Get font |
609 result = dmf_create_memio(NULL, "pplfont.fnt", engineSetupFont, sizeof(engineSetupFont), &file); | 609 result = dmf_open_memio(NULL, "pplfont.fnt", engineSetupFont, sizeof(engineSetupFont), &file); |
610 if (result != DMERR_OK) | 610 if (result != DMERR_OK) |
611 { | 611 { |
612 dmErrorMsg("Error opening font file 'pplfont.fnt', #%d: %s\n", | 612 dmErrorMsg("Error opening font file 'pplfont.fnt', #%d: %s\n", |
613 result, dmErrorStr(result)); | 613 result, dmErrorStr(result)); |
614 goto error_exit; | 614 goto error_exit; |