From 18fdb41bd0d2f673bfacd985e57906d96f32c397 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 10 Sep 2004 19:04:05 +0000 Subject: [PATCH] Doc fix. --- src/lib/common/stmtch.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/lib/common/stmtch.c b/src/lib/common/stmtch.c index f94233e0..95c7c675 100644 --- a/src/lib/common/stmtch.c +++ b/src/lib/common/stmtch.c @@ -30,10 +30,6 @@ * Known contributors to this file: * */ -/* - * XXX These routines gamble that structures are all longword-aligned. - * If this is not true, they will BREAK! - */ #include "misc.h" #include "match.h" @@ -73,12 +69,11 @@ stmtch(char *needle, void *haystack, ptrdiff_t offs, size_t elt_size) } /* - * Compare A with B, up to the first space in B. - * Return ME_EXACT if they are the same. - * Return ME_PARTIAL if A is a prefix of B. - * Else return ME_MISMATCH. - * Note: May read B beyond the first space, but not beyond a - * terminating 0. + * Compare A with B. + * Return ME_EXACT if they are the same, or A is a prefix of B + * followed by a space. + * Return ME_PARTIAL if A is a prefix of B not followed by a space. + * Else return ME_NOMATCH. */ int mineq(char *a, char *b)