diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/libast/Makefile.am | 8 | ||||
-rw-r--r-- | src/mbuff.c | 3 |
3 files changed, 9 insertions, 6 deletions
@@ -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); |