Changeset 3b295e in git for Singular/fegetopt.c


Ignore:
Timestamp:
Sep 22, 1999, 5:42:13 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
824241e0feb57039b89a14bd31a86a23e5a87032
Parents:
2bb771a6d877e2842019e777594b5edfacafda1b
Message:
*hannes: simplified getopt


git-svn-id: file:///usr/local/Singular/svn/trunk@3649 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fegetopt.c

    r2bb771 r3b295e  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: fegetopt.c,v 1.2 1999-09-22 10:19:04 Singular Exp $ */
     4/* $Id: fegetopt.c,v 1.3 1999-09-22 15:42:13 Singular Exp $ */
    55
    66/* Getopt for GNU.
     
    306306   argument, it follows the option name in the same ARGV-element, separated
    307307   from the option name by a `=', or else the in next ARGV-element.
    308    When `getopt' finds a long-named option, it returns 0 if that option's
    309    `flag' field is nonzero, the value of the option's `val' field
    310    if the `flag' field is zero.
     308   When `getopt' finds a long-named option, it returns
     309   the value of the option's `val' field.
    311310
    312311   The elements of ARGV aren't really const, because we permute them.
     
    541540          if (longind != NULL)
    542541            *longind = option_index;
    543           if (pfound->flag)
    544             {
    545               *(pfound->flag) = pfound->val;
    546               return 0;
    547             }
    548542          return pfound->val;
    549543        }
Note: See TracChangeset for help on using the changeset viewer.