comparison src/prefix.c @ 10262:7f487c725a90

[gaim-migrate @ 11406] the autopackage guys were nice enough to quicly fix this for me. basicly a function was getting #ifdef'd out if you compild with --disable-binreloc, that shouldn't have been. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Thu, 25 Nov 2004 20:48:16 +0000
parents b98f856e2e5e
children
comparison
equal deleted inserted replaced
10261:d4e9ff2edc4e 10262:7f487c725a90
284 * Returns: str. This return value must not be freed. 284 * Returns: str. This return value must not be freed.
285 * 285 *
286 * Store str in a thread-local variable and return str. The next 286 * Store str in a thread-local variable and return str. The next
287 * you run this function, that variable is freed too. 287 * you run this function, that variable is freed too.
288 * This function is created so you don't have to worry about freeing 288 * This function is created so you don't have to worry about freeing
289 * strings. 289 * strings. Just be careful about doing this sort of thing:
290 * 290 *
291 * Example: 291 * some_function( BR_DATADIR("/one.png"), BR_DATADIR("/two.png") )
292 *
293 * Examples:
292 * char *foo; 294 * char *foo;
293 * foo = thread_local_store (strdup ("hello")); --> foo == "hello" 295 * foo = br_thread_local_store (strdup ("hello")); --> foo == "hello"
294 * foo = thread_local_store (strdup ("world")); --> foo == "world"; "hello" is now freed. 296 * foo = br_thread_local_store (strdup ("world")); --> foo == "world"; "hello" is now freed.
295 */ 297 */
296 const char * 298 const char *
297 br_thread_local_store (char *str) 299 br_thread_local_store (char *str)
298 { 300 {
299 #if BR_PTHREADS 301 #if BR_PTHREADS