summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2006-07-24 10:47:46 +0000
committerMichael Jennings <mej@kainx.org>2006-07-24 10:47:46 +0000
commite96ecdea4f104f45a3242f5bcb9d8d86ac850f6c (patch)
tree4e40bc92bfc4477dbcdc611d11714c01e68e2b32
parent1f7ded81f9871bb18c7bb0eefa9668f223a31899 (diff)
downloadlibast-e96ecdea4f104f45a3242f5bcb9d8d86ac850f6c.tar.gz
Mon Jul 24 01:47:44 2006 Michael Jennings (mej)
Fix header installation for new headers. ---------------------------------------------------------------------- SVN revision: 24155
-rw-r--r--ChangeLog4
-rw-r--r--include/libast/Makefile.am8
-rw-r--r--src/mbuff.c3
3 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 33d33f9..889e977 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -796,3 +796,7 @@ not tested.
Added dynamically-loadable module object class along with
corresponding unit tests. Appears to work fine.
----------------------------------------------------------------------
+Mon Jul 24 01:47:44 2006 Michael Jennings (mej)
+
+Fix header installation for new headers.
+----------------------------------------------------------------------
diff --git a/include/libast/Makefile.am b/include/libast/Makefile.am
index 1052bda..c83441b 100644
--- a/include/libast/Makefile.am
+++ b/include/libast/Makefile.am
@@ -1,9 +1,9 @@
# $Id: Makefile.am,v 1.6 2001/09/22 16:25:29 mej Exp $
-EXTRA_HEADERS = array.h avl_tree.h dlinked_list.h iterator_if.h \
-linked_list.h list_if.h map_if.h mbuff.h module.h obj.h objpair.h \
-regexp.h socket.h str.h sysdefs.h tok.h types.h url.h ustr.h \
-vector_if.h
+EXTRA_HEADERS = array.h avl_tree.h condition_if.h dlinked_list.h \
+iterator_if.h linked_list.h list_if.h map_if.h mbuff.h module.h \
+mutex_if.h obj.h objpair.h pthreads.h regexp.h socket.h str.h \
+sysdefs.h thread_if.h tok.h types.h url.h ustr.h vector_if.h
install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(includedir)/$(PACKAGE)
diff --git a/src/mbuff.c b/src/mbuff.c
index 2c8e0e4..69bd9bb 100644
--- a/src/mbuff.c
+++ b/src/mbuff.c
@@ -562,10 +562,9 @@ spif_memidx_t
spif_mbuff_rindex(spif_mbuff_t self, spif_uint8_t c)
{
spif_byteptr_t tmp;
- spif_memidx_t i;
ASSERT_RVAL(!SPIF_MBUFF_ISNULL(self), (SPIF_CAST(memidx) -1));
- for (tmp = self->buff + self->len, i = 0; (*tmp & (~c)) && (i < self->len); i++, tmp--);
+ for (tmp = self->buff + self->len - 1; (*tmp != c) && (tmp >= self->buff); tmp--);
if ((tmp == self->buff) && (*tmp != c)) {
return SPIF_CAST(memidx) (self->len);