comparison tools/data2inc.c @ 2250:956db0095f82

Change struct member name.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 21:39:08 +0300
parents d76b0c92769d
children d736ff74663b
comparison
equal deleted inserted replaced
2249:6ba4aed198e4 2250:956db0095f82
22 { 22 {
23 char *name; 23 char *name;
24 char *desc; 24 char *desc;
25 char *fexts[SET_MAX_FEXTS]; 25 char *fexts[SET_MAX_FEXTS];
26 26
27 char *type; 27 char *defDataType;
28 28
29 void (*writeHeader) (FILE *fh, const char *name); 29 void (*writeHeader) (FILE *fh, const char *name);
30 void (*writeDecl) (FILE *fh, const size_t len, const char *name); 30 void (*writeDecl) (FILE *fh, const size_t len, const char *name);
31 void (*writeData) (FILE *fh, const Uint8 *buf, const size_t len); 31 void (*writeData) (FILE *fh, const Uint8 *buf, const size_t len);
32 void (*writeFooter) (FILE *fh, const size_t len, const char *name); 32 void (*writeFooter) (FILE *fh, const size_t len, const char *name);
415 setFormat->desc, setFormat->name); 415 setFormat->desc, setFormat->name);
416 } 416 }
417 417
418 // Set some option defaults 418 // Set some option defaults
419 if (optDataType == NULL) 419 if (optDataType == NULL)
420 optDataType = setFormat->type; 420 optDataType = setFormat->defDataType;
421 421
422 // Open the files 422 // Open the files
423 if (optInFilename == NULL) 423 if (optInFilename == NULL)
424 inFile = stdin; 424 inFile = stdin;
425 else 425 else