aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dw/Makefile.am1
-rw-r--r--test/dw/dw_anchors_test.cc3
-rw-r--r--test/dw/form.cc11
-rw-r--r--test/unit/Makefile.am9
4 files changed, 18 insertions, 6 deletions
diff --git a/test/dw/Makefile.am b/test/dw/Makefile.am
index 39bb8440..d3aff074 100644
--- a/test/dw/Makefile.am
+++ b/test/dw/Makefile.am
@@ -10,6 +10,7 @@ LDADD = \
$(top_builddir)/dw/libDw-fltk.a \
$(top_builddir)/dw/libDw-core.a \
$(top_builddir)/lout/liblout.a \
+ $(top_builddir)/dlib/libDlib.a \
@LIBFLTK_LIBS@ @LIBX11_LIBS@
check_PROGRAMS = \
diff --git a/test/dw/dw_anchors_test.cc b/test/dw/dw_anchors_test.cc
index e88cecb6..258acc0e 100644
--- a/test/dw/dw_anchors_test.cc
+++ b/test/dw/dw_anchors_test.cc
@@ -24,6 +24,7 @@
#include <FL/Fl_Window.H>
#include <FL/Fl.H>
+#include "dlib/dlib.h"
#include "dw/core.hh"
#include "dw/fltkcore.hh"
#include "dw/fltkviewport.hh"
@@ -111,7 +112,7 @@ int main(int argc, char **argv)
char buf[16];
strcpy (buf, numbers[i]);
buf[0] = lout::misc::AsciiToupper (buf[0]);
- buttonLabel[i] = strdup(buf);
+ buttonLabel[i] = dStrdup(buf);
Fl_Button *button = new Fl_Button(0, 20 * i, 50, 20, buttonLabel[i]);
button->callback (anchorCallback, (void*)(long)i);
button->when (FL_WHEN_RELEASE);
diff --git a/test/dw/form.cc b/test/dw/form.cc
index 82938a16..93c65d39 100644
--- a/test/dw/form.cc
+++ b/test/dw/form.cc
@@ -20,6 +20,7 @@
#include "form.hh"
+#include "dlib/dlib.h"
namespace form {
@@ -27,7 +28,7 @@ using namespace dw::core::ui;
Form::ResourceDecorator::ResourceDecorator (const char *name)
{
- this->name = strdup (name);
+ this->name = dStrdup (name);
}
Form::ResourceDecorator::~ResourceDecorator ()
@@ -58,7 +59,7 @@ Form::RadioButtonResourceDecorator::RadioButtonResourceDecorator
n++;
this->values = new const char*[n + 1];
for (int i = 0; i < n; i++)
- this->values[i] = strdup (values[i]);
+ this->values[i] = dStrdup (values[i]);
this->values[n] = 0;
}
@@ -108,7 +109,7 @@ Form::SelectionResourceDecorator::SelectionResourceDecorator
n++;
this->values = new const char*[n + 1];
for(int i = 0; i < n; i++)
- this->values[i] = strdup (values[i]);
+ this->values[i] = dStrdup (values[i]);
this->values[n] = 0;
}
@@ -153,8 +154,8 @@ Form::FormClickedReceiver::FormClickedReceiver (Form *form, const char *name,
const char *value)
{
this->form = form;
- this->name = strdup (name);
- this->value = strdup (value);
+ this->name = dStrdup (name);
+ this->value = dStrdup (value);
}
Form::FormClickedReceiver::~FormClickedReceiver ()
diff --git a/test/unit/Makefile.am b/test/unit/Makefile.am
index 67095f36..bcf3e3cb 100644
--- a/test/unit/Makefile.am
+++ b/test/unit/Makefile.am
@@ -27,8 +27,14 @@ EXTRA_DIST = \
hyph-de.pat
containers_SOURCES = containers.cc
+containers_LDADD = \
+ $(top_builddir)/lout/liblout.a \
+ $(top_builddir)/dlib/libDlib.a
notsosimplevector_SOURCES = notsosimplevector.cc
identity_SOURCES = identity.cc
+identity_LDADD = \
+ $(top_builddir)/lout/liblout.a \
+ $(top_builddir)/dlib/libDlib.a
cookies_SOURCES = cookies.c
cookies_LDADD = \
$(top_builddir)/dpip/libDpip.a \
@@ -36,6 +42,7 @@ cookies_LDADD = \
shapes_SOURCES = shapes.cc
shapes_LDADD = \
$(top_builddir)/dw/libDw-core.a \
+ $(top_builddir)/dlib/libDlib.a \
$(top_builddir)/lout/liblout.a
unicode_test_SOURCES = unicode_test.cc
unicode_test_LDADD = \
@@ -47,6 +54,7 @@ liang_LDADD = \
$(top_builddir)/dw/libDw-fltk.a \
$(top_builddir)/dw/libDw-core.a \
$(top_builddir)/lout/liblout.a \
+ $(top_builddir)/dlib/libDlib.a \
@LIBFLTK_LIBS@ @LIBX11_LIBS@
trie_SOURCES = trie.cc
trie_LDADD = \
@@ -54,4 +62,5 @@ trie_LDADD = \
$(top_builddir)/dw/libDw-fltk.a \
$(top_builddir)/dw/libDw-core.a \
$(top_builddir)/lout/liblout.a \
+ $(top_builddir)/dlib/libDlib.a \
@LIBFLTK_LIBS@ @LIBX11_LIBS@