Changeset b7fd2a0 in mainline for uspace/lib/trackmod/xm.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/trackmod/xm.c
r36f0738 rb7fd2a0 53 53 * @return EOK on success, EIO on format error, ENOMEM if out of memory. 54 54 */ 55 static int trackmod_xm_load_order_list(xm_hdr_t *xm_hdr, trackmod_module_t *module)55 static errno_t trackmod_xm_load_order_list(xm_hdr_t *xm_hdr, trackmod_module_t *module) 56 56 { 57 int rc;57 errno_t rc; 58 58 size_t i; 59 59 … … 94 94 * @return EOK on success, EINVAL if there is error in the coded data. 95 95 */ 96 static int trackmod_xm_decode_pattern(uint8_t *data, size_t dsize,96 static errno_t trackmod_xm_decode_pattern(uint8_t *data, size_t dsize, 97 97 trackmod_pattern_t *pattern) 98 98 { … … 162 162 * @return EOK on success, EIO on format error, ENOMEM if out of memory. 163 163 */ 164 static int trackmod_xm_load_patterns(FILE *f, trackmod_module_t *module)164 static errno_t trackmod_xm_load_patterns(FILE *f, trackmod_module_t *module) 165 165 { 166 166 size_t i; … … 173 173 uint8_t *buf = NULL; 174 174 long seek_amount; 175 int rc;175 errno_t rc; 176 176 int ret; 177 177 … … 281 281 * @return EOK on success, EIO on format error, ENOMEM if out of memory. 282 282 */ 283 static int trackmod_xm_load_instruments(xm_hdr_t *xm_hdr, FILE *f,283 static errno_t trackmod_xm_load_instruments(xm_hdr_t *xm_hdr, FILE *f, 284 284 trackmod_module_t *module) 285 285 { … … 297 297 void *smp_data; 298 298 long pos; 299 int rc;299 errno_t rc; 300 300 int ret; 301 301 … … 422 422 * or if any error is found in the format of the file. 423 423 */ 424 int trackmod_xm_load(char *fname, trackmod_module_t **rmodule)424 errno_t trackmod_xm_load(char *fname, trackmod_module_t **rmodule) 425 425 { 426 426 FILE *f = NULL; … … 429 429 size_t nread; 430 430 size_t hdr_size; 431 int rc;431 errno_t rc; 432 432 433 433 f = fopen(fname, "rb");
Note:
See TracChangeset
for help on using the changeset viewer.