src/prefix.h

changeset 10251
6ee4aa069e27
parent 10245
81654bee87e8
child 10262
19c34497cd7e
equal deleted inserted replaced
10250:9a0f00083ec1 10251:6ee4aa069e27
102 */ 102 */
103 103
104 #define br_strcat BR_NAMESPACE(br_strcat) 104 #define br_strcat BR_NAMESPACE(br_strcat)
105 #define br_extract_dir BR_NAMESPACE(br_extract_dir) 105 #define br_extract_dir BR_NAMESPACE(br_extract_dir)
106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) 106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix)
107 #define br_set_locate_fallback_func BR_NAMESPACE(br_set_locate_fallback_func)
107 108
108 #ifndef BR_NO_MACROS 109 #ifndef BR_NO_MACROS
109 /* Convenience functions for concatenating paths */ 110 /* Convenience functions for concatenating paths */
110 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) 111 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix)))
111 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) 112 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix)))
122 #endif 123 #endif
123 124
124 char *br_strcat (const char *str1, const char *str2); 125 char *br_strcat (const char *str1, const char *str2);
125 char *br_extract_dir (const char *path); 126 char *br_extract_dir (const char *path);
126 char *br_extract_prefix(const char *path); 127 char *br_extract_prefix(const char *path);
128 typedef char *(*br_locate_fallback_func) (void *symbol, void *data);
129 void br_set_locate_fallback_func (br_locate_fallback_func func, void *data);
127 130
128 131
129 #ifdef __cplusplus 132 #ifdef __cplusplus
130 } 133 }
131 #endif /* __cplusplus */ 134 #endif /* __cplusplus */

mercurial