Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenloader/BLO_undofile.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/blenloader/BLO_undofile.h')
-rw-r--r--source/blender/blenloader/BLO_undofile.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/source/blender/blenloader/BLO_undofile.h b/source/blender/blenloader/BLO_undofile.h
index 1b71081547a..0388b3f3520 100644
--- a/source/blender/blenloader/BLO_undofile.h
+++ b/source/blender/blenloader/BLO_undofile.h
@@ -28,36 +28,39 @@
struct Scene;
typedef struct {
- void *next, *prev;
- const char *buf;
- /** Size in bytes. */
- unsigned int size;
- /** When true, this chunk doesn't own the memory, it's shared with a previous #MemFileChunk */
- bool is_identical;
+ void *next, *prev;
+ const char *buf;
+ /** Size in bytes. */
+ unsigned int size;
+ /** When true, this chunk doesn't own the memory, it's shared with a previous #MemFileChunk */
+ bool is_identical;
} MemFileChunk;
typedef struct MemFile {
- ListBase chunks;
- size_t size;
+ ListBase chunks;
+ size_t size;
} MemFile;
typedef struct MemFileUndoData {
- char filename[1024]; /* FILE_MAX */
- MemFile memfile;
- size_t undo_size;
+ char filename[1024]; /* FILE_MAX */
+ MemFile memfile;
+ size_t undo_size;
} MemFileUndoData;
/* actually only used writefile.c */
-extern void memfile_chunk_add(
- MemFile *memfile, const char *buf, unsigned int size,
- MemFileChunk **compchunk_step);
+extern void memfile_chunk_add(MemFile *memfile,
+ const char *buf,
+ unsigned int size,
+ MemFileChunk **compchunk_step);
/* exports */
extern void BLO_memfile_free(MemFile *memfile);
extern void BLO_memfile_merge(MemFile *first, MemFile *second);
/* utilities */
-extern struct Main *BLO_memfile_main_get(struct MemFile *memfile, struct Main *bmain, struct Scene **r_scene);
+extern struct Main *BLO_memfile_main_get(struct MemFile *memfile,
+ struct Main *bmain,
+ struct Scene **r_scene);
extern bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename);
-#endif /* __BLO_UNDOFILE_H__ */
+#endif /* __BLO_UNDOFILE_H__ */