Mercurial > hg > dmlib
comparison minijss/jloadjss.c @ 1256:d88d5f88b77a
Rename variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Mar 2015 17:43:09 +0200 |
parents | f9bf71071f0b |
children | 60dc14a2e4c5 |
comparison
equal
deleted
inserted
replaced
1255:f9bf71071f0b | 1256:d88d5f88b77a |
---|---|
308 return DMERR_OK; | 308 return DMERR_OK; |
309 } | 309 } |
310 #endif | 310 #endif |
311 | 311 |
312 | 312 |
313 int jssLoadJSSMOD(DMResource *inFile, JSSModule **ppModule, BOOL probe) | 313 int jssLoadJSSMOD(DMResource *inFile, JSSModule **pmodule, BOOL probe) |
314 { | 314 { |
315 JSSModule *module; | 315 JSSModule *module; |
316 JSSMODHeader jssH; | 316 JSSMODHeader jssH; |
317 int index, ret = DMERR_OK; | 317 int index, ret = DMERR_OK; |
318 | 318 |
319 *ppModule = NULL; | 319 *pmodule = NULL; |
320 | 320 |
321 // Check the JSSMOD header | 321 // Check the JSSMOD header |
322 if (!dmf_read_str(inFile, &jssH.idMagic, sizeof(jssH.idMagic)) || | 322 if (!dmf_read_str(inFile, &jssH.idMagic, sizeof(jssH.idMagic)) || |
323 !dmf_read_byte(inFile, &jssH.idVersion)) | 323 !dmf_read_byte(inFile, &jssH.idVersion)) |
324 JSSERROR(DMERR_FREAD, DMERR_FREAD, | 324 JSSERROR(DMERR_FREAD, DMERR_FREAD, |
372 JSSERROR(DMERR_INVALID_DATA, DMERR_INVALID_DATA, | 372 JSSERROR(DMERR_INVALID_DATA, DMERR_INVALID_DATA, |
373 "Invalid values in JSSMOD header.\n"); | 373 "Invalid values in JSSMOD header.\n"); |
374 } | 374 } |
375 | 375 |
376 // Allocate the module | 376 // Allocate the module |
377 if ((*ppModule = module = jssAllocateModule()) == NULL) | 377 if ((*pmodule = module = jssAllocateModule()) == NULL) |
378 { | 378 { |
379 JSSERROR(DMERR_MALLOC, DMERR_MALLOC, | 379 JSSERROR(DMERR_MALLOC, DMERR_MALLOC, |
380 "Could not allocate memory for module structure.\n"); | 380 "Could not allocate memory for module structure.\n"); |
381 } | 381 } |
382 | 382 |