From: Josh Triplett Date: Sat, 23 Sep 2006 19:22:22 +0000 (-0700) Subject: The Great XCB Renaming X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42b647d43a2f56469b6cbd1d48a9a79462a71350;p=free-sw%2Fxcb%2Fproto The Great XCB Renaming Rename API to follow a new naming convention: * XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES * xcb_functions_lowercase_with_underscores * xcb_types_lowercase_with_underscores_and_suffix_t * expand all abbreviations like "req", "rep", and "iter" Word boundaries for the names in the protocol descriptions fall: * Wherever the protocol descriptions already have an underscore * Between a lowercase letter and a subsequent uppercase letter * Before the last uppercase letter in a string of uppercase letters followed by a lowercase letter (such as in LSBFirst between LSB and First) * Before and after a string of digits (with exceptions for sized types like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h convention) Also fix up some particular naming issues: * Rename shape_op and shape_kind to drop the "shape_" prefix, since otherwise these types end up as xcb_shape_shape_{op,kind}_t. * Remove leading underscores from enums in the GLX protocol description, previously needed to ensure a word separator, but now redundant. This renaming breaks code written for the previous API naming convention. The scripts in XCB's tools directory will convert code written for the old API to use the new API; they work well enough that we used them to convert the non-program-generated code in XCB, and when run on the old program-generated code, they almost exactly reproduce the new program-generated code (modulo whitespace and bugs in the old code generator). Authors: Vincent Torri, Thomas Hunger, Josh Triplett --- diff --git a/src/extensions/glx.xml b/src/extensions/glx.xml index 2e22c77..ba5c253 100644 --- a/src/extensions/glx.xml +++ b/src/extensions/glx.xml @@ -198,27 +198,27 @@ The patch that fixed this server bug in X.org CVS is here: - 0x00000001 - 0x00000002 - 0x00000004 - 0x00000008 - 0x00000010 - 0x00000020 - 0x00000040 - 0x00000080 - 0x00000100 - 0x00000200 - 0x00000400 - 0x00000800 - 0x00001000 - 0x00002000 - 0x00004000 - 0x00008000 - 0x00010000 - 0x00020000 - 0x00040000 - 0x00080000 - 0x000ffffff + 0x00000001 + 0x00000002 + 0x00000004 + 0x00000008 + 0x00000010 + 0x00000020 + 0x00000040 + 0x00000080 + 0x00000100 + 0x00000200 + 0x00000400 + 0x00000800 + 0x00001000 + 0x00002000 + 0x00004000 + 0x00008000 + 0x00010000 + 0x00020000 + 0x00040000 + 0x00080000 + 0x000ffffff @@ -491,9 +491,9 @@ The patch that fixed this server bug in X.org CVS is here: - 0x1C00 - 0x1C01 - 0x1C02 + 0x1C00 + 0x1C01 + 0x1C02 diff --git a/src/extensions/shape.xml b/src/extensions/shape.xml index 36fb84b..8afbff7 100644 --- a/src/extensions/shape.xml +++ b/src/extensions/shape.xml @@ -27,10 +27,10 @@ authorization from the authors. --> - - + + - + @@ -39,7 +39,7 @@ authorization from the authors. - + @@ -47,7 +47,7 @@ authorization from the authors. - + @@ -66,8 +66,8 @@ authorization from the authors. - - + + @@ -77,8 +77,8 @@ authorization from the authors. - - + + @@ -87,9 +87,9 @@ authorization from the authors. - - - + + + @@ -98,7 +98,7 @@ authorization from the authors. - + @@ -137,7 +137,7 @@ authorization from the authors. - + diff --git a/src/extensions/xfixes.xml b/src/extensions/xfixes.xml index b82c63b..9bd14e3 100644 --- a/src/extensions/xfixes.xml +++ b/src/extensions/xfixes.xml @@ -153,7 +153,7 @@ authorization from the authors. - + @@ -235,7 +235,7 @@ authorization from the authors. - +