1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
/*
*
* Copyright (C) 1994 Arno Schaefer
*
* AU: Prototypen und externe Variablen fuer getopt ()
*
* PO: ANSI C
*
*/
/* see getopt.h for changes */
#ifndef GETOPT_H
#define GETOPT_H
/* next line added by <cade@biscom.net> see getopt2.cpp for changes */
#define GETOPT(opts) while((optc = getopt2(argc, argv, opts)) != -1)
/* avoid C/C++ linkage declarations conflict with <getopt.h> */
extern "C" {
extern char *optarg;
extern int optind;
extern int opterr;
extern int optopt;
extern int optc;
/*
* set this to `0' to avoid warning message from getopt when
* reach unknown option
*/
extern int opterr_report;
} /* extern "C" */
/* name changed to getopt2 to avoid library function mismatch */
int getopt2(int argc, char *argv[], char *optstring);
#endif
|