Mercurial > emacs
diff src/xfaces.c @ 55982:de4c259f651b
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
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 08 Jun 2004 07:06:19 +0000 |
parents | b9f354f2c61f |
children | 109c0a603543 8e09aff3715a |
line wrap: on
line diff
--- a/src/xfaces.c Tue Jun 08 00:36:04 2004 +0000 +++ b/src/xfaces.c Tue Jun 08 07:06:19 2004 +0000 @@ -3169,8 +3169,8 @@ /* 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 @@ 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;