aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2004-06-08 07:06:19 +0000
committerMiles Bader2004-06-08 07:06:19 +0000
commit6e87ac8f5501e5978f825d7b45c4966a4c9f4c6d (patch)
tree0381ab034c19f27b8aa4944443e390910543bbfc /src
parent5f29a6c8cc0a8ef25998bd1432cd7091728c87a2 (diff)
downloademacs-6e87ac8f5501e5978f825d7b45c4966a4c9f4c6d.tar.gz
emacs-6e87ac8f5501e5978f825d7b45c4966a4c9f4c6d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfaces.c6
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 @@
12004-06-08 Miles Bader <miles@gnu.org>
2
3 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4
12004-06-07 Juanma Barranquero <lektu@terra.es> 52004-06-07 Juanma Barranquero <lektu@terra.es>
2 6
3 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time) 7 * 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
3169 3169
3170/* If a face merging cycle is detected for FACE_NAME, return 0, 3170/* If a face merging cycle is detected for FACE_NAME, return 0,
3171 otherwise add NEW_NAMED_MERGE_POINT, which is initialized using 3171 otherwise add NEW_NAMED_MERGE_POINT, which is initialized using
3172 FACE_NAME, as the head of the linked list 3172 FACE_NAME, as the head of the linked list pointed to by
3173 pointed to by NAMED_MERGE_POINTS, and return 1. */ 3173 NAMED_MERGE_POINTS, and return 1. */
3174 3174
3175static INLINE int 3175static INLINE int
3176push_named_merge_point (struct named_merge_point *new_named_merge_point, 3176push_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,
3181 3181
3182 for (prev = *named_merge_points; prev; prev = prev->prev) 3182 for (prev = *named_merge_points; prev; prev = prev->prev)
3183 if (EQ (face_name, prev->face_name)) 3183 if (EQ (face_name, prev->face_name))
3184 break; 3184 return 0;
3185 3185
3186 new_named_merge_point->face_name = face_name; 3186 new_named_merge_point->face_name = face_name;
3187 new_named_merge_point->prev = *named_merge_points; 3187 new_named_merge_point->prev = *named_merge_points;