summaryrefslogtreecommitdiff
path: root/include/matfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/matfile.h')
-rw-r--r--include/matfile.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/include/matfile.h b/include/matfile.h
index 586dbea..2928d34 100644
--- a/include/matfile.h
+++ b/include/matfile.h
@@ -1,51 +1,51 @@
#ifndef INCLUDE_MATFILE_H_
#define INCLUDE_MATFILE_H_
-#include <stdint.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
typedef enum {
- miINT8 = 1,
- miUINT8 = 2,
- miINT16 = 3,
+ miINT8 = 1,
+ miUINT8 = 2,
+ miINT16 = 3,
miUINT16 = 4,
- miINT32 = 5,
+ miINT32 = 5,
miUINT32 = 6,
miSINGLE = 7,
// 8 -- Reserved
miDOUBLE = 9,
// 10 -- Reserved
// 11 -- Reserved
- miINT64 = 12,
- miUINT64 = 13,
- miMATRIX = 14,
+ miINT64 = 12,
+ miUINT64 = 13,
+ miMATRIX = 14,
miCOMPRESSED = 15,
- miUTF8 = 16,
- miUTF16 = 17,
- miUTF32 = 18
+ miUTF8 = 16,
+ miUTF16 = 17,
+ miUTF32 = 18
} mTypes_t;
typedef enum {
- mxCELL_CLASS = 1,
+ mxCELL_CLASS = 1,
mxSTRUCT_CLASS = 2,
mxOBJECT_CLASS = 3,
- mxCHAR_CLASS = 4,
+ mxCHAR_CLASS = 4,
mxSPARSE_CLASS = 5,
mxDOUBLE_CLASS = 6,
mxSINGLE_CLASS = 7,
- mxINT8_CLASS = 8,
- mxUINT8_CLASS = 9,
- mxINT16_CLASS = 10,
+ mxINT8_CLASS = 8,
+ mxUINT8_CLASS = 9,
+ mxINT16_CLASS = 10,
mxUINT16_CLASS = 11,
- mxINT32_CLASS = 12,
+ mxINT32_CLASS = 12,
mxUINT32_CLASS = 13,
- mxINT64_CLASS = 14,
+ mxINT64_CLASS = 14,
mxUINT64_CLASS = 15,
} mClasses_t;
typedef struct {
- char description[116];
+ char description[116];
uint32_t subsystem_offset_high;
uint32_t subsystem_offset_low;
uint16_t version;
@@ -53,36 +53,36 @@ typedef struct {
} mHeader_t;
typedef struct {
- uint32_t type;
- uint32_t size;
+ uint32_t type;
+ uint32_t size;
} mTag_t;
typedef struct {
- uint16_t type;
- uint16_t size;
+ uint16_t type;
+ uint16_t size;
} mSmallTag_t;
typedef struct {
- mTag_t tag;
- void *data;
+ mTag_t tag;
+ void *data;
} mData_t;
typedef struct {
- mSmallTag_t tag;
- uint32_t data;
+ mSmallTag_t tag;
+ uint32_t data;
} mSmallData_t;
typedef struct {
- uint8_t class;
- struct {
- uint8_t unused1 : 1;
- uint8_t logical : 1;
- uint8_t global : 1;
- uint8_t complex : 1;
- uint8_t unused2 : 4;
- };
- uint16_t unused3;
- uint32_t unused0;
+ uint8_t class;
+ struct {
+ uint8_t unused1 : 1;
+ uint8_t logical : 1;
+ uint8_t global : 1;
+ uint8_t complex : 1;
+ uint8_t unused2 : 4;
+ };
+ uint16_t unused3;
+ uint32_t unused0;
} mArrayFlags_t;
bool write_header(FILE *file);