uint8_t name_len; /* Lower 8 bits of name length */
union ext4_dir_en_internal in;
-
- uint8_t name[EXT4_DIRECTORY_FILENAME_LEN]; /* Entry name */
+ uint8_t name[]; /* Entry name */
};
/* Structures for indexed directory */
}
#endif
+
+#if CONFIG_USE_USER_MALLOC
+
+#define ext4_malloc ext4_user_malloc
+#define ext4_calloc ext4_user_calloc
+#define ext4_realloc ext4_user_realloc
+#define ext4_free ext4_user_free
+
+#else
+
+#define ext4_malloc malloc
+#define ext4_calloc calloc
+#define ext4_realloc realloc
+#define ext4_free free
+
+#endif
+
+
#endif /* EXT4_TYPES_H_ */
/**