~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to .pc/0005-locales_directory_install.patch/source/blender/blenlib/BLI_path_util.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
extern "C" {
36
36
#endif
37
37
 
 
38
#include "BLI_compiler_attrs.h"
 
39
 
38
40
struct ListBase;
39
41
struct direntry;
40
42
 
89
91
void BLI_split_dirfile(const char *string, char *dir, char *file, const size_t dirlen, const size_t filelen);
90
92
void BLI_split_dir_part(const char *string, char *dir, const size_t dirlen);
91
93
void BLI_split_file_part(const char *string, char *file, const size_t filelen);
92
 
void BLI_join_dirfile(char *string, const size_t maxlen, const char *dir, const char *file);
 
94
void BLI_path_append(char *__restrict dst, const size_t maxlen,
 
95
                     const char *__restrict file) ATTR_NONNULL();
 
96
void BLI_join_dirfile(char *__restrict string, const size_t maxlen,
 
97
                      const char *__restrict dir, const char *__restrict file) ATTR_NONNULL();
93
98
const char *BLI_path_basename(const char *path);
94
99
 
95
100
typedef enum bli_rebase_state {
111
116
bool BLI_testextensie_glob(const char *str, const char *ext_fnmatch);
112
117
bool BLI_replace_extension(char *path, size_t maxlen, const char *ext);
113
118
bool BLI_ensure_extension(char *path, size_t maxlen, const char *ext);
 
119
bool BLI_ensure_filename(char *filepath, size_t maxlen, const char *filename);
114
120
void BLI_uniquename(struct ListBase *list, void *vlink, const char *defname, char delim, short name_offs, short len);
115
121
bool BLI_uniquename_cb(bool (*unique_check)(void *arg, const char *name),
116
122
                       void *arg, const char * defname, char delim, char *name, short name_len);
120
126
int BLI_split_name_num(char *left, int *nr, const char *name, const char delim);
121
127
 
122
128
/* make sure path separators conform to system one */
123
 
void BLI_clean(char *path)
124
 
#ifdef __GNUC__
125
 
__attribute__((nonnull(1)))
126
 
#endif
127
 
;
 
129
void BLI_clean(char *path) ATTR_NONNULL();
128
130
 
129
131
/**
130
132
 * dir can be any input, like from buttons, and this function
170
172
#  define BLI_path_ncmp strncmp
171
173
#endif
172
174
 
173
 
void BLI_char_switch(char *string, char from, char to)
174
 
#ifdef __GNUC__
175
 
__attribute__((nonnull(1)))
176
 
#endif
177
 
;
 
175
void BLI_char_switch(char *string, char from, char to) ATTR_NONNULL();
178
176
 
179
177
/* Initialize path to program executable */
180
178
void BLI_init_program_path(const char *argv0);