nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] nmh/sbr ssequal.c


From: Joel Reicher
Subject: [Nmh-commits] nmh/sbr ssequal.c
Date: Mon, 24 Apr 2006 07:10:03 +0000

CVSROOT:        /sources/nmh
Module name:    nmh
Branch:         
Changes by:     Joel Reicher <address@hidden>   06/04/24 07:10:03

Modified files:
        sbr            : ssequal.c 

Log message:
        ssequal() does not check for a substring, but for a prefix, so added a
        comment to this effect. If this is sufficient, the function body should
        remain unchanged but the name and comments should be modified. If not,
        then the function needs to be corrected.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/ssequal.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: nmh/sbr/ssequal.c
diff -u nmh/sbr/ssequal.c:1.2 nmh/sbr/ssequal.c:1.3
--- nmh/sbr/ssequal.c:1.2       Tue Jul  2 22:09:14 2002
+++ nmh/sbr/ssequal.c   Mon Apr 24 07:10:03 2006
@@ -2,7 +2,7 @@
 /*
  * ssequal.c -- check if a string is a substring of another
  *
- * $Id: ssequal.c,v 1.2 2002/07/02 22:09:14 kenh Exp $
+ * $Id: ssequal.c,v 1.3 2006/04/24 07:10:03 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -12,6 +12,14 @@
 #include <h/mh.h>
 
 /*
+ * THIS CODE DOES NOT WORK AS ADVERTISED.
+ * It is actually checking if s1 is a PREFIX of s2.
+ * All calls to this function need to be checked to see
+ * if that needs to be changed. Prefix checking is cheaper, so
+ * should be kept if it's sufficient.
+ */
+
+/*
  * Check if s1 is a substring of s2.
  * If yes, then return 1, else return 0.
  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]