Comment unused BLI_rebase_path

This commit is contained in:
2014-05-19 00:00:59 +10:00
parent 2a49bf35f0
commit e8630bdccf
3 changed files with 10 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ void BLI_join_dirfile(char *__restrict string, const size_t maxlen,
const char *__restrict dir, const char *__restrict file) ATTR_NONNULL();
const char *BLI_path_basename(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
#if 0
typedef enum bli_rebase_state {
BLI_REBASE_NO_SRCDIR = 0,
BLI_REBASE_OK = 1,
@@ -104,6 +105,7 @@ typedef enum bli_rebase_state {
} bli_rebase_state;
int BLI_rebase_path(char *abs, size_t abs_len, char *rel, size_t rel_len, const char *base_dir, const char *src_dir, const char *dest_dir);
#endif
const char *BLI_last_slash(const char *string) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
int BLI_add_slash(char *string) ATTR_NONNULL();

View File

@@ -1950,6 +1950,8 @@ const char *BLI_path_basename(const char *path)
return filename ? filename + 1 : path;
}
/* UNUSED */
#if 0
/**
* Produce image export path.
*
@@ -2076,6 +2078,8 @@ int BLI_rebase_path(char *abs, size_t abs_len,
return BLI_REBASE_OK;
}
#endif
/**
* Returns pointer to the leftmost path separator in string. Not actually used anywhere.

View File

@@ -36,6 +36,10 @@
#ifdef RNA_RUNTIME
#ifdef ARRAY_SIZE
# undef ARRAY_SIZE
#endif
#define ARRAY_SIZE 3
#define DYNAMIC_ARRAY_SIZE 64
#define MARRAY_DIM [3][4][5]