From: ellson Date: Mon, 3 Mar 2008 23:01:52 +0000 (+0000) Subject: consolidate PI into M_PI X-Git-Tag: LAST_LIBGRAPH~32^2~4592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9d367fe044d32789b75b7876e97510874058f4a;p=graphviz consolidate PI into M_PI --- diff --git a/plugin/core/gvrender_core_hpgl.c b/plugin/core/gvrender_core_hpgl.c index e0edfd9c5..93560cdb5 100644 --- a/plugin/core/gvrender_core_hpgl.c +++ b/plugin/core/gvrender_core_hpgl.c @@ -258,7 +258,7 @@ static void hpgl_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 = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_mp.c b/plugin/core/gvrender_core_mp.c index 2b46c1fd2..c388e0bb4 100644 --- a/plugin/core/gvrender_core_mp.c +++ b/plugin/core/gvrender_core_mp.c @@ -258,7 +258,7 @@ static void mp_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 = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_pic.c b/plugin/core/gvrender_core_pic.c index 061af3feb..edd8abf01 100644 --- a/plugin/core/gvrender_core_pic.c +++ b/plugin/core/gvrender_core_pic.c @@ -258,7 +258,7 @@ static void pic_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 = 4; /* PostScript font */ double height = 0.0; double length = 0.0; diff --git a/plugin/core/gvrender_core_vtx.c b/plugin/core/gvrender_core_vtx.c index 04228067b..4ba72cae0 100644 --- a/plugin/core/gvrender_core_vtx.c +++ b/plugin/core/gvrender_core_vtx.c @@ -258,7 +258,7 @@ static void vtx_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 = 4; /* PostScript font */ double height = 0.0; double length = 0.0;