Mercurial > hg > dmlib
comparison minijss/jloadxm.c @ 1239:2be42ba9fc39
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Mar 2015 18:45:13 +0200 |
parents | 18baa42db260 |
children | 47d8e5e0e592 |
comparison
equal
deleted
inserted
replaced
1238:e8c99da451cd | 1239:2be42ba9fc39 |
---|---|
1007 } | 1007 } |
1008 | 1008 |
1009 if (probe) | 1009 if (probe) |
1010 return DMERR_OK; | 1010 return DMERR_OK; |
1011 | 1011 |
1012 /* Okay, allocate a module structure | 1012 // Okay, allocate a module structure |
1013 */ | 1013 if ((*ppModule = module = jssAllocateModule()) == NULL) |
1014 module = jssAllocateModule(); | |
1015 if (module == NULL) | |
1016 { | 1014 { |
1017 JSSERROR(DMERR_MALLOC, DMERR_MALLOC, | 1015 JSSERROR(DMERR_MALLOC, DMERR_MALLOC, |
1018 "Could not allocate memory for module structure.\n"); | 1016 "Could not allocate memory for module structure.\n"); |
1019 } | 1017 } |
1020 *ppModule = module; | 1018 |
1021 | 1019 // Convert the module header data |
1022 | |
1023 // Convert and check the header data | |
1024 module->moduleType = jmdtXM; | 1020 module->moduleType = jmdtXM; |
1025 module->intVersion = xmH.version; | 1021 module->intVersion = xmH.version; |
1026 #ifndef JSS_LIGHT | 1022 #ifndef JSS_LIGHT |
1027 module->moduleName = jssASCIItoStr(xmH.songName, 0, sizeof(xmH.songName)); | 1023 module->moduleName = jssASCIItoStr(xmH.songName, 0, sizeof(xmH.songName)); |
1028 module->trackerName = jssASCIItoStr(xmH.trackerName, 0, sizeof(xmH.trackerName)); | 1024 module->trackerName = jssASCIItoStr(xmH.trackerName, 0, sizeof(xmH.trackerName)); |