summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-10-05 16:53:21 -0700
committerPixel <pixel@nobis-crew.org>2009-10-05 16:53:21 -0700
commit008b684090a2c0f1ca6e1fb3a7c4587de1fb9bfd (patch)
tree75af51439a9cd22709f73c49ff3961ede908d7d6 /include
parent15c9b1d365b31e37e2163375c5a643179c46e6ff (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/BString.h5
-rw-r--r--include/Exceptions.h1
2 files changed, 2 insertions, 4 deletions
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 *);