diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-10-20 17:59:32 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-10-20 17:59:32 +0000 |
| commit | addca63bba3ddaf212e44cdf16e95038b0a5bf3e (patch) | |
| tree | 3aeded76d3104689485f6e66ba6a126c2bcf1287 /src/fstring.h | |
| parent | 640154682b767ec19cb9ac3972118c10bba8e780 (diff) | |
| download | libbu++-addca63bba3ddaf212e44cdf16e95038b0a5bf3e.tar.gz libbu++-addca63bba3ddaf212e44cdf16e95038b0a5bf3e.tar.bz2 libbu++-addca63bba3ddaf212e44cdf16e95038b0a5bf3e.tar.xz libbu++-addca63bba3ddaf212e44cdf16e95038b0a5bf3e.zip | |
Just marked Bu::FString::c_str as deprecated, don't use it, it'll go away later.
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 ) |
