Addressed compiler warnings for geometry module

This commit is contained in:
_
2018-04-19 05:42:44 -07:00
parent dd5af2004d
commit 9f614e794c
2 changed files with 37 additions and 26 deletions

View File

@@ -73,39 +73,35 @@ struct Mesh {
#pragma pack(pop)
typedef struct {
// input: pointer to struct
void (* const printheader) (struct Header*);
// input: pointer to struct
void (* const printmeshheader)(struct MeshHeader*);
// input: pointer to struct
void (* const printbatch) (struct Batch*);
// input: pointer to struct
void (* const printcoordinate)(struct Coordinate*, unsigned int);
// input: pointer of pointer to struct, order, file data
// ** = 'pass by reference' of a pointer to struct
bool (* const getmeshheader) (struct MeshHeader**,
unsigned int i,
const char * const);
// input: pointer to struct, offset of file data batch is at, file data
bool (* const getbatch) (struct Batch*,
unsigned int offset,
const char * const);
// input: pointer to struct, order, file data
bool (* const getmesh) (struct Mesh*,
unsigned int i,
const char* filename);
const char*);
} fn_devil1geo;
extern fn_devil1geo const DEVIL1GEO;
static void printgheader(struct Header*);
static void printmeshheader(struct MeshHeader*);
static void printmeshbatch(struct Batch*);
static void printcoordinate(struct Coordinate*, unsigned int);
// ** = 'pass by reference' of a pointer to struct
static bool getmeshheader(struct MeshHeader**, unsigned int i, const char * const);
static bool getmeshbatch(struct Batch*, unsigned int offset, const char * const);
static bool getmesh(struct Mesh*, unsigned int i, const char* filename);
#endif