]> granicus.if.org Git - graphviz/commitdiff
make some public functions static, remove public interface
authorellson <devnull@localhost>
Fri, 7 Jan 2005 16:55:13 +0000 (16:55 +0000)
committerellson <devnull@localhost>
Fri, 7 Jan 2005 16:55:13 +0000 (16:55 +0000)
lib/common/emit.c
lib/common/renderprocs.h

index d5e78787e421d26550d6ad93bf218e4542b528af..be20a3b207e455c99b04e930fdb3ea31f8675696 100644 (file)
@@ -356,7 +356,7 @@ static void setup_pagination(GVC_t * gvc, graph_t * g)
     PB.UR = add_points(PB.LL, DS);
 }
 
-void emit_node(GVC_t * gvc, node_t * n)
+static void emit_node(GVC_t * gvc, node_t * n)
 {
     char *s, *url = NULL, *tooltip = NULL, *target = NULL;
 
@@ -428,7 +428,33 @@ static pointf computeoffset_qr(pointf p, pointf q, pointf r, pointf s,
     return res;
 }
 
-void emit_edge(GVC_t * gvc, edge_t * e)
+void emit_attachment(GVC_t * gvc, textlabel_t * lp, splines * spl)
+{
+    point sz, A[3];
+    unsigned char *s;
+
+    for (s = (unsigned char *) (lp->text); *s; s++) {
+       if (isspace(*s) == FALSE)
+           break;
+    }
+    if (*s == 0)
+       return;
+
+    PF2P(lp->dimen, sz);
+    A[0] = pointof(lp->p.x + sz.x / 2, lp->p.y - sz.y / 2);
+    A[1] = pointof(A[0].x - sz.x, A[0].y);
+    A[2] = dotneato_closest(spl, lp->p);
+    /* Don't use edge style to draw attachment */
+    gvrender_set_style(gvc, BaseLineStyle);
+    /* Use font color to draw attachment
+       - need something unambiguous in case of multicolored parallel edges
+       - defaults to black for html-like labels
+     */
+    gvrender_set_pencolor(gvc, lp->fontcolor);
+    gvrender_polyline(gvc, A, 3);
+}
+
+static void emit_edge(GVC_t * gvc, edge_t * e)
 {
     int i, j, cnum, numc = 0;
     char *color, *style;
@@ -1070,32 +1096,6 @@ int edge_in_CB(edge_t * e)
     return rect_overlap(CB, b);
 }
 
-void emit_attachment(GVC_t * gvc, textlabel_t * lp, splines * spl)
-{
-    point sz, A[3];
-    unsigned char *s;
-
-    for (s = (unsigned char *) (lp->text); *s; s++) {
-       if (isspace(*s) == FALSE)
-           break;
-    }
-    if (*s == 0)
-       return;
-
-    PF2P(lp->dimen, sz);
-    A[0] = pointof(lp->p.x + sz.x / 2, lp->p.y - sz.y / 2);
-    A[1] = pointof(A[0].x - sz.x, A[0].y);
-    A[2] = dotneato_closest(spl, lp->p);
-    /* Don't use edge style to draw attachment */
-    gvrender_set_style(gvc, BaseLineStyle);
-    /* Use font color to draw attachment
-       - need something unambiguous in case of multicolored parallel edges
-       - defaults to black for html-like labels
-     */
-    gvrender_set_pencolor(gvc, lp->fontcolor);
-    gvrender_polyline(gvc, A, 3);
-}
-
 int validpage(point page)
 {
     return ((page.x >= 0) && (page.x < Pages.x)
index d48ed5a8d6e89a860bbeb90a3f4a80fcf3a05fec..6bc948b0dca178503b23cdb41a73a1a700dc2c71 100644 (file)
@@ -80,8 +80,6 @@ extern "C" {
     extern void emit_clusters(GVC_t * gvc, Agraph_t * g, int flags);
     extern void emit_eof(GVC_t * gvc);
     extern void emit_graph(GVC_t * gvc, graph_t * g, int flags);
-    extern void emit_edge(GVC_t * gvc, edge_t * e);
-    extern void emit_node(GVC_t * gvc, node_t * n);
     extern void emit_label(GVC_t * gvc, textlabel_t *, void *obj);
     extern int emit_once(char *message);
     extern void emit_once_reset();