summaryrefslogtreecommitdiff
path: root/src/Convert.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith2023-02-251-1/+1
| | | | | | Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use memcpy() instead of memmove() when buffers are known not to overlapAlan Coopersmith2022-08-111-2/+2
| | | | | | | Most of these came from a mass bcopy() -> memmove() substitution in 1993 with a commit comment of "ANSIfication". Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* codespell-fixesThomas E. Dickey2022-06-141-1/+1
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* Cast via intptr_t when converting integers to pointersAlex Richardson2021-06-271-2/+2
| | | | | | | I found these by compiling libXt with the CHERI Clang compiler, as it warns about conversions from integer to pointer that do not use intptr_t. Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
* improved the script used for typedef-options with indent, updated indentationThomas E. Dickey2019-08-011-7/+7
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* remove the ARGUSED lines, which confuse GNU indent, ditto for LINTLIBRARYThomas E. Dickey2019-07-141-2/+0
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* indent'd like "x-indent.sh", but with a more complete set of typedefs - seeThomas E. Dickey2019-07-071-692/+725
| | | | | | https://github.com/ThomasDickey/cindent-snapshots/blob/master/scripts/xxx-profile Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* constify table passed to _XtTableAddConverter to reduce strict compiler warningsThomas E. Dickey2019-07-071-1/+1
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* use _X_UNUSED to quiet compiler warningsThomas E. Dickey2019-07-071-4/+4
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix most clang --analyze warnings about null-pointersThomas E. Dickey2019-05-181-2/+2
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fixes cppcheck "style" warnings (mostly variable-scope)Thomas E. Dickey2019-05-181-8/+7
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fixes for gcc warnings, no object-changeThomas E. Dickey2019-05-061-2/+3
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* use "const void *" rather than "char *" for memcmp, etcThomas E. Dickey2019-05-061-2/+2
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix gcc warnings when assigning into a bit-field by first masking the valueThomas E. Dickey2019-05-061-5/+5
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* This cleans up the "easy" warning fixes which can be made using myThomas E. Dickey2019-04-061-8/+8
| | | | | | | | | | | | | | | Regress script, comparing object-files before/after the edits: https://invisible-island.net/ansification/index.html https://invisible-island.net/scripts/readme.html The changes are casts, which quiet the gcc warnings about implicit conversion that my "gcc-normal" script would show. I avoided reformatting the code. The change reduces the number of gcc warnings from 769 to 163. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* resolv:shadows a previous localWalter Harms2019-01-081-1/+1
|
* avoid -Wformat errors from clang when building with -DDEBUGRin Okuyama2018-03-241-1/+1
| | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=99882 Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Revert "Avoid shadowing variables."Alan Coopersmith2013-07-101-1/+1
| | | | | This reverts commit 3919044bd7d3bcb85ce3425a43b8889a248a7542. Breaks programs such as xcalc & xlogo on multiple platforms.
* Avoid shadowing variables.Thomas Klausner2013-07-091-1/+1
| | | | | Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Purge cvs tags.Jesse Adkins2010-10-061-3/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Sun's copyrights belong to Oracle nowAlan Coopersmith2010-09-231-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update Sun license notices to current X.Org standard formAlan Coopersmith2010-01-141-12/+23
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* - conditionally include config.h in xc/lib/Xt sourcesXORG-6_8_99_8Søren Sandmann Pedersen2005-05-181-0/+3
| | | | - add build system for lib/Xt
* Convert lib/Xt to ANSI C (Thomas Dickey). Fixes for a few valgrind warningsXORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1Matthieu Herrb2005-02-211-102/+98
| | | | (Thomas Dickey).
* Merging XORG-CURRENT into trunkXACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich2004-04-231-1/+1
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-141-1/+1
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-031-1/+1
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-261-1/+1
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-261-1/+1
|
* XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16Kaleb Keithley2003-11-251-71/+1
|
* XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley2003-11-141-20/+9
|
* R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley2003-11-141-0/+1169