From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: 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 --- source/blender/blenloader/BLO_undofile.h | 35 +++++++++++++++++--------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'source/blender/blenloader/BLO_undofile.h') 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__ */ -- cgit v1.2.3