From 1abdcf4cb7c7bf25687bf76dc712224c47431f94 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 3 Mar 2008 23:01:52 +0000 Subject: [PATCH] consolidate PI into M_PI --- lib/twopigen/circle.c | 2 +- plugin/core/gvrender_core_fig.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/twopigen/circle.c b/lib/twopigen/circle.c index 376be605d..a48cf8407 100644 --- a/lib/twopigen/circle.c +++ b/lib/twopigen/circle.c @@ -212,7 +212,7 @@ static void setChildSubtreeSpans(Agraph_t * g, Agnode_t * n) static void setSubtreeSpans(Agraph_t * sg, Agnode_t * center) { - SPAN(center) = 2 * PI; + SPAN(center) = 2 * M_PI; setChildSubtreeSpans(sg, center); } diff --git a/plugin/core/gvrender_core_fig.c b/plugin/core/gvrender_core_fig.c index 18b12f075..498806f29 100644 --- a/plugin/core/gvrender_core_fig.c +++ b/plugin/core/gvrender_core_fig.c @@ -256,7 +256,7 @@ static void fig_textpara(GVJ_t * job, pointf p, textpara_t * para) int pen_style = 0; /* not used */ int font = -1; /* init to xfig's default font */ double font_size = para->fontsize * job->zoom; - double angle = job->rotation ? (PI / 2.0) : 0.0; + double angle = job->rotation ? (M_PI / 2.0) : 0.0; int font_flags = 6; /* PostScript font + Special text */ /* Special text indicates that latex markup may exist * in the output - but note that dot knows nothing about latex, -- 2.40.0