summaryrefslogtreecommitdiff
path: root/util.c
AgeCommit message (Collapse)Author
2024-02-15unifdef NEED_SNPRINTFAlan Coopersmith
If it was defined, it would try to include a snprintf.c file that's not actually in our source tree. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-15unifdef __SCO__Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-15unifdef __UNIXOS2__Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-01Allow inlining makeNameAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-01args_copy variable is unused if HAVE_DECL_VA_COPY is not definedAlan Coopersmith
Found by cppcheck Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-01Variable scope reductions as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-10-26Fall back to using FONT property as family nameChristopher Zimmermann
2020-09-22use more properties according to XLFDChristopher Zimmermann
2020-09-22truncate foundry if there is no known abbreviation.Christopher Zimmermann
Honestly I have no idea why the foundry needs to fit in four bytes. But anyway truncation might indeed be better then "UNKN" ? Anyone more knowledgeable than me out there?
2020-06-11Guess Regular style for Medium WeightPeng Wu
X Logical Font Description recognize "Medium" as "Regular". Update the faceWeight function to change style from "Medium" to "Regular".
2020-02-07Fix incorrect error handling in macTime()rnhmjoj
mktime() and time() return (time_t -1) to signal an error. Checking for negative values will incorrectly assume an error happened for any calendar date before the unix epoch.
2019-08-30check for freetype NULL atomsRyan Farley
Freetype uses NULL to represent an empty string when retrieving a BDF property -- check for this in addition to an actual error
2018-11-02Mark vsprintf_alloc as printf-like functionPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-07-31Constify a few string argumentsPeter Hutterer
Cuts down on compiler warning by at least 64%, what a bargain! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2008-05-11Use va_copy in vsprintf_alloc.Juliusz Chroboczek
This avoids a crash on arches with an interesting implementation of va_list (such as AMD64) but no vasprintf in their libc.
2008-05-11Use autoconf test instead of #ifdef GLIBC for vasprintf.Julien Cristau
2008-05-11Rename *_reliable to *_alloc.Juliusz Chroboczek
2008-05-02Use asprintf on GNU platforms.Juliusz Chroboczek
This fixes fonttosfnt on AMD64 with glibc. It will still break on non-GNU RISC platforms, because I'm incompetent and cannot use va_copy.
2006-07-16Don't include freetype internal headers.Matthieu Herrb
2005-11-08See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_903XORG-6_8_99_902Kean Johnson
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-12-19XFree86 4.3.99.902 (RC 2)xf86-4_3_99_903_specialxf86-4_3_99_902xf86-012804-2330Kaleb Keithley
2003-11-25Initial revisionKaleb Keithley