This commit is contained in:
Markus Armbruster 2004-09-10 19:04:05 +00:00
parent d446db0ac1
commit 18fdb41bd0

View file

@ -30,10 +30,6 @@
* Known contributors to this file: * 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 "misc.h"
#include "match.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. * Compare A with B.
* Return ME_EXACT if they are the same. * Return ME_EXACT if they are the same, or A is a prefix of B
* Return ME_PARTIAL if A is a prefix of B. * followed by a space.
* Else return ME_MISMATCH. * Return ME_PARTIAL if A is a prefix of B not followed by a space.
* Note: May read B beyond the first space, but not beyond a * Else return ME_NOMATCH.
* terminating 0.
*/ */
int int
mineq(char *a, char *b) mineq(char *a, char *b)