summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-05 01:42:53 +0000
committerPixel <Pixel>2001-11-05 01:42:53 +0000
commit405648ccafb1e6f47741480cc44e114271d319c0 (patch)
treeefe0a891ead4275c963d54845a4d9d75fb76599b /lib
parent0f80b4e1f92f9b12115121e55619e6e810831d41 (diff)
Late night changes
Diffstat (limited to 'lib')
-rw-r--r--lib/Buffer.cc15
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/Regex.cc1
3 files changed, 17 insertions, 1 deletions
diff --git a/lib/Buffer.cc b/lib/Buffer.cc
index 57b1bf8..85445c6 100644
--- a/lib/Buffer.cc
+++ b/lib/Buffer.cc
@@ -53,3 +53,18 @@ bool Buffer::CanWrite() {
String Buffer::GetName() {
return "Buffer";
}
+
+Buffer Buffer::operator=(Buffer & b) {
+ if (b.buffer != buffer) {
+ free(buffer);
+ realsiz = b.realsiz;
+ ptr = b.ptr;
+ if ((bufsiz = b.bufsiz)) {
+ buffer = (char *) malloc(bufsiz);
+ memcpy(buffer, b.buffer, realsiz);
+ } else {
+ buffer = 0;
+ }
+ return *this;
+ }
+}
diff --git a/lib/Makefile.am b/lib/Makefile.am
index fe512b6..f5b1cfb 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -8,6 +8,6 @@ lib_LTLIBRARIES = libBaltisot.la
libBaltisot_la_SOURCES = Exceptions.cc Handle.cc Output.cc String.cc\
Socket.cc Input.cc HttpServ.cc Variables.cc Action.cc Menu.cc Message.cc\
Form.cc Confirm.cc Table.cc checkargs.c datecalc.c IRC.cc Task.cc Buffer.cc\
- CopyJob.cc ReadJob.cc
+ CopyJob.cc ReadJob.cc Regex.cc
libBaltisot_la_LDFLAGS = -release $(Baltisot_VERSION_INFO)
diff --git a/lib/Regex.cc b/lib/Regex.cc
index e69de29..2ef2c8e 100644
--- a/lib/Regex.cc
+++ b/lib/Regex.cc
@@ -0,0 +1 @@
+#include "Regex.h" \ No newline at end of file