summaryrefslogtreecommitdiff
path: root/src/stubs
Commit message (Collapse)AuthorAgeFilesLines
* atom: Update Hash() to be unsignedJeremy Huddleston Sequoia2022-11-261-18/+16
| | | | | | This avoids undefined behavior (left shift overflow in signed integer type) Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
* stubs/atom.c: check for ResizeHashTable failureAlan Coopersmith2019-08-171-1/+3
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Convert multiplying realloc calls to use reallocarray insteadAlan Coopersmith2019-08-031-1/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Convert to non-recursive build.Matt Turner2015-12-091-10/+0
|
* Eliminate calls back to X server or font server functions by name (v4)libXfont2-2.0.0Keith Packard2015-12-0820-424/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | This eliminates the weak symbol adventures and makes all of the calls back to the X server or Font server go through a table of functions instead, clarifying the required API. As this is a rather major change to the API for the library, it now installs itself as libXfont2 instead of libXfont, and the package config file is now xfont2.pc. All of the installed headers remain the same as the original library; there's now a new include file, libxfont2.h, which defines the X server and Font server interfaces. This moves util/atom.c to stubs/atom.c and reformats that file, hence the diff being larger than it would otherwise be. v2: Rename to libXfont2 instead of libXfont_2 as suggested by Emil Velikov Fix whitespace in stubs/atom.c, which was moved from util/ v3: Remove select masks from API. Expose single 'font_init' function for all library initialization. v4: Change name of distributed tarballs to libXfont2 as well Signed-off-by: Keith Packard <keithp@keithp.com>
* Use NO_WEAK_SYMBOLS instead of -flat_namespaceJeremy Huddleston Sequoia2015-10-211-10/+1
| | | | | | Lesser of two evil hacks, I suppose... This reverts commit 0386fa77367a305deea3cc27f8a3865cc3c467c0.
* stubs: Add missing externs for declarations in the NO_WEAK_SYMBOLS && PIC ↵Jeremy Huddleston Sequoia2015-10-211-23/+23
| | | | | | stubs resolution Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
* Make shared library work on Cygwin/MinGWYaakov Selkowitz2014-06-2719-15/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Weak symbols on PE platforms do not work the same way as on ELF platforms, hence we have been unable to have a fully functional shared libXfont until now. This patch works around these issues so that we can fix that. In summary, only when compiling shared libraries on NO_WEAK_SYMBOLS platforms, when the first stub is called, the invoking program is first checked to determine if it exports the stubbed functions. Then, for every stub call, if the function is exported by the loader, it is called instead of the stub code. serverClient and serverGeneration are data pointers, and therefore are replaced by getter functions. ErrorF is variadic, so the override is routed through VErrorF instead. FatalError has no va_list equivalent, but it is not actually used in libXfont and therefore should be safe to remove. This requires all X servers to export their symbols, which requires forthcoming patches for hw/xwin and xfs; the other xservers (including tigervnc) already do this via LD_EXPORT_SYMBOLS_FLAG. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
* Replace deprecated Automake INCLUDES variable with AM_CPPFLAGSbaserock/morphAlan Coopersmith2013-01-161-1/+1
| | | | | | | | | | | | | | Excerpt https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html - Support for the long-deprecated INCLUDES variable will be removed altogether in Automake 1.14. The AM_CPPFLAGS variable should be used instead. This variable was deprecated in Automake releases prior to 1.10, which is the current minimum level required to build X. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* Strip trailing whitespaceAlan Coopersmith2011-09-164-19/+19
| | | | | | | 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>
* Purge cvs tags.Jesse Adkins2010-10-061-2/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix builds with Sun compilersAlan Coopersmith2010-08-081-0/+2
| | | | | | | Sun compilers use #pragma weak in the *.c files to declare weak symbols, so should have weak defined to empty, but not define NO_WEAK_SYMBOLS Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* darwin: Fix build regression introduced by previous patchJeremy Huddleston2010-07-101-1/+10
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Build fix for platforms which don't have weak linkageJon TURNEY2010-07-081-0/+1
| | | | | | | | | | | | | Since we fix this by removing the serverGeneration symbol, assuming an external definition will be provided, this means on Windows libXfont can only be built as a static library (since PE shared libraries cannot contain undefined symbols). This produces a libXfont which might only be useful to the xserver, but the only other users we might care about are xfs, which is obsolete, and bdftopcf, which fortunately doesn't pull in any objects which reference serverGeneration from libXfont. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
* Janitor: make distcheck and .gitignorePaulo Cesar Pereira de Andrade2009-01-291-6/+0
| | | | | Distribute ChangeLog but not autogen.sh. Use a single toplevel .gitignore file, instead of one per subdirectory.
* Remove printer font support.Adam Jackson2009-01-202-23/+1
| | | | Xprint is just insidious, isn't it.
* Remove loadable renderer support.Adam Jackson2009-01-202-15/+0
|
* Don't clobber CFLAGS in configureJulien Cristau2008-11-041-0/+2
| | | | This lets the user set CFLAGS when running make.
* Add #pragma weak for Sun cc where neededAlan Coopersmith2007-04-0218-0/+73
|
* Actually use loadable font modulesAlan Coopersmith2007-03-232-0/+11
| | | | | | Loadable font modules were not being initialized, and all font renderers known at build time were always being initialized, regardless of Xorg module configuration.
* renamed: .cvsignore -> .gitignoreAlan Coopersmith2006-07-131-0/+0
|
* For the 20-odd symbols defined both in libXfont and the X server, emit themAdam Jackson2006-06-0118-90/+29
| | | | | as weak symbols so that the linker will prefer the server's definition when present.
* Include config.h in every source file to make sure necessary options areKeith Packard2005-07-0916-0/+48
| | | | found when building in the modular tree
* Add .cvsignore files Switch _la_CFLAGS for AM_CFLAGS to clean up directoryKeith Packard2005-07-091-2/+2
|
* Change include dir now that public headers are referenced byKevin E Martin2005-07-031-1/+1
| | | | <X11/fonts/*.h>
* Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone2005-07-031-1/+1
| | | | | | | | Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
* Add suitable .cvsignore filesKeith Packard2005-07-021-0/+6
|
* Reference X11/fonts header files using X11/fonts/ prefix.XORG-6_8_99_9XORG-6_8_99_10Josh Triplett2005-05-271-1/+1
|
* Add Xfont.Josh Triplett2005-05-271-0/+24
|
* Merging XORG-CURRENT into trunkEgbert Eich2004-04-2318-18/+18
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-1418-18/+18
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-0318-18/+18
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-2618-18/+18
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-2618-18/+18
|
* XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16Kaleb Keithley2003-11-255-14/+12
|
* Initial revisionKaleb Keithley2003-11-1418-0/+231