Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mit/xorg/lib/xcb-util add build infrastructure for ...
details: https://anonhg.NetBSD.org/src/rev/47abacd0466f
branches: trunk
changeset: 756439:47abacd0466f
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 18 07:01:38 2010 +0000
description:
add build infrastructure for xcb-utils 0.3.6.
diffstat:
external/mit/xorg/lib/xcb-util/Makefile | 6 +
external/mit/xorg/lib/xcb-util/atom/Makefile | 9 +
external/mit/xorg/lib/xcb-util/atom/atoms.c | 836 ++++++++++++++++++++
external/mit/xorg/lib/xcb-util/aux/Makefile | 7 +
external/mit/xorg/lib/xcb-util/event/Makefile | 9 +
external/mit/xorg/lib/xcb-util/icccm/Makefile | 18 +
external/mit/xorg/lib/xcb-util/image/Makefile | 14 +
external/mit/xorg/lib/xcb-util/keysyms/Makefile | 9 +
external/mit/xorg/lib/xcb-util/property/Makefile | 14 +
external/mit/xorg/lib/xcb-util/render-util/Makefile | 16 +
external/mit/xorg/lib/xcb-util/reply/Makefile | 11 +
external/mit/xorg/lib/xcb-util/xcb-util.mk | 26 +
12 files changed, 975 insertions(+), 0 deletions(-)
diffs (truncated from 1023 to 300 lines):
diff -r 6527314c101c -r 47abacd0466f external/mit/xorg/lib/xcb-util/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/xcb-util/Makefile Sun Jul 18 07:01:38 2010 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:38 mrg Exp $
+
+SUBDIR= atom property event aux .WAIT \
+ reply image icccm keysyms render-util
+
+.include <bsd.subdir.mk>
diff -r 6527314c101c -r 47abacd0466f external/mit/xorg/lib/xcb-util/atom/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/xcb-util/atom/Makefile Sun Jul 18 07:01:38 2010 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2010/07/18 07:01:38 mrg Exp $
+
+XCBUTIL= atom
+
+SRCS= atoms.c
+
+SHLIB_MAJOR= 1
+
+.include "../xcb-util.mk"
diff -r 6527314c101c -r 47abacd0466f external/mit/xorg/lib/xcb-util/atom/atoms.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/xcb-util/atom/atoms.c Sun Jul 18 07:01:38 2010 +0000
@@ -0,0 +1,836 @@
+/* C code produced by gperf version 3.0.4 */
+/* Command-line: gperf --output-file atoms.c atoms.gperf */
+/* Computed positions: -k'3,6,9,$' */
+
+#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
+ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
+ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
+ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
+ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
+ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
+ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
+ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
+ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
+ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
+ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
+ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
+ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
+ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
+ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
+ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
+ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
+ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
+ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
+ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
+ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
+ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
+ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
+/* The character set is not based on ISO-646. */
+error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf%gnu.org@localhost>."
+#endif
+
+#line 1 "atoms.gperf"
+
+
+/* Rely on vasprintf (GNU extension) instead of vsnprintf if
+ possible... */
+#ifdef HAVE_VASPRINTF
+#define _GNU_SOURCE
+#include <stdio.h>
+#endif
+
+#include <xcb/xcb.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include "xcb_atom.h"
+
+const xcb_atom_t PRIMARY = 1;
+const xcb_atom_t SECONDARY = 2;
+const xcb_atom_t ARC = 3;
+const xcb_atom_t ATOM = 4;
+const xcb_atom_t BITMAP = 5;
+const xcb_atom_t CARDINAL = 6;
+const xcb_atom_t COLORMAP = 7;
+const xcb_atom_t CURSOR = 8;
+const xcb_atom_t CUT_BUFFER0 = 9;
+const xcb_atom_t CUT_BUFFER1 = 10;
+const xcb_atom_t CUT_BUFFER2 = 11;
+const xcb_atom_t CUT_BUFFER3 = 12;
+const xcb_atom_t CUT_BUFFER4 = 13;
+const xcb_atom_t CUT_BUFFER5 = 14;
+const xcb_atom_t CUT_BUFFER6 = 15;
+const xcb_atom_t CUT_BUFFER7 = 16;
+const xcb_atom_t DRAWABLE = 17;
+const xcb_atom_t FONT = 18;
+const xcb_atom_t INTEGER = 19;
+const xcb_atom_t PIXMAP = 20;
+const xcb_atom_t POINT = 21;
+const xcb_atom_t RECTANGLE = 22;
+const xcb_atom_t RESOURCE_MANAGER = 23;
+const xcb_atom_t RGB_COLOR_MAP = 24;
+const xcb_atom_t RGB_BEST_MAP = 25;
+const xcb_atom_t RGB_BLUE_MAP = 26;
+const xcb_atom_t RGB_DEFAULT_MAP = 27;
+const xcb_atom_t RGB_GRAY_MAP = 28;
+const xcb_atom_t RGB_GREEN_MAP = 29;
+const xcb_atom_t RGB_RED_MAP = 30;
+const xcb_atom_t STRING = 31;
+const xcb_atom_t VISUALID = 32;
+const xcb_atom_t WINDOW = 33;
+const xcb_atom_t WM_COMMAND = 34;
+const xcb_atom_t WM_HINTS = 35;
+const xcb_atom_t WM_CLIENT_MACHINE = 36;
+const xcb_atom_t WM_ICON_NAME = 37;
+const xcb_atom_t WM_ICON_SIZE = 38;
+const xcb_atom_t WM_NAME = 39;
+const xcb_atom_t WM_NORMAL_HINTS = 40;
+const xcb_atom_t WM_SIZE_HINTS = 41;
+const xcb_atom_t WM_ZOOM_HINTS = 42;
+const xcb_atom_t MIN_SPACE = 43;
+const xcb_atom_t NORM_SPACE = 44;
+const xcb_atom_t MAX_SPACE = 45;
+const xcb_atom_t END_SPACE = 46;
+const xcb_atom_t SUPERSCRIPT_X = 47;
+const xcb_atom_t SUPERSCRIPT_Y = 48;
+const xcb_atom_t SUBSCRIPT_X = 49;
+const xcb_atom_t SUBSCRIPT_Y = 50;
+const xcb_atom_t UNDERLINE_POSITION = 51;
+const xcb_atom_t UNDERLINE_THICKNESS = 52;
+const xcb_atom_t STRIKEOUT_ASCENT = 53;
+const xcb_atom_t STRIKEOUT_DESCENT = 54;
+const xcb_atom_t ITALIC_ANGLE = 55;
+const xcb_atom_t X_HEIGHT = 56;
+const xcb_atom_t QUAD_WIDTH = 57;
+const xcb_atom_t WEIGHT = 58;
+const xcb_atom_t POINT_SIZE = 59;
+const xcb_atom_t RESOLUTION = 60;
+const xcb_atom_t COPYRIGHT = 61;
+const xcb_atom_t NOTICE = 62;
+const xcb_atom_t FONT_NAME = 63;
+const xcb_atom_t FAMILY_NAME = 64;
+const xcb_atom_t FULL_NAME = 65;
+const xcb_atom_t CAP_HEIGHT = 66;
+const xcb_atom_t WM_CLASS = 67;
+const xcb_atom_t WM_TRANSIENT_FOR = 68;
+#line 93 "atoms.gperf"
+struct atom_map { int name; xcb_atom_t value; };
+#include <string.h>
+/* maximum key range = 146, duplicates = 0 */
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static unsigned int
+hash (str, len)
+ register const char *str;
+ register unsigned int len;
+{
+ static const unsigned char asso_values[] =
+ {
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 75, 70,
+ 65, 60, 40, 35, 20, 5, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 35, 0, 45, 15, 0,
+ 150, 50, 0, 5, 150, 150, 15, 35, 0, 40,
+ 5, 150, 10, 15, 0, 25, 150, 20, 70, 40,
+ 55, 150, 150, 150, 150, 15, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 150, 150, 150
+ };
+ register int hval = len;
+
+ switch (hval)
+ {
+ default:
+ hval += asso_values[(unsigned char)str[8]];
+ /*FALLTHROUGH*/
+ case 8:
+ case 7:
+ case 6:
+ hval += asso_values[(unsigned char)str[5]];
+ /*FALLTHROUGH*/
+ case 5:
+ case 4:
+ case 3:
+ hval += asso_values[(unsigned char)str[2]];
+ break;
+ }
+ return hval + asso_values[(unsigned char)str[len - 1]];
+}
+
+struct stringpool_t
+ {
+ char stringpool_str4[sizeof("FONT")];
+ char stringpool_str6[sizeof("NOTICE")];
+ char stringpool_str9[sizeof("FONT_NAME")];
+ char stringpool_str10[sizeof("POINT")];
+ char stringpool_str11[sizeof("WEIGHT")];
+ char stringpool_str14[sizeof("MIN_SPACE")];
+ char stringpool_str15[sizeof("CAP_HEIGHT")];
+ char stringpool_str16[sizeof("BITMAP")];
+ char stringpool_str17[sizeof("INTEGER")];
+ char stringpool_str19[sizeof("COPYRIGHT")];
+ char stringpool_str24[sizeof("FULL_NAME")];
+ char stringpool_str26[sizeof("STRIKEOUT_ASCENT")];
+ char stringpool_str27[sizeof("STRIKEOUT_DESCENT")];
+ char stringpool_str28[sizeof("RGB_GREEN_MAP")];
+ char stringpool_str29[sizeof("END_SPACE")];
+ char stringpool_str32[sizeof("RGB_BEST_MAP")];
+ char stringpool_str33[sizeof("CARDINAL")];
+ char stringpool_str36[sizeof("CURSOR")];
+ char stringpool_str37[sizeof("WM_CLIENT_MACHINE")];
+ char stringpool_str38[sizeof("WM_HINTS")];
+ char stringpool_str41[sizeof("CUT_BUFFER7")];
+ char stringpool_str42[sizeof("RGB_GRAY_MAP")];
+ char stringpool_str43[sizeof("DRAWABLE")];
+ char stringpool_str45[sizeof("RGB_DEFAULT_MAP")];
+ char stringpool_str46[sizeof("WINDOW")];
+ char stringpool_str47[sizeof("RGB_BLUE_MAP")];
+ char stringpool_str48[sizeof("UNDERLINE_POSITION")];
+ char stringpool_str51[sizeof("RGB_RED_MAP")];
+ char stringpool_str53[sizeof("VISUALID")];
+ char stringpool_str54[sizeof("RECTANGLE")];
+ char stringpool_str56[sizeof("CUT_BUFFER6")];
+ char stringpool_str57[sizeof("WM_NAME")];
+ char stringpool_str58[sizeof("X_HEIGHT")];
+ char stringpool_str61[sizeof("SUBSCRIPT_Y")];
+ char stringpool_str62[sizeof("PRIMARY")];
+ char stringpool_str63[sizeof("COLORMAP")];
+ char stringpool_str64[sizeof("UNDERLINE_THICKNESS")];
+ char stringpool_str65[sizeof("QUAD_WIDTH")];
+ char stringpool_str66[sizeof("RESOURCE_MANAGER")];
+ char stringpool_str67[sizeof("WM_ICON_NAME")];
+ char stringpool_str68[sizeof("RGB_COLOR_MAP")];
+ char stringpool_str70[sizeof("WM_NORMAL_HINTS")];
+ char stringpool_str71[sizeof("CUT_BUFFER5")];
+ char stringpool_str73[sizeof("WM_CLASS")];
+ char stringpool_str75[sizeof("WM_COMMAND")];
+ char stringpool_str76[sizeof("CUT_BUFFER4")];
+ char stringpool_str78[sizeof("SUPERSCRIPT_Y")];
+ char stringpool_str79[sizeof("ATOM")];
+ char stringpool_str80[sizeof("NORM_SPACE")];
+ char stringpool_str81[sizeof("WM_TRANSIENT_FOR")];
+ char stringpool_str82[sizeof("WM_ICON_SIZE")];
+ char stringpool_str83[sizeof("WM_ZOOM_HINTS")];
+ char stringpool_str84[sizeof("MAX_SPACE")];
+ char stringpool_str85[sizeof("POINT_SIZE")];
+ char stringpool_str86[sizeof("PIXMAP")];
+ char stringpool_str90[sizeof("RESOLUTION")];
+ char stringpool_str91[sizeof("SUBSCRIPT_X")];
+ char stringpool_str92[sizeof("ITALIC_ANGLE")];
+ char stringpool_str93[sizeof("ARC")];
+ char stringpool_str96[sizeof("CUT_BUFFER3")];
+ char stringpool_str98[sizeof("WM_SIZE_HINTS")];
+ char stringpool_str101[sizeof("CUT_BUFFER2")];
+ char stringpool_str106[sizeof("CUT_BUFFER1")];
+ char stringpool_str108[sizeof("SUPERSCRIPT_X")];
+ char stringpool_str111[sizeof("CUT_BUFFER0")];
+ char stringpool_str116[sizeof("STRING")];
+ char stringpool_str121[sizeof("FAMILY_NAME")];
+ char stringpool_str149[sizeof("SECONDARY")];
+ };
+static const struct stringpool_t stringpool_contents =
+ {
+ "FONT",
+ "NOTICE",
+ "FONT_NAME",
+ "POINT",
+ "WEIGHT",
+ "MIN_SPACE",
+ "CAP_HEIGHT",
+ "BITMAP",
+ "INTEGER",
+ "COPYRIGHT",
+ "FULL_NAME",
+ "STRIKEOUT_ASCENT",
+ "STRIKEOUT_DESCENT",
+ "RGB_GREEN_MAP",
+ "END_SPACE",
+ "RGB_BEST_MAP",
+ "CARDINAL",
+ "CURSOR",
+ "WM_CLIENT_MACHINE",
Home |
Main Index |
Thread Index |
Old Index