From be0d58c54ef4c4b06fbd37eeaaf77f72f8a3d5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Fri, 25 Oct 2019 20:36:54 +0200 Subject: [PATCH] Fix coding style in main.c --- main.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.c b/main.c index b1a333f..ffe948d 100644 --- a/main.c +++ b/main.c @@ -125,8 +125,8 @@ static void app_about(GSimpleAction *action, GVariant *parameter, gpointer user_ * @brief Contains the application menu entries */ static const GActionEntry app_actions[] = { - {"quit", app_quit, NULL, NULL, NULL, {0}}, - {"about", app_about, NULL, NULL, NULL, {0}} + { "quit", app_quit, NULL, NULL, NULL, {0} }, + { "about", app_about, NULL, NULL, NULL, {0} }, }; /** @@ -267,14 +267,17 @@ int main(int argc, char **argv) GOptionEntry entries[] = { {"version", 'v', 0, G_OPTION_ARG_NONE, &version, "Print version", NULL}, - {"renderer", 'r', 0, G_OPTION_ARG_STRING_ARRAY, &renderer_args, "Renderer to use. Can be used multiple times.", "pdf|svg|tikz|ext"}, + {"renderer", 'r', 0, G_OPTION_ARG_STRING_ARRAY, &renderer_args, + "Renderer to use. Can be used multiple times.", "pdf|svg|tikz|ext"}, {"scale", 's', 0, G_OPTION_ARG_INT, &scale, "Divide output coordinates by ", "" }, - {"output-file", 'o', 0, G_OPTION_ARG_FILENAME_ARRAY, &output_paths, "Output file path. Can be used multiple times.", "PATH" }, + {"output-file", 'o', 0, G_OPTION_ARG_FILENAME_ARRAY, &output_paths, + "Output file path. Can be used multiple times.", "PATH" }, {"mapping", 'm', 0, G_OPTION_ARG_FILENAME, &mappingname, "Path for Layer Mapping File", "PATH" }, {"cell", 'c', 0, G_OPTION_ARG_STRING, &cellname, "Cell to render", "NAME" }, {"tex-standalone", 'a', 0, G_OPTION_ARG_NONE, &pdf_standalone, "Create standalone PDF", NULL }, {"tex-layers", 'l', 0, G_OPTION_ARG_NONE, &pdf_layers, "Create PDF Layers (OCG)", NULL }, - {"custom-render-lib", 'P', 0, G_OPTION_ARG_FILENAME, &custom_library_path, "Path to a custom shared object, that implements the " EXTERNAL_LIBRARY_FUNCTION " function", "PATH"}, + {"custom-render-lib", 'P', 0, G_OPTION_ARG_FILENAME, &custom_library_path, + "Path to a custom shared object, that implements the " EXTERNAL_LIBRARY_FUNCTION " function", "PATH"}, {NULL} }; @@ -302,9 +305,8 @@ int main(int argc, char **argv) gds_name = argv[1]; /* Print out additional arguments as ignored */ - for (i = 2; i < argc; i++) { + for (i = 2; i < argc; i++) printf("Ignored argument: %s", argv[i]); - } app_status = command_line_convert_gds(gds_name, cellname, renderer_args, output_paths, mappingname,