* getopt.cc (opterr): Reinstate initialization.

(optind): Ditto.
(optopt): Ditto.
* pinfo.cc: Include cygheap.h or suffer compile error.
* shared.h: Reset magic number.
This commit is contained in:
Christopher Faylor
2003-09-16 03:39:55 +00:00
parent 8ec37f2168
commit 2bfdb22e23
4 changed files with 13 additions and 4 deletions

View File

@ -53,9 +53,9 @@
#ifdef __weak_alias
__weak_alias(getopt,_getopt)
#endif
int __declspec(dllexport) opterr; /* if error message should be printed */
int __declspec(dllexport) optind; /* index into parent argv vector */
int __declspec(dllexport) optopt; /* character checked for validity */
int __declspec(dllexport) opterr = 1; /* if error message should be printed */
int __declspec(dllexport) optind = 1; /* index into parent argv vector */
int __declspec(dllexport) optopt = '?'; /* character checked for validity */
int __declspec(dllexport) optreset; /* reset getopt */
char __declspec(dllexport) *optarg; /* argument associated with option */
#endif