comparison Python/exceptions.c @ 15374:a826a46bae54 legacy-trunk

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.
author Thomas Wouters <thomas@python.org>
date Fri, 03 Nov 2000 08:18:37 +0000
parents 8aa947e1eee8
children 1e756f93bf5d
comparison
equal deleted inserted replaced
15373:01922a0f6f92 15374:a826a46bae54