On Sun, 6 Mar 2011 13:53:29 +0100
Joerg Wunsch <j...@uriah.heep.sax.de> wrote:
> For those who are plagued with a notoriously slow machine, how about
> at least adding a command-line option to override the default render
> mode?
skimmed over (the getopt code in) main() and was greeted by a creative
variation of whitespace behavior (8-unit tabs + 4-unit spaces) :(
i started to clean it up but refrained from continuing when i saw the
whole thing. im not willing to clean up other ppl's mess (or work with
it right now) sorry.
but the idea seems reasonable and easy to implement imho :)
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
>From 0260cc2cf495226e27d4625b64ae2e6672616fe2 Mon Sep 17 00:00:00 2001
From: Stefan Tauner <stefan.tau...@student.tuwien.ac.at>
Date: Sun, 6 Mar 2011 14:36:27 +0100
Subject: [PATCH] whitespace cleanup of longopts[] in main.c
---
src/main.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/main.c b/src/main.c
index c4daa20..7fedaf7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -120,34 +120,34 @@ int longopt_val = 0;
int longopt_idx = 0;
const struct option longopts[] = {
/* name has_arg flag val */
- {"border", required_argument, NULL, 'B'},
- {"dpi", required_argument, NULL, 'D'},
- {"version", no_argument, NULL, 'V'},
+ {"border", required_argument, NULL, 'B'},
+ {"dpi", required_argument, NULL, 'D'},
+ {"version", no_argument, NULL, 'V'},
{"origin", required_argument, NULL, 'O'},
- {"window_inch", required_argument, NULL, 'W'},
- {"antialias", no_argument, NULL, 'a'},
+ {"window_inch", required_argument, NULL, 'W'},
+ {"antialias", no_argument, NULL, 'a'},
{"background", required_argument, NULL, 'b'},
- {"dump", no_argument, NULL, 'd'},
+ {"dump", no_argument, NULL, 'd'},
{"foreground", required_argument, NULL, 'f'},
- {"help", no_argument, NULL, 'h'},
+ {"help", no_argument, NULL, 'h'},
{"log", required_argument, NULL, 'l'},
{"output", required_argument, NULL, 'o'},
{"project", required_argument, NULL, 'p'},
{"tools", required_argument, NULL, 't'},
{"translate", required_argument, NULL, 'T'},
- {"window", required_argument, NULL, 'w'},
+ {"window", required_argument, NULL, 'w'},
{"export", required_argument, NULL, 'x'},
{"geometry", required_argument, &longopt_val, 1},
/* GDK/GDK debug flags to be "let through" */
{"gtk-module", required_argument, &longopt_val, 2},
- {"g-fatal-warnings",no_argument, &longopt_val, 2},
+ {"g-fatal-warnings",no_argument, &longopt_val, 2},
{"gtk-debug", required_argument, &longopt_val, 2},
{"gtk-no-debug", required_argument, &longopt_val, 2},
{"gdk-debug", required_argument, &longopt_val, 2},
{"gdk-no-debug", required_argument, &longopt_val, 2},
{"display", required_argument, &longopt_val, 2},
- {"sync", no_argument, &longopt_val, 2},
- {"no-xshm", no_argument, &longopt_val, 2},
+ {"sync", no_argument, &longopt_val, 2},
+ {"no-xshm", no_argument, &longopt_val, 2},
{"name", required_argument, &longopt_val, 2},
{"class", required_argument, &longopt_val, 2},
{0, 0, 0, 0},
--
1.7.1
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel