diff options
Diffstat (limited to 'src/fstring.h')
-rw-r--r-- | src/fstring.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h index 97959d3..c324e4a 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -11,6 +11,16 @@ | |||
11 | 11 | ||
12 | #define min( a, b ) ((a<b)?(a):(b)) | 12 | #define min( a, b ) ((a<b)?(a):(b)) |
13 | 13 | ||
14 | /* I borrowed this from someone who borrowed it from glib who borrowed it | ||
15 | * from... | ||
16 | */ | ||
17 | #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) | ||
18 | #define DEPRECATED __attribute__((__deprecated__)) | ||
19 | #else | ||
20 | #define DEPRECATED | ||
21 | #endif /* __GNUC__ */ | ||
22 | |||
23 | |||
14 | namespace Bu | 24 | namespace Bu |
15 | { | 25 | { |
16 | template< typename chr > | 26 | template< typename chr > |
@@ -286,6 +296,7 @@ namespace Bu | |||
286 | * (std::string compatability) Get a pointer to the string array. | 296 | * (std::string compatability) Get a pointer to the string array. |
287 | *@returns (chr *) The string data. | 297 | *@returns (chr *) The string data. |
288 | */ | 298 | */ |
299 | DEPRECATED | ||
289 | chr *c_str() | 300 | chr *c_str() |
290 | { | 301 | { |
291 | if( pFirst == NULL ) | 302 | if( pFirst == NULL ) |
@@ -300,6 +311,7 @@ namespace Bu | |||
300 | * (std::string compatability) Get a const pointer to the string array. | 311 | * (std::string compatability) Get a const pointer to the string array. |
301 | *@returns (const chr *) The string data. | 312 | *@returns (const chr *) The string data. |
302 | */ | 313 | */ |
314 | DEPRECATED | ||
303 | const chr *c_str() const | 315 | const chr *c_str() const |
304 | { | 316 | { |
305 | if( pFirst == NULL ) | 317 | if( pFirst == NULL ) |