From da4f47d27aa395efdfc3063816186fbf6f45f1a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Thu, 8 Jan 1998 03:55:33 +0100
Subject: [PATCH] * _Xlib.pmod (error_codes): New array.

Rev: lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod:1.5
---
 lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod | 33 +++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod b/lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod
index b21b382af2..43a201a5ae 100644
--- a/lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod
+++ b/lib/modules/Protocols.pmod/X.pmod/_Xlib.pmod
@@ -125,4 +125,35 @@ array(string) event_types =
   "SelectionNotify",
   "ColormapNotify",
   "ClientMessage",
-  "MappingNotify" });
+  "MappingNotify"
+});
+
+array(string) error_codes =
+({
+  "Success",		/* everything's okay */
+  "Request",		/* bad request code */
+  "Value",		/* int parameter out of range */
+  "Window",		/* parameter not a Window */
+  "Pixmap",		/* parameter not a Pixmap */
+  "Atom",		/* parameter not an Atom */
+  "Cursor",		/* parameter not a Cursor */
+  "Font",		/* parameter not a Font */
+  "Match",		/* parameter mismatch */
+  "Drawable",		/* parameter not a Pixmap or Window */
+  "Access",		/* depending on context:
+			   - key/button already grabbed
+			   - attempt to free an illegal 
+			     cmap entry 
+			   - attempt to store into a read-only 
+			     color map entry.
+			   - attempt to modify the access control
+			     list from other than the local host.
+			     */
+  "Alloc",		/* insufficient resources */
+  "Color",		/* no such colormap */
+  "GC",			/* parameter not a GC */
+  "IDChoice",		/* choice not in range or already used */
+  "Name",		/* font or color name doesn't exist */
+  "Length",		/* Request length incorrect */
+  "Implementation"	/* server is defective */
+});
-- 
GitLab