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/makesdna/DNA_text_types.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/makesdna/DNA_text_types.h')
-rw-r--r--source/blender/makesdna/DNA_text_types.h52
1 files changed, 26 insertions, 26 deletions
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__ */