Thomas Wouters
2cffc7d420
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
...
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.
2000-11-03 08:18:37 +00:00
Thomas Wouters
f70ef4f860
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
...
declarations yet, those come later.
2000-07-22 18:47:25 +00:00
Guido van Rossum
2adac0a637
Tim Peters discovered a bug in the Python-supplied getopt():
...
it doesn't recognize a lone dash as a non-flag argument.
Now it does.
1999-09-13 13:45:32 +00:00
Guido van Rossum
0e1d0e95ea
Patch by Chris Herborth:
...
have to use a const-correct prototype on BeOS or the compiler gets uppity.
1998-12-17 18:03:10 +00:00
Guido van Rossum
b4102bf5f8
Fix a bug in this code that made it do the wrong thing when an option
...
was a single '-'. Thanks to Andrew Kuchling.
1997-09-30 22:00:13 +00:00
Guido van Rossum
62bf108392
(Jack:) Don't define TRUE and FALSE if already defined.
1997-04-11 19:19:46 +00:00
Guido van Rossum
10bb1c46f1
don't use function prototypes
1995-01-20 16:54:36 +00:00
Guido van Rossum
871b805a04
New version handles -o<string> same as -o <string>
1994-04-28 12:33:58 +00:00
Guido van Rossum
2508ade19e
A getopt.c for your amusement
1994-04-14 14:08:22 +00:00