From: erg Date: Tue, 2 Nov 2010 20:13:28 +0000 (+0000) Subject: Replace .dot with .gv in gvc X-Git-Tag: LAST_LIBGRAPH~32^2~1141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=027f48ce3eeb7d6d65a97703ce44a77633e31ecb;p=graphviz Replace .dot with .gv in gvc --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 82ad9b671..715c05ff8 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -98,8 +98,8 @@ static void auto_output_filename(GVJ_t *job) else gidx[0] = '\0'; if (!(fn = job->input_filename)) - fn = "noname.dot"; - len = strlen(fn) /* typically "something.dot" */ + fn = "noname.gv"; + len = strlen(fn) /* typically "something.gv" */ + strlen(gidx) /* "", ".2", ".3", ".4", ... */ + 1 /* "." */ + strlen(job->output_langname) /* e.g. "png" */ diff --git a/lib/gvc/gvevent.c b/lib/gvc/gvevent.c index 067e33981..8469eea7d 100644 --- a/lib/gvc/gvevent.c +++ b/lib/gvc/gvevent.c @@ -674,7 +674,7 @@ static void gvevent_read (GVJ_t * job, const char *filename, const char *layout) #else /* WITH_CGRAPH */ g = agopen("G", Agdirected, NIL(Agdisc_t *)); #endif /* WITH_CGRAPH */ - job->output_filename = "new.dot"; + job->output_filename = "new.gv"; } else { f = fopen(filename, "r");