From 92bfea34416cb5f6384e5ea11f39d0285074c6d6 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 29 Sep 2006 16:05:36 +0000 Subject: [PATCH] add "oval" as an alias for "ellipse" --- cmd/dot/dot.1 | 2 +- lib/common/shapes.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/dot/dot.1 b/cmd/dot/dot.1 index f659131c4..997e037ae 100644 --- a/cmd/dot/dot.1 +++ b/cmd/dot/dot.1 @@ -303,7 +303,7 @@ Adding \fBfixedsize=true\fP forces these to be the actual size .PP \fBshape=record polygon epsf \fIbuiltin_polygon\fR .br -\fIbuiltin_polygon\fR is one of: \fBplaintext ellipse circle egg +\fIbuiltin_polygon\fR is one of: \fBplaintext ellipse oval circle egg triangle box diamond trapezium parallelogram house hexagon octagon.\fR (Polygons are defined or modified by the following node attributes: \fBregular\fR, \fBperipheries\fR, \fBsides\fR, \fBorientation\fR, diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 18a79bfb4..5c075972c 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -18,10 +18,6 @@ #include "htmltable.h" #include -#ifdef WITH_CODEGENS -extern codegen_t VRML_CodeGen; -#endif - #define RBCONST 12 #define RBCURVE .5 @@ -58,7 +54,7 @@ static void epsf_gencode(GVJ_t * job, node_t * n); /* polygon descriptions. "polygon" with 0 sides takes all user control */ -/* regul perip sides orien disto skew */ +/* regul perip sides orien disto skew */ static polygon_t p_polygon = { FALSE, 1, 0, 0., 0., 0. }; /* builtin polygon descriptions */ @@ -154,6 +150,7 @@ static shape_desc Shapes[] = { /* first entry is default for no such shape */ {"box", &poly_fns, &p_box}, {"polygon", &poly_fns, &p_polygon}, {"ellipse", &poly_fns, &p_ellipse}, + {"oval", &poly_fns, &p_ellipse}, {"circle", &poly_fns, &p_circle}, {"point", &point_fns, &p_circle}, {"egg", &poly_fns, &p_egg}, -- 2.40.0