diff options
Diffstat (limited to 'devel/hp48xgcc/files/patch-class+LKV+Str.h')
-rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+Str.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/hp48xgcc/files/patch-class+LKV+Str.h b/devel/hp48xgcc/files/patch-class+LKV+Str.h new file mode 100644 index 000000000000..4f7c63c6f4c1 --- /dev/null +++ b/devel/hp48xgcc/files/patch-class+LKV+Str.h @@ -0,0 +1,47 @@ +--- class/LKV/Str.h 3 Nov 2004 06:57:51 -0000 1.1 ++++ class/LKV/Str.h 20 Feb 2006 11:18:51 -0000 +@@ -68,6 +68,15 @@ + return !(operator>(rv)); + }; + ++ int operator<(const char * p) const; ++ inline int operator>=(const char * p) const { ++ return !(operator<(p)); ++ }; ++// int operator>(const char * p) const; ++// inline int operator<=(const char * p) const { ++// return !(operator>(p)); ++// }; ++ + // ====== casting ====== + + inline operator const char *() const { +@@ -78,11 +87,11 @@ + return (const unsigned char *) adr; + } + +- inline operator char *() { ++ inline operator char *() const { + return adr; + } + +- inline operator unsigned char *() { ++ inline operator unsigned char *() const { + return (unsigned char *) adr; + } + +@@ -168,6 +177,8 @@ + Str FtoStr(double val); + Str LtoStr(long); + ++#include <iostream.h> ++ + class ostream; + ostream & operator<< (ostream & o, const Str & s); + +@@ -180,4 +191,4 @@ + class BIstream; + BIstream & operator>> (BIstream & i, Str & s); + +-#endif Str_h ++#endif /* Str_h */ |