From owner-cvs-all@FreeBSD.ORG Sat Feb 11 18:32:09 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA1A16A420; Sat, 11 Feb 2006 18:32:09 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90E2543D46; Sat, 11 Feb 2006 18:32:09 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BIW9C2083753; Sat, 11 Feb 2006 18:32:09 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BIW93M083752; Sat, 11 Feb 2006 18:32:09 GMT (envelope-from mux) Message-Id: <200602111832.k1BIW93M083752@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 18:32:09 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup keyword.c keyword.h misc.h proto.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 18:32:09 -0000 mux 2006-02-11 18:32:09 UTC FreeBSD projects repository Modified files: csup keyword.c keyword.h misc.h proto.c Log: - Rewrite handling of RCS keywords/aliases so that it works as intended. - Fix the keyword API so that a newly created keyword object has all the default RCS tags enabled. - Add a keyword_prepare() function to purge the disabled keywords from the list and compute the minimum and maximum length of a keyword, used as an optimisation in keyword_expand(). It might be interesting to have a hash table of the keywords to further optimize some day. - Use keyword_prepare() when done with the KEYALIAS, KEYON and KEYOFF commands. With the second fix, I can update files from an OpenBSD CVSup server without crashing. Revision Changes Path 1.25 +63 -59 projects/csup/keyword.c 1.8 +5 -4 projects/csup/keyword.h 1.22 +2 -1 projects/csup/misc.h 1.65 +2 -1 projects/csup/proto.c