From: ellson Date: Tue, 11 Mar 2008 18:52:40 +0000 (+0000) Subject: cleaning out some crud (#ifdef'ed out code) X-Git-Tag: LAST_LIBGRAPH~32^2~4521 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35ee466c5174ed7e6060d930f8de84e22648b17e;p=graphviz cleaning out some crud (#ifdef'ed out code) --- diff --git a/plugin/pango/Makefile.am b/plugin/pango/Makefile.am index 3ede470d7..81522984c 100644 --- a/plugin/pango/Makefile.am +++ b/plugin/pango/Makefile.am @@ -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 diff --git a/plugin/pango/gvrender_pango.c b/plugin/pango/gvrender_pango.c index 8e2d701a6..168878f64 100644 --- a/plugin/pango/gvrender_pango.c +++ b/plugin/pango/gvrender_pango.c @@ -24,34 +24,6 @@ #ifdef HAVE_STRING_H #include #endif -#include - -#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 -#elif HAVE_FPU_CONTROL_H -# include -#elif HAVE_SYS_FPU_H -# include -#endif -#endif #include "gvplugin_render.h" #include "gvplugin_device.h" @@ -60,12 +32,10 @@ #include 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 #endif -#ifdef CAIRO_HAS_QUARTZ_SURFACE -#include -#endif - -#ifdef CAIRO_HAS_GLITZ -#include -#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} };