summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-22 11:44:26 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-22 11:44:26 (GMT)
commit117dbdf4b46c9859d787fbd97f16133bf487f264 (patch)
tree082eed1063e34584cf0c64515bcd8acc56a08189 /Mac/scripts
parent44c4c6dbd6044291ca139edd4f0add84d784df04 (diff)
downloadcpython-117dbdf4b46c9859d787fbd97f16133bf487f264.zip
cpython-117dbdf4b46c9859d787fbd97f16133bf487f264.tar.gz
cpython-117dbdf4b46c9859d787fbd97f16133bf487f264.tar.bz2
Added an optional file with MacErrors.h extensions: IC errors aren't in there.
Bugfix candidate.
Diffstat (limited to 'Mac/scripts')
-rwxr-xr-xMac/scripts/mkestrres-macerrors.h13
-rw-r--r--Mac/scripts/mkestrres.py6
2 files changed, 19 insertions, 0 deletions
diff --git a/Mac/scripts/mkestrres-macerrors.h b/Mac/scripts/mkestrres-macerrors.h
new file mode 100755
index 0000000..26c583d
--- /dev/null
+++ b/Mac/scripts/mkestrres-macerrors.h
@@ -0,0 +1,13 @@
+ /* Errors from InternetConfig.h */
+ icPrefNotFoundErr = -666, /* Internet preference not found */
+ icPermErr = -667, /* cannot set preference */
+ icPrefDataErr = -668, /* problem with preference data */
+ icInternalErr = -669, /* Internet Config internal error */
+ icTruncatedErr = -670, /* more data was present than was returned */
+ icNoMoreWritersErr = -671, /* you cannot begin a write session because someone else is already doing it */
+ icNothingToOverrideErr = -672, /* no component for the override component to capture */
+ icNoURLErr = -673, /* no URL found */
+ icConfigNotFoundErr = -674, /* no internet configuration was found */
+ icConfigInappropriateErr = -675, /* incorrect manufacturer code */
+ icProfileNotFoundErr = -676, /* profile not found */
+ icTooManyProfilesErr = -677 /* too many profiles in database */
diff --git a/Mac/scripts/mkestrres.py b/Mac/scripts/mkestrres.py
index c5ff6d3..bf56e43 100644
--- a/Mac/scripts/mkestrres.py
+++ b/Mac/scripts/mkestrres.py
@@ -123,6 +123,12 @@ def main():
parse_errors_h(fp, dict)
fp.close()
+ fss, ok = macfs.PromptGetFile("Where is mkestrres-MacErrors.h?")
+ if not ok: return
+ fp = open(fss.as_pathname())
+ parse_errors_h(fp, dict)
+ fp.close()
+
if not dict:
return