From 008b684090a2c0f1ca6e1fb3a7c4587de1fb9bfd Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 5 Oct 2009 16:53:21 -0700 Subject: Some sanity changes. - Making the whole library a little bit more threadsafe. - Truly deprecating the to_charp() call - let's see what will break now, and fix it. - Adding the "sleep" call to Lua, in ms. --- include/BString.h | 5 ++--- include/Exceptions.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/BString.h b/include/BString.h index 4bd1436..df295f6 100644 --- a/include/BString.h +++ b/include/BString.h @@ -78,8 +78,8 @@ class String : public Base { bool operator>=(const String &) const; bool operator<(const String &) const; bool operator>(const String &) const; - char operator[](size_t i) const; - char & operator[](size_t i); + const char & operator[](size_t i) const; + char & operator[](size_t i) throw (GeneralException); operator ugly_string() const; String & toupper(); String & tolower(); @@ -89,7 +89,6 @@ class String : public Base { private: String(int hs, char *); - static char t[]; char * str; size_t siz; }; diff --git a/include/Exceptions.h b/include/Exceptions.h index 52f51c4..ac46e28 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -98,7 +98,6 @@ class GeneralException : public Base { protected: GeneralException(); char * msg; - static char t[BUFSIZ]; }; char * xstrdup(const char *); -- cgit v1.2.3