]> granicus.if.org Git - python/commit
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
authorThomas Wouters <thomas@python.org>
Fri, 3 Nov 2000 08:18:37 +0000 (08:18 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 3 Nov 2000 08:18:37 +0000 (08:18 +0000)
commit2cffc7d4202fc1197280a05d998075551b459283
tree7c5d86617226e1517840a60c44bd21183160b3e0
parent9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa
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.
Demo/pysvr/pysvr.c
Include/pygetopt.h [new file with mode: 0644]
Modules/main.c
Python/Makefile.in
Python/getopt.c
configure
configure.in