diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-23 21:57:30 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-23 22:01:31 +0300 |
commit | 11afe84b218bda29db088d8dd4e16e79c03099ef (patch) | |
tree | cdf9f6992482c6cec34ab771d497c4b04dce5a84 /src/getopt.m4 | |
parent | e503a7f56ca38efc1886e04be0dbeb380db3934a (diff) | |
download | idest-11afe84b218bda29db088d8dd4e16e79c03099ef.tar.gz idest-11afe84b218bda29db088d8dd4e16e79c03099ef.tar.bz2 |
Implement new formats: framelist & lyrics.
* scheme/format.scm: Set actual format script name as argv[0]
* src/cmdline.opt <format>: Use `stop' to stop
argument processing.
* src/getopt.m4 (GETOPT): New local variable `stop'.
* scheme/idest/format/framelist.scm: New file.
* scheme/idest/format/lyrics.scm: New file.
Diffstat (limited to 'src/getopt.m4')
-rw-r--r-- | src/getopt.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getopt.m4 b/src/getopt.m4 index 54ef9c1..19ee33c 100644 --- a/src/getopt.m4 +++ b/src/getopt.m4 | |||
@@ -200,10 +200,10 @@ dnl | |||
200 | define([<GETOPT>],[< | 200 | define([<GETOPT>],[< |
201 | { | 201 | { |
202 | int c; | 202 | int c; |
203 | 203 | int stop = 0; | |
204 | ifelse([<$#>],3,opterr = 0;) | 204 | ifelse([<$#>],3,opterr = 0;) |
205 | while ((c = getopt_long($1, $2, SHORT_OPTS, | 205 | while (!stop && (c = getopt_long($1, $2, SHORT_OPTS, |
206 | long_options, NULL)) != EOF) | 206 | long_options, NULL)) != EOF) |
207 | { | 207 | { |
208 | switch (c) | 208 | switch (c) |
209 | { | 209 | { |