changeset 28505:b5a7eb24964c

(compare_window_configurations): Signal an error if parameters C1 or C2 aren't window configurations.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 04 Apr 2000 21:07:45 +0000
parents bb2bb38512a3
children 3d557619ba03
files src/window.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Tue Apr 04 21:04:34 2000 +0000
+++ b/src/window.c	Tue Apr 04 21:07:45 2000 +0000
@@ -5081,6 +5081,11 @@
   struct Lisp_Vector *sw1, *sw2;
   int i;
 
+  if (!WINDOW_CONFIGURATIONP (c1))
+    wrong_type_argument (Qwindow_configuration_p, c1);
+  if (!WINDOW_CONFIGURATIONP (c2))
+    wrong_type_argument (Qwindow_configuration_p, c2);
+  
   d1 = (struct save_window_data *) XVECTOR (c1);
   d2 = (struct save_window_data *) XVECTOR (c2);
   sw1 = XVECTOR (d1->saved_windows);