[Xcb-commit] xcb/proto: src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 21 06:25:58 UTC 2021


 src/glx.xml    |    2 ++
 src/xprint.xml |    8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 70ca65fa35c3760661b090bc4b2601daa7a099b8
Author: Peter Harris <pharris at opentext.com>
Date:   Tue Jan 19 16:39:55 2021 -0500

    glx,xprint: place explicit padding between lists
    
    Adjacent lists of char should not have any automatic padding added,
    since the alignment requirements for both are the same. Add explicit
    padding where it is required.
    
    Signed-off-by: Peter Harris <pharris at opentext.com>

diff --git a/src/glx.xml b/src/glx.xml
index 2e50aea..9abfc5b 100644
--- a/src/glx.xml
+++ b/src/glx.xml
@@ -491,6 +491,7 @@ The patch that fixed this server bug in X.org CVS is here:
 		<list type="char" name="gl_extension_string">
 			<fieldref>gl_str_len</fieldref>
 		</list>
+		<pad align="4" />
 		<list type="char" name="glx_extension_string">
 			<fieldref>glx_str_len</fieldref>
 		</list>
@@ -527,6 +528,7 @@ The patch that fixed this server bug in X.org CVS is here:
 		<list type="char" name="gl_extension_string">
 			<fieldref>gl_str_len</fieldref>
 		</list>
+		<pad align="4" />
 		<list type="char" name="glx_extension_string">
 			<fieldref>glx_str_len</fieldref>
 		</list>
diff --git a/src/xprint.xml b/src/xprint.xml
index f9af65f..fa3bb7f 100644
--- a/src/xprint.xml
+++ b/src/xprint.xml
@@ -102,7 +102,7 @@ authorization from the authors.
         <list type="STRING8" name="printer_name">
             <fieldref>printerNameLen</fieldref>
         </list>
-        <!-- There's some padding in here... -->
+        <pad align="4" />
         <list type="STRING8" name="locale">
             <fieldref>localeLen</fieldref>
         </list>
@@ -125,7 +125,7 @@ authorization from the authors.
         <list type="STRING8" name="printerName">
             <fieldref>printerNameLen</fieldref>
         </list>
-        <!-- padding -->
+        <pad align="4" />
         <list type="STRING8" name="locale">
             <fieldref>localeLen</fieldref>
         </list>
@@ -177,11 +177,11 @@ authorization from the authors.
         <list type="BYTE" name="data">
             <fieldref>len_data</fieldref>
         </list>
-        <!-- padding -->
+        <pad align="4" />
         <list type="STRING8" name="doc_format">
             <fieldref>len_fmt</fieldref>
         </list>
-        <!-- padding -->
+        <pad align="4" />
         <list type="STRING8" name="options">
             <fieldref>len_options</fieldref>
         </list>


More information about the xcb-commit mailing list