changeset 33:136f06b2ce62

Cursors.c: clang-format.
author ng0@n0.is
date Fri, 03 May 2019 19:02:12 +0000
parents 97864215624b
children 2596dc222f68
files Cursors.c
diffstat 1 files changed, 54 insertions(+), 62 deletions(-) [+]
line wrap: on
line diff
--- a/Cursors.c	Fri May 03 18:44:04 2019 +0000
+++ b/Cursors.c	Fri May 03 19:02:12 2019 +0000
@@ -1,6 +1,7 @@
 #ifndef lint
-static char *rcsid_StoreCursors_c = "$XConsortium: Cursors.c,v 1.6 88/09/06 17:27:45 jim Exp $";
-#endif	/* lint */
+static char *rcsid_StoreCursors_c =
+  "$XConsortium: Cursors.c,v 1.6 88/09/06 17:27:45 jim Exp $";
+#endif /* lint */
 
 /*
  * Copyright 1985, 1986, 1987, 1988, 1989 by the
@@ -42,7 +43,6 @@
  */
 
 
-
 /*
  * MODIFICATION HISTORY
  *
@@ -61,70 +61,62 @@
 /*
  * Store all the cursors into global variables.
  */
-int StoreCursors()
+int
+StoreCursors ()
 {
-    /*
-     * Main uwm cursor and movement cursor.
-     */
-    ArrowCrossCursor = XCreateFontCursor(dpy, XC_fleur);
-    if (ArrowCrossCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store ArrowCrossCursor.");
-    }
+        /*
+         * Main uwm cursor and movement cursor.
+         */
+        ArrowCrossCursor = XCreateFontCursor (dpy, XC_fleur);
+        if (ArrowCrossCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store ArrowCrossCursor.");
 
-    /*
-     * Text cursor used in icons.
-     */
-    TextCursor = XCreateFontCursor(dpy, XC_top_left_arrow);
-    if (TextCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store TextCursor.");
-    }
+        /*
+         * Text cursor used in icons.
+         */
+        TextCursor = XCreateFontCursor (dpy, XC_top_left_arrow);
+        if (TextCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store TextCursor.");
 
-    /*
-     * Icon cursor used to iconify windows.
-     */
-    IconCursor = XCreateFontCursor(dpy, XC_icon);	
-    if (IconCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store IconCursor.");
-    }
-
-    /*
-     * Menu cursor.
-     */
-    MenuCursor = XCreateFontCursor(dpy, XC_sb_left_arrow);
-    if (MenuCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store MenuCursor.");
-    }
+        /*
+         * Icon cursor used to iconify windows.
+         */
+        IconCursor = XCreateFontCursor (dpy, XC_icon);
+        if (IconCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store IconCursor.");
 
-    /*
-     * Left button main cursor.
-     */
-    LeftButtonCursor = XCreateFontCursor(dpy, XC_leftbutton);	
-    if (LeftButtonCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store LeftButtonCursor.");
-    }
+        /*
+         * Menu cursor.
+         */
+        MenuCursor = XCreateFontCursor (dpy, XC_sb_left_arrow);
+        if (MenuCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store MenuCursor.");
 
-    /*
-     * Middle button main cursor.
-     */
-    MiddleButtonCursor = XCreateFontCursor(dpy, XC_middlebutton);	
-    if (MiddleButtonCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store MiddleButtonCursor.");
-    }
+        /*
+         * Left button main cursor.
+         */
+        LeftButtonCursor = XCreateFontCursor (dpy, XC_leftbutton);
+        if (LeftButtonCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store LeftButtonCursor.");
 
-    /*
-     * Right button main cursor.
-     */
-    RightButtonCursor = XCreateFontCursor(dpy, XC_rightbutton);	
-    if (RightButtonCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store RightButtonCursor.");
-    }
+        /*
+         * Middle button main cursor.
+         */
+        MiddleButtonCursor = XCreateFontCursor (dpy, XC_middlebutton);
+        if (MiddleButtonCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store MiddleButtonCursor.");
 
-    /*
-     * Targer cursor used to identify a window for an action.
-     */
-    TargetCursor = XCreateFontCursor(dpy, XC_hand2);	
-    if (TargetCursor == FAILURE) {
-	Error("StoreCursors -> Unable to store TargetCursor.");
-    }
+        /*
+         * Right button main cursor.
+         */
+        RightButtonCursor = XCreateFontCursor (dpy, XC_rightbutton);
+        if (RightButtonCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store RightButtonCursor.");
+
+        /*
+         * Targer cursor used to identify a window for an action.
+         */
+        TargetCursor = XCreateFontCursor (dpy, XC_hand2);
+        if (TargetCursor == FAILURE)
+                Error ("StoreCursors -> Unable to store TargetCursor.");
 }
-