diff src/EmacsFrame.c @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents 3d8143fc88e1
children 374186f156d5
line wrap: on
line diff
--- a/src/EmacsFrame.c	Tue Oct 25 08:32:50 2005 +0000
+++ b/src/EmacsFrame.c	Tue Oct 25 11:16:49 2005 +0000
@@ -266,10 +266,10 @@
 }
 
 static void
-EmacsFrameInitialize (Widget UNUSED (request), Widget new,
+EmacsFrameInitialize (Widget UNUSED (request), Widget new_,
 		      ArgList UNUSED (unused1), Cardinal *UNUSED (unused2))
 {
-  EmacsFrame ew = (EmacsFrame)new;
+  EmacsFrame ew = (EmacsFrame)new_;
   struct frame *f = ew->emacs_frame.frame;
 
   if (!f)
@@ -380,8 +380,8 @@
 		     Widget new_widget, ArgList argv, Cardinal *argc)
 {
   EmacsFrame cur = (EmacsFrame) cur_widget;
-  EmacsFrame new = (EmacsFrame) new_widget;
-  struct frame *f = new->emacs_frame.frame;
+  EmacsFrame new_ = (EmacsFrame) new_widget;
+  struct frame *f = new_->emacs_frame.frame;
   in_resource_setting++;
   /* This function does not need to do much.  Pretty much everything
      interesting will get done in the resize method, which will
@@ -396,10 +396,10 @@
      called or XtSetValues() is called.
      */
 
-  if (cur->emacs_frame.iconic != new->emacs_frame.iconic &&
-      FRAME_X_TOP_LEVEL_FRAME_P (new->emacs_frame.frame))
-    x_wm_set_shell_iconic_p (FRAME_X_SHELL_WIDGET (new->emacs_frame.frame),
-			     new->emacs_frame.iconic);
+  if (cur->emacs_frame.iconic != new_->emacs_frame.iconic &&
+      FRAME_X_TOP_LEVEL_FRAME_P (new_->emacs_frame.frame))
+    x_wm_set_shell_iconic_p (FRAME_X_SHELL_WIDGET (new_->emacs_frame.frame),
+			     new_->emacs_frame.iconic);
 
       /* If we got here, then we were likely called as a result of
 	 the EditRes protocol, so go ahead and change scrollbar-width
@@ -407,74 +407,74 @@
 	 a change made to scrollbar-width etc. so don't do anything
 	 special. */
   if (cur->emacs_frame.internal_border_width !=
-      new->emacs_frame.internal_border_width)
+      new_->emacs_frame.internal_border_width)
     {
-      f->internal_border_width = new->emacs_frame.internal_border_width;
+      f->internal_border_width = new_->emacs_frame.internal_border_width;
       MARK_FRAME_SIZE_SLIPPED (f);
     }
 
 #ifdef HAVE_SCROLLBARS
       if (cur->emacs_frame.scrollbar_width !=
-	  new->emacs_frame.scrollbar_width)
+	  new_->emacs_frame.scrollbar_width)
 	Fadd_spec_to_specifier
 	  (Vscrollbar_width,
-	   make_int (new->emacs_frame.scrollbar_width),
+	   make_int (new_->emacs_frame.scrollbar_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.scrollbar_height !=
-	  new->emacs_frame.scrollbar_height)
+	  new_->emacs_frame.scrollbar_height)
 	Fadd_spec_to_specifier
 	  (Vscrollbar_height,
-	   make_int (new->emacs_frame.scrollbar_height),
+	   make_int (new_->emacs_frame.scrollbar_height),
 	   wrap_frame (f), Qnil, Qnil);
 #endif /* HAVE_SCROLLBARS */
 #ifdef HAVE_TOOLBARS
       if (cur->emacs_frame.top_toolbar_height !=
-	  new->emacs_frame.top_toolbar_height)
+	  new_->emacs_frame.top_toolbar_height)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_size[TOP_TOOLBAR],
-	   make_int (new->emacs_frame.top_toolbar_height),
+	   make_int (new_->emacs_frame.top_toolbar_height),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.bottom_toolbar_height !=
-	  new->emacs_frame.bottom_toolbar_height)
+	  new_->emacs_frame.bottom_toolbar_height)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_size[BOTTOM_TOOLBAR],
-	   make_int (new->emacs_frame.bottom_toolbar_height),
+	   make_int (new_->emacs_frame.bottom_toolbar_height),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.left_toolbar_width !=
-	  new->emacs_frame.left_toolbar_width)
+	  new_->emacs_frame.left_toolbar_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_size[LEFT_TOOLBAR],
-	   make_int (new->emacs_frame.left_toolbar_width),
+	   make_int (new_->emacs_frame.left_toolbar_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.right_toolbar_width !=
-	  new->emacs_frame.right_toolbar_width)
+	  new_->emacs_frame.right_toolbar_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_size[RIGHT_TOOLBAR],
-	   make_int (new->emacs_frame.right_toolbar_width),
+	   make_int (new_->emacs_frame.right_toolbar_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.top_toolbar_border_width !=
-	  new->emacs_frame.top_toolbar_border_width)
+	  new_->emacs_frame.top_toolbar_border_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_border_width[TOP_TOOLBAR],
-	   make_int (new->emacs_frame.top_toolbar_border_width),
+	   make_int (new_->emacs_frame.top_toolbar_border_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.bottom_toolbar_border_width !=
-	  new->emacs_frame.bottom_toolbar_border_width)
+	  new_->emacs_frame.bottom_toolbar_border_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_border_width[BOTTOM_TOOLBAR],
-	   make_int (new->emacs_frame.bottom_toolbar_border_width),
+	   make_int (new_->emacs_frame.bottom_toolbar_border_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.left_toolbar_border_width !=
-	  new->emacs_frame.left_toolbar_border_width)
+	  new_->emacs_frame.left_toolbar_border_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_border_width[LEFT_TOOLBAR],
-	   make_int (new->emacs_frame.left_toolbar_border_width),
+	   make_int (new_->emacs_frame.left_toolbar_border_width),
 	   wrap_frame (f), Qnil, Qnil);
       if (cur->emacs_frame.right_toolbar_border_width !=
-	  new->emacs_frame.right_toolbar_border_width)
+	  new_->emacs_frame.right_toolbar_border_width)
 	Fadd_spec_to_specifier
 	  (Vtoolbar_border_width[RIGHT_TOOLBAR],
-	   make_int (new->emacs_frame.right_toolbar_border_width),
+	   make_int (new_->emacs_frame.right_toolbar_border_width),
 	   wrap_frame (f), Qnil, Qnil);
 #endif /* HAVE_TOOLBARS */
 
@@ -485,8 +485,8 @@
      request might be issued as a result of hiding/showing menubar or
      changing toolbar placement, where we rely on relayout made by the
      callback, we go ahead and simulate such a call */
-  if (cur->core.width == new->core.width
-      && cur->core.height == new->core.height)
+  if (cur->core.width == new_->core.width
+      && cur->core.height == new_->core.height)
     {
       int i;
       for (i = 0; i < (int) *argc; i++)