Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 117dbdf

Browse files
committed
Added an optional file with MacErrors.h extensions: IC errors aren't in there.
Bugfix candidate.
1 parent 44c4c6d commit 117dbdf

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Mac/scripts/mkestrres-macerrors.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Errors from InternetConfig.h */
2+
icPrefNotFoundErr = -666, /* Internet preference not found */
3+
icPermErr = -667, /* cannot set preference */
4+
icPrefDataErr = -668, /* problem with preference data */
5+
icInternalErr = -669, /* Internet Config internal error */
6+
icTruncatedErr = -670, /* more data was present than was returned */
7+
icNoMoreWritersErr = -671, /* you cannot begin a write session because someone else is already doing it */
8+
icNothingToOverrideErr = -672, /* no component for the override component to capture */
9+
icNoURLErr = -673, /* no URL found */
10+
icConfigNotFoundErr = -674, /* no internet configuration was found */
11+
icConfigInappropriateErr = -675, /* incorrect manufacturer code */
12+
icProfileNotFoundErr = -676, /* profile not found */
13+
icTooManyProfilesErr = -677 /* too many profiles in database */

Mac/scripts/mkestrres.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ def main():
123123
parse_errors_h(fp, dict)
124124
fp.close()
125125

126+
fss, ok = macfs.PromptGetFile("Where is mkestrres-MacErrors.h?")
127+
if not ok: return
128+
fp = open(fss.as_pathname())
129+
parse_errors_h(fp, dict)
130+
fp.close()
131+
126132
if not dict:
127133
return
128134

0 commit comments

Comments
 (0)