summaryrefslogtreecommitdiff
path: root/src/builtins
Commit message (Collapse)AuthorAgeFilesLines
* Convert to non-recursive build.Matt Turner2015-12-091-17/+0
|
* Eliminate calls back to X server or font server functions by name (v4)libXfont2-2.0.0Keith Packard2015-12-085-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Warning fixes.Keith Packard2014-01-294-5/+5
| | | | | | | | | | | | | | | | | Many const char issues. One extra 'i' declared in ScaleFont; we can just use the same 'i' as exists at the top level scope. Also ignore bad-function-cast in ftfuncs.c and bitscale.c because we're casting the return value from floor or ceil from double to int. As floor and ceil are kinda designed to generate integer results, it's pretty clear that we're doing what we want and that the compiler is generating noise. I'm not sure why bad-function-cast is ever a good warning to turn on, but I'll leave that for another day. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Fix unused variable 'dir' warningsAlan Coopersmith2014-01-081-3/+0
| | | | | | | | | | | | catalogue.c: In function 'CatalogueOpenFont': catalogue.c:290:22: warning: variable 'dir' set but not used [-Wunused-but-set-variable] catalogue.c: In function 'CatalogueListFonts': catalogue.c:324:22: warning: variable 'dir' set but not used [-Wunused-but-set-variable] fpe.c: In function 'BuiltinResetFPE': fpe.c:57:22: warning: variable 'dir' set but not used [-Wunused-but-set-variable] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
* 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>
* Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-11-111-1/+1
| | | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Strip trailing whitespaceAlan Coopersmith2011-09-167-9/+9
| | | | | | | 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-065-16/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* 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.
* xalloc -> malloc, etc.Adam Jackson2009-01-203-19/+10
|
* Make sure font names/font alias names are null terminatedBenjamin Close2008-12-111-3/+3
| | | | | | This fixes a crash upon server restart where the saved fonts were being restored however strlen(font_name) was incorrect hence memory was being clobbered.
* Don't clobber CFLAGS in configureJulien Cristau2008-11-041-0/+2
| | | | This lets the user set CFLAGS when running make.
* fix build with gcc 2.95.Jens Granseuer2007-09-271-9/+9
| | | | | In addition to fixing the C89 issue, the patch also flags a few functions as static to avoid "no previous prototype" warnings.
* Replaced one instance of bcopy() with memcpy().Tilman Sauerbeck2007-09-131-1/+2
| | | | | | f->buffer cannot overlap with io->file->bits, so it's safe to use memcpy() rather than memmove(). Compile-tested only.
* Remove side effects from BuiltinReadDirectory()Dodji Seketeli2007-07-161-0/+155
| | | | | | | | | | | The first time BuiltinReadDirectory() is called, save the content of builtin_dir and builtin_alias, before calling FontFileAddFontFile(), because that fonction will modify those. Then, in subsequent calls to BuiltinReadDirectory(), restore builtin_dir and builtin_alias so that the side effect incurred by the first call disappears.
* Static markup over bitmap and builtins.Adam Jackson2007-06-071-1/+1
|
* Warning cleanup.Adam Jackson2007-06-076-58/+43
|
* Add stubs for the scalable renderer callbacks.Kristian Høgsberg2007-01-171-1/+30
| | | | | | Trying to scale a bitmap font provided by the built-in backend will crash the X server as it calls into a NULL pointer. This patch adds "return BadFont;" stubs to prevent the crash.
* move builtin fonts to gzipDaniel Stone2006-07-192-2373/+1190
| | | | Use gzip, rather than compress, for builtin fonts.
* renamed: .cvsignore -> .gitignoreAlan Coopersmith2006-07-131-0/+0
|
* Include missing filesKevin E Martin2005-10-051-0/+2
|
* Clear compiler warnings. (Stefan Dirsch)XORG-6_99_99_900XORG-6_8_99_901XORG-6_8_99_900Alan Coopersmith2005-07-302-2/+6
|
* Include config.h in every source file to make sure necessary options areKeith Packard2005-07-095-0/+15
| | | | 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
|
* silence a warningAdam Jackson2005-07-081-0/+1
|
* 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-033-6/+6
| | | | | | | | 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/+13
|
* Merging XORG-CURRENT into trunkEgbert Eich2004-04-236-6/+6
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-146-6/+6
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-036-6/+6
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-266-6/+6
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-266-6/+6
|
* Initial revisionKaleb Keithley2003-11-147-0/+2907