diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-26 06:59:54 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-26 06:59:54 +0300 |
commit | c63a6d3057d78af778d4628e4839706a4cd8c2ea (patch) | |
tree | 6a0161ad9bb615845c360c5d327a9e2325edf6d5 /source/blender/blenkernel/BKE_text.h | |
parent | 0f583d9d604f45606e238f88eb2300eb75e492bb (diff) |
Cleanup: names in text functions
- Use filepath instead of file.
- Use relbase instead of relpath.
In both cases the new names are used more frequently throughout
exiting functions.
Diffstat (limited to 'source/blender/blenkernel/BKE_text.h')
-rw-r--r-- | source/blender/blenkernel/BKE_text.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index b05abb5a73c..2bc019be288 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -36,22 +36,22 @@ bool BKE_text_reload(struct Text *text); * \note text data-blocks have no real user but have 'fake user' enabled by default */ struct Text *BKE_text_load_ex(struct Main *bmain, - const char *file, - const char *relpath, + const char *filepath, + const char *relbase, bool is_internal); /** * Load a text file. * * \note Text data-blocks have no user by default, only the 'real user' flag. */ -struct Text *BKE_text_load(struct Main *bmain, const char *file, const char *relpath); +struct Text *BKE_text_load(struct Main *bmain, const char *filepath, const char *relbase); void BKE_text_clear(struct Text *text) ATTR_NONNULL(1); void BKE_text_write(struct Text *text, const char *str, int str_len) ATTR_NONNULL(1, 2); /** * \return codes: - * - 0 if file on disk is the same or Text is in memory only. - * - 1 if file has been modified on disk since last local edit. - * - 2 if file on disk has been deleted. + * - 0 if filepath on disk is the same or Text is in memory only. + * - 1 if filepath has been modified on disk since last local edit. + * - 2 if filepath on disk has been deleted. * - -1 is returned if an error occurs. */ int BKE_text_file_modified_check(struct Text *text); |