From 108cbdee49661d0c6e0a8980795c5593dc077d91 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 9 Oct 2000 19:54:42 +0000 Subject: Added a hack for Jotter on S5mx and some experimental stuff. --- lib/bufferstore.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/bufferstore.cc') diff --git a/lib/bufferstore.cc b/lib/bufferstore.cc index 7f2b49d..ea4bab6 100644 --- a/lib/bufferstore.cc +++ b/lib/bufferstore.cc @@ -64,7 +64,7 @@ void bufferStore::init() { len = 0; } -void bufferStore::init(const unsigned char*_buff, long _len) { +void bufferStore::init(const unsigned char *_buff, long _len) { checkAllocd(_len); start = 0; len = _len; @@ -95,8 +95,8 @@ unsigned int bufferStore::getDWord(long pos) const { (buff[pos+start+3] << 24); } -const char* bufferStore::getString(long pos) const { - return (const char*)buff + pos + start; +const char * bufferStore::getString(long pos) const { + return (const char *)buff + pos + start; } ostream &operator<<(ostream &s, const bufferStore &m) { @@ -137,19 +137,19 @@ void bufferStore::addByte(unsigned char cc) { buff[len++] = cc; } -void bufferStore::addString(const char* s) { +void bufferStore::addString(const char *s) { int l = strlen(s); checkAllocd(len + l); memcpy(&buff[len], s, l); len += l; } -void bufferStore::addStringT(const char* s) { +void bufferStore::addStringT(const char *s) { addString(s); addByte(0); } -void bufferStore::addBytes(const unsigned char* s, int l) { +void bufferStore::addBytes(const unsigned char *s, int l) { checkAllocd(len + l); memcpy(&buff[len], s, l); len += l; -- cgit v1.2.3