mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
Added an optional file with MacErrors.h extensions: IC errors aren't in there.
Bugfix candidate.
This commit is contained in:
parent
44c4c6dbd6
commit
117dbdf4b4
2 changed files with 19 additions and 0 deletions
13
Mac/scripts/mkestrres-macerrors.h
Executable file
13
Mac/scripts/mkestrres-macerrors.h
Executable file
|
|
@ -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 */
|
||||||
|
|
@ -123,6 +123,12 @@ def main():
|
||||||
parse_errors_h(fp, dict)
|
parse_errors_h(fp, dict)
|
||||||
fp.close()
|
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:
|
if not dict:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue