summaryrefslogtreecommitdiffstats
path: root/Python/getopt.c
Commit message (Collapse)AuthorAgeFilesLines
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-75/+75
|
* Improve -X error message.Georg Brandl2008-04-131-1/+1
|
* Applied patch #2617 from Frank Wierzbicki wit some extras from meChristian Heimes2008-04-121-1/+12
| | | | -J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
* Accept long options "--help" and "--version".Georg Brandl2006-07-121-4/+27
|
* spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter2006-04-131-0/+9
| | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
* Move our own getopt() implementation to _PyOS_GetOpt(), and use itThomas Wouters2000-11-031-31/+18
| | | | | | | | | 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.
* Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters2000-07-221-5/+2
| | | | declarations yet, those come later.
* Tim Peters discovered a bug in the Python-supplied getopt():Guido van Rossum1999-09-131-1/+2
| | | | | it doesn't recognize a lone dash as a non-flag argument. Now it does.
* Patch by Chris Herborth:Guido van Rossum1998-12-171-0/+4
| | | | have to use a const-correct prototype on BeOS or the compiler gets uppity.
* Fix a bug in this code that made it do the wrong thing when an optionGuido van Rossum1997-09-301-1/+4
| | | | was a single '-'. Thanks to Andrew Kuchling.
* (Jack:) Don't define TRUE and FALSE if already defined.Guido van Rossum1997-04-111-1/+4
|
* don't use function prototypesGuido van Rossum1995-01-201-1/+4
|
* New version handles -o<string> same as -o <string>Guido van Rossum1994-04-281-31/+62
|
* A getopt.c for your amusementGuido van Rossum1994-04-141-0/+54