summaryrefslogtreecommitdiffabout
path: root/src/getopt.m4
authorSergey Poznyakoff <gray@gnu.org.ua>2011-07-23 18:57:30 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-07-23 19:01:31 (GMT)
commit11afe84b218bda29db088d8dd4e16e79c03099ef (patch) (side-by-side diff)
treecdf9f6992482c6cec34ab771d497c4b04dce5a84 /src/getopt.m4
parente503a7f56ca38efc1886e04be0dbeb380db3934a (diff)
downloadidest-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') (more/less context) (ignore whitespace changes)
-rw-r--r--src/getopt.m46
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
define([<GETOPT>],[<
{
int c;
-
+ int stop = 0;
ifelse([<$#>],3,opterr = 0;)
- while ((c = getopt_long($1, $2, SHORT_OPTS,
- long_options, NULL)) != EOF)
+ while (!stop && (c = getopt_long($1, $2, SHORT_OPTS,
+ long_options, NULL)) != EOF)
{
switch (c)
{

Return to:

Send suggestions and report system problems to the System administrator.