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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getopt.m4 b/src/getopt.m4 index 54ef9c1..19ee33c 100644 --- a/src/getopt.m4 +++ b/src/getopt.m4 @@ -200,9 +200,9 @@ dnl define([<GETOPT>],[< { int c; - + int stop = 0; ifelse([<$#>],3,opterr = 0;) - while ((c = getopt_long($1, $2, SHORT_OPTS, + while (!stop && (c = getopt_long($1, $2, SHORT_OPTS, long_options, NULL)) != EOF) { switch (c) |