From 6e87ac8f5501e5978f825d7b45c4966a4c9f4c6d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 8 Jun 2004 07:06:19 +0000 Subject: [PATCH] Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-385 src/xfaces.c (push_named_merge_point): Return 0 if a cycle is detected --- src/ChangeLog | 4 ++++ src/xfaces.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d4fc708db9d..d6750648fd5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-06-08 Miles Bader + + * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected. + 2004-06-07 Juanma Barranquero * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time) diff --git a/src/xfaces.c b/src/xfaces.c index afe352267d3..b6b4140e729 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -3169,8 +3169,8 @@ struct named_merge_point /* If a face merging cycle is detected for FACE_NAME, return 0, otherwise add NEW_NAMED_MERGE_POINT, which is initialized using - FACE_NAME, as the head of the linked list - pointed to by NAMED_MERGE_POINTS, and return 1. */ + FACE_NAME, as the head of the linked list pointed to by + NAMED_MERGE_POINTS, and return 1. */ static INLINE int push_named_merge_point (struct named_merge_point *new_named_merge_point, @@ -3181,7 +3181,7 @@ push_named_merge_point (struct named_merge_point *new_named_merge_point, for (prev = *named_merge_points; prev; prev = prev->prev) if (EQ (face_name, prev->face_name)) - break; + return 0; new_named_merge_point->face_name = face_name; new_named_merge_point->prev = *named_merge_points; -- 2.39.5