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/makesdna/DNA_text_types.h | 52 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'source/blender/makesdna/DNA_text_types.h') diff --git a/source/blender/makesdna/DNA_text_types.h b/source/blender/makesdna/DNA_text_types.h index 856e17214a2..8dfaf95a10a 100644 --- a/source/blender/makesdna/DNA_text_types.h +++ b/source/blender/makesdna/DNA_text_types.h @@ -30,47 +30,47 @@ #include "DNA_ID.h" typedef struct TextLine { - struct TextLine *next, *prev; + struct TextLine *next, *prev; - char *line; - /** May be NULL if syntax is off or not yet formatted. */ - char *format; - /** Blen unused. */ - int len, blen; + char *line; + /** May be NULL if syntax is off or not yet formatted. */ + char *format; + /** Blen unused. */ + int len, blen; } TextLine; typedef struct Text { - ID id; + ID id; - char *name; - void *compiled; + char *name; + void *compiled; - int flags, nlines; + int flags, nlines; - ListBase lines; - TextLine *curl, *sell; - int curc, selc; + ListBase lines; + TextLine *curl, *sell; + int curc, selc; - double mtime; + double mtime; } Text; -#define TXT_TABSIZE 4 +#define TXT_TABSIZE 4 #define TXT_INIT_UNDO 1024 -#define TXT_MAX_UNDO (TXT_INIT_UNDO*TXT_INIT_UNDO) +#define TXT_MAX_UNDO (TXT_INIT_UNDO * TXT_INIT_UNDO) /* text flags */ enum { - TXT_ISDIRTY = 1 << 0, - TXT_ISMEM = 1 << 2, - TXT_ISEXT = 1 << 3, - /** Used by space handler scriptlinks. */ - TXT_ISSCRIPT = 1 << 4, + TXT_ISDIRTY = 1 << 0, + TXT_ISMEM = 1 << 2, + TXT_ISEXT = 1 << 3, + /** Used by space handler scriptlinks. */ + TXT_ISSCRIPT = 1 << 4, - TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */ - TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */ + TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */ + TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */ - /** Use space instead of tabs. */ - TXT_TABSTOSPACES = 1 << 10, + /** Use space instead of tabs. */ + TXT_TABSTOSPACES = 1 << 10, }; -#endif /* __DNA_TEXT_TYPES_H__ */ +#endif /* __DNA_TEXT_TYPES_H__ */ -- cgit v1.2.3