summaryrefslogtreecommitdiff
path: root/print_render.c
AgeCommit message (Collapse)AuthorFilesLines
2012-10-02Refactor error printing to use common functionsAlan Coopersmith1-35/+5
All errors currently recognized by xscope fall into two forms, with or without a 32-bit value to print as a bad value, so use common implementations for those two forms so we can stop duplicating that code for every new extension-defined error. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02Handle big-requests when calculating request contents from length fieldAlan Coopersmith1-2/+2
Adds a getreqlen inline function to handle the big requests check. As noted in the comment, it must be called *before* the printreqlen macro does its own check, since printreqlen "fixes" the buf pointer when it's done to align all the remaining fields with their correct positions after skipping over the extra big requests 32-bit length field after the normal 16-bit length field. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21Convert to X.Org standard indentation & cleanup whitespaceAlan Coopersmith1-497/+513
Performed with util/modular/x-indent-all.sh, followed by manual fixups Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-21Convert Keith's personal license notice to X.Org standard MIT license noticeAlan Coopersmith1-20/+0
Acked-by: Keith Packard <keithp@keithp.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-07-20Convert sources from ISO 8859-1 to UTF-8Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-30Add const attributes to clear gcc -Wwrite-strings warningsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-30Sun's copyrights now belong to OracleAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-01-14Update Sun license notices to current X.Org standard formAlan Coopersmith1-21/+15
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-12Update Render extension decoding from protocol rev 0.5 to 0.11Alan Coopersmith1-115/+278
Filled in most, but not all, of the details for new & existing requests Corrected print-outs several existing requests Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-12Remove RCS IdsAlan Coopersmith1-2/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Clear many compiler & sparse warningsAlan Coopersmith1-18/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Make big requests support work without modifying bufferAlan Coopersmith1-27/+27
Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Constify many char pointersAlan Coopersmith1-40/+40
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-06Ansify prototypes and move extern declarations to header filesAlan Coopersmith1-10/+70
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-04Fix bugs in CompositeGlyphs decodingKeith Packard1-5/+6
2009-05-04Add lots more Render stuffKeith Packard1-0/+63
2009-05-04Add (some) support for BIG-REQUESTSKeith Packard1-10/+45
2009-05-04Add SHM decodingKeith Packard1-3/+13
2009-05-04Import xscope bits into keithp.com CVSKeith Packard1-0/+480