summaryrefslogtreecommitdiff
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* fixes for gcc13 warningsThomas E. Dickey2022-06-181-0/+2
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* turn off indent in generated filesThomas E. Dickey2019-07-141-0/+2
| | | | 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-490/+544
| | | | | | https://github.com/ThomasDickey/cindent-snapshots/blob/master/scripts/xxx-profile Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* libXt: util: don't link makestrs with target cflagsFabrice Fontaine2019-05-031-1/+0
| | | | | | | | | | | | | | | The line: AM_CFLAGS = $(XT_CFLAGS) in util/Makefile.am is wrong because it adds target cflags to the compilation of makestrs, which is built for the build machine, which leads to build failures when cross-compiling. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/x11r7/xlib_libXt/0001-util-don-t-link-makestrs-with-target-cflags.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* Referring to the xterm FAQThomas E. Dickey2019-04-151-2/+2
| | | | | | | | | | | | | | | | | https://invisible-island.net/xterm/xterm.faq.html#building_it I would like to add an optional feature which makes the String typedef "const" if _CONST_X_STRING is defined. Modifying the Intrinsic.h header is only a partial solution because the library has not been modified to take advantage of this (if it had, most of the const-warnings from gcc would go away). This change modifies the header file as well as the makestrs.c program which generates Shell.h and StringDefs.h so that they use String-casts rather than char*-casts (reducing the warnings seen when compiling with Xt's header files). Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix bug introduced byThomas E. Dickey2019-03-151-46/+76
| | | | | | | | | | commit 57c8b133bbcf38a9a1e345eabeeabe2a3e07c1c8, which modified util/makestrs.c to avoid a shadowing warning of a function parameter versus global variable, but overlooked use of the parameter within the functions. That caused all of the resource strings in Shell.h to have the same value. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* resolv:shadows a global declarationWalter Harms2019-01-111-7/+7
|
* makestrs: Use asprintf() if availableAlan Coopersmith2015-01-251-0/+17
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
* makestrs: Replace strcpy()+strcat() calls with snprintf() callsAlan Coopersmith2015-01-251-5/+2
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
* makestrs: Replace malloc()+strcpy() calls with strdup() callsAlan Coopersmith2015-01-251-16/+8
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
* makestrs: use strchr() instead of index()Alan Coopersmith2015-01-251-3/+3
| | | | | | | | | | | | | Besides being supported by more standards, strchr() has the important characteristic of having a prototype included in <string.h> on Solaris so that 64-bit compiles know it returns a pointer, not an integer. (On Solaris, index() is only found in <strings.h>, for SunOS compatibility.) Without this fix, makestrs segfaulted in 64-bit builds on Solaris after commit f9baaf55ff8cbd4bf018a34f181eda30d03b20dc switched to <string.h>. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
* Use string.h instead of X11/Xos.h.Thomas Klausner2015-01-081-1/+1
| | | | | | | | | | | Long long ago, Xos.h was needed to choose between <string.h> & <strings.h> depending on the OS in use. Today we can rely on C89 & later providing <string.h> everywhere for us. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix cross-compilationThierry Reding2013-06-071-0/+1
| | | | | | | | | | | | | | When cross-compiling against a sysroot for instance, a --sysroot option is typically passed via the CPPFLAGS variable. This can cause the build to break in the util subdirectory which requires the CPPFLAGS to be set for the build system. Solve this by using the value of CPPFLAGS_FOR_BUILD for CPPFLAGS in the util subdirectory. Cross-compile setups can override the variable when calling the configure script. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* makestrs: Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-10-031-12/+12
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Strip trailing whitespaceAlan Coopersmith2011-10-036-105/+105
| | | | | | | Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Don't need to use target-specific CFLAGS for makestrsAlan Coopersmith2011-03-061-1/+1
| | | | | | | | | It's the only thing built in that directory, so we can use AM_CFLAGS and drop the requirement for AM_PROG_CC_C_O in configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
* Remove ancient #if defined(macII) hack for A/UX from makestrs.cAlan Coopersmith2010-12-051-3/+0
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Purge cvs tags.Jesse Adkins2010-10-066-16/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* makestrs: Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONSGaetan Nadon2010-10-051-7/+1
| | | | | | The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* makestrs: Use $(SED) from AC_PROG_SED supplied by XORG_DEFAULT_OPTIONSGaetan Nadon2010-10-051-2/+0
| | | | | | Use the appropriate platform version of sed Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* makestrs: remove unsed $(appman_DATA)Gaetan Nadon2010-10-051-1/+1
| | | | | | Man page is not installed, this variable is not defined. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Fix make distcheck (./util/makestrs.1 left after distclean)Alan Coopersmith2009-12-071-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Don't install makestrs on the systemRémi Cardona2009-12-071-8/+0
| | | | | | | It has no known outside-libXt users. Let's not install it and its man page. Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* .gitignore: use common defaults with custom section # 24239Gaetan Nadon2009-10-221-0/+2
| | | | | | Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
* Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2009-10-061-1/+1
| | | | | | | Includes adding many $(AM_V_GEN) calls for the AM_SILENT_RULES included by XORG_DEFAULT_OPTIONS when automake-1.11 or newer is used Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Fix compilation of host tools in cross-compilation caseThomas Petazzoni2009-08-031-0/+2
| | | | | | | | | | | | | | | At 36e9f0d351afbf7fd2595990b2d39e7c551f6420, a fix was added to use the host gcc instead of the target gcc when cross-compiling libXt. This fix works, but is not solve the whole problem: the CFLAGS and LDFLAGS used with the host compilers are the one defined for the target compiler (and the flags for both compilers might be very different). This new fix let libXt obey to CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD environment variables, and use them to compile the host tools in util/. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Janitor: ansification, make distcheck, compiler warnings, .gitignore.Paulo Cesar Pereira de Andrade2009-01-301-8/+0
| | | | | | Most "compiler" warnings were actually sparse warnings, due to assigning a integer to a pointer, or an external symbol without a previous declaration.
* X.Org Bug 17942: libXt manpage formattingPeter Breitenlohner2008-10-201-6/+6
| | | | <http://bugs.freedesktop.org/show_bug.cgi?id=17942>
* configure.ac: Use native compiler for build toolsJohn Tapsell2008-09-231-0/+2
| | | | | | makestrs is used during the build, so use the native compiler (either gcc or cc in $PATH, can be overridden as $CC_FOR_BUILD) instead of the (possibly cross-) compiler.
* Bug 9514: Markup error in makestrs.1x man pageEric S. Raymond2007-01-021-5/+5
| | | | <https://bugs.freedesktop.org/show_bug.cgi?id=9514>
* Add more generated files to ignore.Eric Anholt2006-10-271-0/+3
|
* renamed: .cvsignore -> .gitignoreAlan Coopersmith2006-07-131-0/+0
|
* Add configure option to install makestrs and its manpage.MODULAR_COPYKevin E Martin2005-12-101-0/+34
| | | | Add makestrs man page.
* Add .cvsignore filesKeith Packard2005-07-091-0/+5
|
* Make source directory for templates configurableXORG-6_8_99_9XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Alexander Gottwald2005-05-242-3/+42
|
* - conditionally include config.h in xc/lib/Xt sourcesXORG-6_8_99_8Søren Sandmann Pedersen2005-05-181-0/+9
| | | | - add build system for lib/Xt
* Add settings to bring Solaris builds closer to the ones Sun packages inAlan Coopersmith2005-05-151-1/+17
| | | | | | | | | | | | Solaris. Adds "BuildLikeSun" options for areas Sun deviates from the way Xorg is packaged on other platforms. See comment in sun.cf for details. Also, use system-provided Expat on Solaris 10 and other cleanups. Set shared library versions for Solaris builds to match versions used in Solaris. Add missing SharedXfixesReqs and SharedXdamageReqs. Add -solarisabi option to create XtStrings code compatibile with existing Solaris binaries. (Off by default, on if "BuildLikeSun" is set in sun.cf)
* Merging XORG-CURRENT into trunkXACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich2004-04-235-5/+5
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-145-5/+5
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-035-5/+5
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-265-5/+5
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-265-5/+5
|
* 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-2/+2
|
* XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley2003-11-145-90/+45
|
* R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley2003-11-146-0/+1575