From: Matthew Fernandez Date: Sun, 16 Jan 2022 18:16:16 +0000 (-0800) Subject: dot.demo/simple.c: [nfc] align with C99 style and clang-format X-Git-Tag: 3.0.0~57^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3139f811b9efd43db336e200a3aa52595398bb4c;p=graphviz dot.demo/simple.c: [nfc] align with C99 style and clang-format --- diff --git a/dot.demo/simple.c b/dot.demo/simple.c index a9424a4af..48f6cf795 100644 --- a/dot.demo/simple.c +++ b/dot.demo/simple.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property + * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,28 +10,26 @@ #include #include +#include -int main(int argc, char **argv) -{ - GVC_t *gvc; - graph_t *g; - FILE *fp; +int main(int argc, char **argv) { - gvc = gvContext(); + GVC_t *gvc = gvContext(); - if (argc > 1) - fp = fopen(argv[1], "r"); - else - fp = stdin; - g = agread(fp, NULL); + FILE *fp; + if (argc > 1) + fp = fopen(argv[1], "r"); + else + fp = stdin; + graph_t *g = agread(fp, NULL); - gvLayout(gvc, g, "dot"); + gvLayout(gvc, g, "dot"); - gvRender(gvc, g, "plain", stdout); + gvRender(gvc, g, "plain", stdout); - gvFreeLayout(gvc, g); + gvFreeLayout(gvc, g); - agclose(g); + agclose(g); - return (gvFreeContext(gvc)); + return gvFreeContext(gvc); }