Changeset 172d852 in git for Singular/fegetopt.c


Ignore:
Timestamp:
Jan 24, 2019, 2:32:29 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
08394f319ba420091cccad7e025c3f7cac04c373
Parents:
5abb79fd2458b47b21d297f2c8b26f285ac9546f756676ef1fcf4cff300fb1607a6d21293b253245
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-01-24 14:32:29+01:00
git-committer:
GitHub <noreply@github.com>2019-01-24 14:32:29+01:00
Message:
Merge pull request #906 from rbehrends/prelim-thread-rewrite

Singular changes for multi-threading support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fegetopt.c

    r5abb79f r172d852  
    9494   each non-option ARGV-element is returned here.  */
    9595
    96 char *fe_optarg = 0;
     96VAR char *fe_optarg = 0;
    9797
    9898/* Index in ARGV of the next element to be scanned.
     
    109109
    110110/* XXX 1003.2 says this must be 1 before any call.  */
    111 int fe_optind = 0;
     111VAR int fe_optind = 0;
    112112
    113113/* The next char to be scanned in the option-element
     
    118118   by advancing to the next ARGV-element.  */
    119119
    120 static char *nextchar;
     120STATIC_VAR char *nextchar;
    121121
    122122/* Callers store zero here to inhibit the error message
    123123   for unrecognized options.  */
    124124
    125 int fe_opterr = 1;
     125VAR int fe_opterr = 1;
    126126
    127127/* Set to an option character which was unrecognized.
     
    130130
    131131#define BAD_OPTION '\0'
    132 int fe_optopt = BAD_OPTION;
     132VAR int fe_optopt = BAD_OPTION;
    133133
    134134/* Describe how to deal with options that follow non-option ARGV-elements.
     
    217217   `last_nonopt' is the index after the last of them.  */
    218218
    219 static int first_nonopt;
    220 static int last_nonopt;
     219STATIC_VAR int first_nonopt;
     220STATIC_VAR int last_nonopt;
    221221
    222222/* Exchange two adjacent subsequences of ARGV.
Note: See TracChangeset for help on using the changeset viewer.