|
From: <enl...@li...> - 2001-04-14 07:19:46
|
Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewd
Dir : e17/libs/ewd
Modified Files:
Makefile.am acconfig.h aclocal.m4 acsite.m4 config.h.in
configure.in mkinstalldirs
Log Message:
This stuff is not quite up to the level I was hoping to have before committing,
but smugg wanted to use some of the new list functions for EWL, so here it goes.
Currently, the list code is pretty good, added the means for adding a free
callback as well as a function for iterating through the list and executing a
specified function for each node's data. Also created single linked lists as
well as the double linked lists that were already in place. The single linked
lists have all the methods as the double except for moving to the previous node.
The AVL tree is also included in this commit and was fairly well tested under
another project I was working on. Unfortunately, I haven't had a chance to test
it thoroughly since modifying it for EWD.
Also, I've included the beginnings of attempts at making the data structures
threadsafe. This is optional and pthreads should not be required to be installed
to use the lib.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/Makefile.am,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- Makefile.am 2001/04/09 19:47:48 1.1.1.1
+++ Makefile.am 2001/04/14 07:19:16 1.2
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = src
+SUBDIRS = src test
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
config.h.in config.sub configure install-sh \
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/acconfig.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- acconfig.h 2001/04/09 19:47:48 1.1.1.1
+++ acconfig.h 2001/04/14 07:19:16 1.2
@@ -1,3 +1,4 @@
#undef PACKAGE_LOCALE_DIR
#undef PACKAGE_DATA_DIR
#undef PACKAGE_SOURCE_DIR
+#undef HAVE_PTHREADS
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/aclocal.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- aclocal.m4 2001/04/09 19:47:56 1.1.1.1
+++ aclocal.m4 2001/04/14 07:19:16 1.2
@@ -125,6 +125,24 @@
done<<>>dnl>>)
changequote([,]))])
+#serial 1
+# This test replaces the one in autoconf.
+# Currently this macro should have the same name as the autoconf macro
+# because gettext's gettext.m4 (distributed in the automake package)
+# still uses it. Otherwise, the use in gettext.m4 makes autoheader
+# give these diagnostics:
+# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
+# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
+
+undefine([AC_ISC_POSIX])
+
+AC_DEFUN([AC_ISC_POSIX],
+ [
+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
+ AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
+ ]
+)
+
# serial 1
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/acsite.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- acsite.m4 2001/04/09 19:47:59 1.1.1.1
+++ acsite.m4 2001/04/14 07:19:16 1.2
@@ -24,7 +24,7 @@
dnl (shamelessly stolen from gtk.m4 and then hacked around a fair amount)
dnl
dnl @author Angus Lees <gu...@cs...>
-dnl @version $Id: acsite.m4,v 1.1.1.1 2001/04/09 19:47:59 smugg Exp $
+dnl @version $Id: acsite.m4,v 1.2 2001/04/14 07:19:16 rbdpngn Exp $
AC_DEFUN(AC_PATH_GENERIC,
[dnl
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/config.h.in,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- config.h.in 2001/04/09 19:48:34 1.1.1.1
+++ config.h.in 2001/04/14 07:19:16 1.2
@@ -1,14 +1,15 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
-/* Define if you need to in order for stat and other things to work. */
-#undef _POSIX_SOURCE
-
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
#undef PACKAGE_LOCALE_DIR
#undef PACKAGE_DATA_DIR
#undef PACKAGE_SOURCE_DIR
+#undef HAVE_PTHREADS
+
+/* Define if you have the <pthread.h> header file. */
+#undef HAVE_PTHREAD_H
/* Name of package */
#undef PACKAGE
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/configure.in,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- configure.in 2001/04/09 19:47:48 1.1.1.1
+++ configure.in 2001/04/14 07:19:16 1.2
@@ -12,6 +12,8 @@
AM_WITH_DMALLOC
+AC_CHECK_HEADERS(pthread.h,AC_DEFINE_UNQUOTED(HAVE_PTHREADS, "1"),AC_MSG_ERROR([*** POSIX thread support not found ***]))
+
dnl Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
@@ -49,6 +51,7 @@
config.h
ewd-config
src/Makefile
+test/Makefile
], [
chmod +x ewd-config
]
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/mkinstalldirs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- mkinstalldirs 2001/04/09 19:49:16 1.1.1.1
+++ mkinstalldirs 2001/04/14 07:19:16 1.2
@@ -4,7 +4,7 @@
# Created: 1993-05-16
# Public domain
-# $Id: mkinstalldirs,v 1.1.1.1 2001/04/09 19:49:16 smugg Exp $
+# $Id: mkinstalldirs,v 1.2 2001/04/14 07:19:16 rbdpngn Exp $
errstatus=0
|