]> granicus.if.org Git - graphviz/commitdiff
cleaning out some crud (#ifdef'ed out code)
authorellson <devnull@localhost>
Tue, 11 Mar 2008 18:52:40 +0000 (18:52 +0000)
committerellson <devnull@localhost>
Tue, 11 Mar 2008 18:52:40 +0000 (18:52 +0000)
plugin/pango/Makefile.am
plugin/pango/gvrender_pango.c

index 3ede470d75fe8469d792715338ecd33a26b965cf..81522984c5a05e0f7bdebb5644073be0936cbdad 100644 (file)
@@ -28,7 +28,7 @@ libgvplugin_pango_C_la_SOURCES = \
 libgvplugin_pango_la_LDFLAGS = -version-info @GVPLUGIN_VERSION_INFO@
 libgvplugin_pango_la_SOURCES = $(libgvplugin_pango_C_la_SOURCES)
 libgvplugin_pango_la_LIBADD = \
-       $(top_builddir)/lib/gvc/libgvc.la @PANGOCAIRO_LIBS@ @FONTCONFIG_LIBS@ @MATH_LIBS@
+       $(top_builddir)/lib/gvc/libgvc.la @PANGOCAIRO_LIBS@ @MATH_LIBS@
 
 if WITH_WIN32
 libgvplugin_pango_la_LDFLAGS += -no-undefined
index 8e2d701a6b216a6b59d776e8e8e9b4942dd6f282..168878f64b5dc16b549f56b28aac6506176b4e18 100644 (file)
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
-#include <fcntl.h>
-
-#if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEENABLEEXCEPT)
-
-/* _GNU_SOURCE is needed (supposedly) for the feenableexcept
- * prototype to be defined in fenv.h on GNU systems.
- * Presumably it will do no harm on other systems.
- */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
-/* We are not supposed to need __USE_GNU, but I can't see
- * how to get the prototype for fedisableexcept from
- * /usr/include/fenv.h without it.
- */
-#ifndef __USE_GNU
-#define __USE_GNU
-#endif
-
-#if 0
-# include <fenv.h>
-#elif HAVE_FPU_CONTROL_H
-# include <fpu_control.h>
-#elif HAVE_SYS_FPU_H
-# include <sys/fpu.h>
-#endif
-#endif
 
 #include "gvplugin_render.h"
 #include "gvplugin_device.h"
 #include <pango/pangocairo.h>
 
 typedef enum {
-               FORMAT_GLITZ,
                FORMAT_CAIRO,
                FORMAT_PNG,
                FORMAT_PS,
                FORMAT_PDF,
-               FORMAT_QUARTZ,
                FORMAT_SVG,
     } format_type;
 
@@ -92,21 +62,6 @@ static int dotted_len = ARRAY_SIZE(dotted);
 #include <cairo-svg.h>
 #endif
 
-#ifdef CAIRO_HAS_QUARTZ_SURFACE
-#include <cairo-quartz.h>
-#endif
-
-#ifdef CAIRO_HAS_GLITZ
-#include <cairo-glitz.h>
-#endif
-
-#if 0
-#if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEENABLEEXCEPT)
-/* place to save fp environment temporarily */
-static fenv_t fenv; /* FIXME - not thread safe */
-#endif
-#endif
-
 static void cairogen_set_color(cairo_t * cr, gvcolor_t * color)
 {
     cairo_set_source_rgba(cr, color->u.RGBA[0], color->u.RGBA[1],
@@ -128,17 +83,6 @@ static void cairogen_begin_page(GVJ_t * job)
     cairo_t *cr = NULL;
     cairo_surface_t *surface;
 
-#if 0
-#if defined(HAVE_FENV_H) && defined(HAVE_FESETENV) && defined(HAVE_FEGETENV) && defined(HAVE_FEDISABLEEXCEPT)
-    /* cairo generates FE_INVALID and other exceptions we 
-     * want to ignore for now.  Save the current fenv and
-     * set one just for cairo.
-     * The fenv is restored in cairogen_end_graph  */
-    fegetenv(&fenv);
-    fedisableexcept(FE_ALL_EXCEPT);
-#endif
-#endif
-
     if (job->context) 
        cr = (cairo_t *) job->context;
     if (job->external_context && cr)
@@ -227,13 +171,6 @@ static void cairogen_end_page(GVJ_t * job)
 
     if (job->external_context)
        cairo_restore(cr);
-
-#if 0
-#if defined HAVE_FENV_H && defined HAVE_FESETENV && defined HAVE_FEGETENV && defined(HAVE_FEENABLEEXCEPT)
-    /* Restore FP environment */
-    fesetenv(&fenv);
-#endif
-#endif
 }
 
 static void cairogen_textpara(GVJ_t * job, pointf p, textpara_t * para)
@@ -461,21 +398,6 @@ gvplugin_installed_t gvdevice_pango_types[] = {
 #ifdef CAIRO_HAS_SVG_SURFACE
     {FORMAT_SVG, "svg:cairo", -10, NULL, &device_features_svg},
 #endif
-//#ifdef CAIRO_HAS_XCB_SURFACE
-//    {FORMAT_XCB, "xcb:cairo", 0, NULL, &device_features_xcb},
-//#endif
-//#ifdef CAIRO_HAS_SDL_SURFACE
-//    {FORMAT_SDL, "sdl:cairo", 0, NULL, &device_features_sdl},
-//#endif
-//#ifdef CAIRO_HAS_GLITZ_SURFACE
-//    {FORMAT_GLITZ, "glitz:cairo", 0, NULL, &device_features_glitz},
-//#endif
-//#ifdef CAIRO_HAS_QUARTZ_SURFACE
-//    {FORMAT_QUARTZ, "quartz:cairo", 0, NULL, &device_features_quartz},
-//#endif
-//#ifdef CAIRO_HAS_WIN32_SURFACE
-//    {FORMAT_WIN32, "win32:cairo", 0, NULL, &device_features_win32},
-//#endif
 #endif
     {0, NULL, 0, NULL, NULL}
 };