summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* XmuReadBitmapDataFromFile: set close-on-exec when opening filesHEADmasterAlan Coopersmith2023-03-271-1/+7
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/reallocarray.cAlan Coopersmith2023-03-273-0/+236
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToShap.cAlan Coopersmith2023-03-272-1/+202
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToOrnt.cAlan Coopersmith2023-03-272-1/+170
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToLong.cAlan Coopersmith2023-03-272-1/+171
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToJust.cAlan Coopersmith2023-03-272-1/+170
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToGrav.cAlan Coopersmith2023-03-272-1/+205
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/StrToBS.cAlan Coopersmith2023-03-272-1/+173
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/Lower.cAlan Coopersmith2023-03-272-1/+242
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/CursorName.cAlan Coopersmith2023-03-272-1/+143
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Add simple test cases for functions in src/RdBitF.cAlan Coopersmith2023-03-275-1/+210
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* test: Convert test code to use glib test helpersAlan Coopersmith2023-03-275-23/+69
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith2023-03-061-2/+3
| | | | | | | | | | | | | | | | | AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:13: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:13: You should run autoupdate. aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from... configure.ac:13: the top level libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* src/Makefile.am: Remove hardcoded -D_BSD_SOURCEAlan Coopersmith2023-02-161-1/+1
| | | | | | | | | | | Not needed now that AC_USE_SYSTEM_EXTENSIONS is in configure.ac Avoids compiler warning of: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* configure: raise minimum autoconf requirement to 2.70Alan Coopersmith2023-02-162-5/+6
| | | | | | | | Needed for builds on NetBSD to work correctly, since it depends on AC_USE_SYSTEM_EXTENSIONS defining _OPENBSD_SOURCE to expose the prototype for reallocarray() in the system headers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* libXmu 1.1.4libXmu-1.1.4Alan Coopersmith2022-10-171-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add .git-blame-ignore-revs to hide whitespace commits from git blameAlan Coopersmith2022-09-171-0/+18
| | | | | | | | | To use this in your local repo clone, you will need to either run `git blame --ignore-revs-file .git-blame-ignore-revs` or set it permanently with `git config blame.ignoreRevsFile .git-blame-ignore-revs` Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add simple test cases for _XEditRes{Put,Get}* functionsAlan Coopersmith2022-09-134-1/+131
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* _XEditResGet32: Fix casts to avoid unexpected sign extension in 64-bitAlan Coopersmith2022-09-131-1/+1
| | | | | | | Like _XEditResGet16 we need to cast to our destination type, not the source type, before combining the upper & lower halves. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Handle -Wmissing-field-initializers warningsAlan Coopersmith2022-09-131-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Handle -Wsign-compare warningsAlan Coopersmith2022-09-133-4/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Clear some more -Wdiscarded-qualifiers warningsAlan Coopersmith2022-09-132-4/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use _CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith2022-09-134-5/+5
| | | | | | Clears 11 out of 58 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use memcpy instead of memmove when buffers are known not to overlapAlan Coopersmith2022-09-132-4/+3
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* More typo fixesAlan Coopersmith2022-09-137-17/+17
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* get_os_name: Use autoconf to detect uname() supportAlan Coopersmith2022-08-212-26/+11
| | | | | | Stop maintaining a list of #ifdefs for ancient platforms Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* XmuGetHostname: Drop support for ancient USG systemsAlan Coopersmith2022-08-211-19/+0
| | | | | | | | USG was defined for a handful of pre-SVR4 systems based on AT&T's Unix System Group releases in the old imake configs and has never been defined in X11R7 modular builds. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove support for XA_IP_ADDRESSMatthieu Herrb2022-08-213-33/+3
| | | | | | | | | | | | | This code has a number of issues: - It doesn't support IPv6 https://bugs.freedesktop.org/show_bug.cgi?id=7611 - The IP address is set by the selection owner so it doesn't bring any security for anyone querying the selection - The extra DNS query that it does is problematic in some sandboxed environments (like OpenBSD's pledge https://marc.info/?l=openbsd-bugs&m=157842725819911&w=2) Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix OWNER_OS in XmuConvertStandardSelection() on LinuxMatthieu Herrb2022-08-211-0/+3
| | | | | | It used to return BSD Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Unifdef SYSVNETMatthieu Herrb2022-08-211-9/+0
| | | | | | | This has not been set by configure since the switch to autotools. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Convert code to use Xmumallocarray() & reallocarray()Alan Coopersmith2022-08-063-13/+22
| | | | | | Provides automatic integer overflow checking in allocation size calculations Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Import reallocarray() from libX11 (originally from OpenBSD)Alan Coopersmith2022-08-065-1/+113
| | | | | | | | | Wrapper for realloc() that checks for overflow when multiplying arguments together, so we don't have to add overflow checks to every single call. For documentation on usage, see: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove unnnecessary casts from *alloc() and free() callsAlan Coopersmith2022-08-069-48/+43
| | | | | | These are not needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* COPYING: correct source file path namesAlan Coopersmith2022-08-061-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: add a basic build testAlan Coopersmith2022-07-171-0/+99
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix spelling/wording issuesAlan Coopersmith2022-07-1710-37/+37
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Build xz tarballs instead of bzip2Alan Coopersmith2022-07-171-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* libXmu 1.1.3libXmu-1.1.3Alan Coopersmith2019-03-161-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update configure.ac bug URL for gitlab migrationAlan Coopersmith2018-12-071-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update README for gitlab migrationAlan Coopersmith2018-11-192-12/+9
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Apply standard X.Org formatting & bracketing to StrToWidg.cAlan Coopersmith2018-05-051-76/+74
| | | | | | | | | | | | | | Makes code easier for humans to read and gets rid of gcc warning: StrToWidg.c: In function ‘XmuCvtStringToWidget’: StrToWidg.c:107:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (widgetP = parent->core.popup_list; i; i--, widgetP++) ^~~ StrToWidg.c:114:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ XtStringConversionWarning(fromVal->addr, XtRWidget); ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Convert tabs to spaces in StrToWidg.cAlan Coopersmith2018-05-051-53/+53
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* autogen: add default patch prefixMihail Konev2017-01-261-0/+3
| | | | Signed-off-by: Mihail Konev <k.mvc@ya.ru>
* autogen.sh: use quoted string variablesEmil Velikov2017-01-261-4/+4
| | | | | | | | | Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer2017-01-261-1/+1
| | | | | | | Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* Include <direct.h> for _getdrives() on Win32Jon TURNEY2015-04-121-0/+1
| | | | | Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: David Macek <david.macek.0@gmail.com>
* Remove pointless X_NOT_POSIXJon TURNEY2015-03-231-2/+2
| | | | | | | | | Both stdlib.h (only included for prototype of atoi()), and limits.h (only included for PATH_MAX) are in C89, so putting this under X_NOT_POSIX seems a little excessive. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* ShapeEllipseOrRoundedRectangle: Check height AND width, not width twiceAlan Coopersmith2013-12-021-1/+1
| | | | | | | | | | Fixed to match check in ShapeOval() https://bugs.freedesktop.org/show_bug.cgi?id=72245 Fixes cppcheck warning: [ShapeWidg.c:204]: (style) Same expression on both sides of '||'. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove SUNSHLIB support for SunOS 4.x shared librariesAlan Coopersmith2013-11-224-77/+3
| | | | | | | Never enabled in modular builds, was only enabled for SunOS 4.x in imake. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
* libXmu 1.1.2libXmu-1.1.2Alan Coopersmith2013-09-071-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>