Mailing List Archive

python/dist/src/Mac/scripts mkestrres-macerrors.h,NONE,1.1 mkestrres.py,1.8,1.9
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv12197

Modified Files:
mkestrres.py
Added Files:
mkestrres-macerrors.h
Log Message:
Added an optional file with MacErrors.h extensions: IC errors aren't in there.

Bugfix candidate.

--- NEW FILE: mkestrres-macerrors.h ---
/* 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 */

Index: mkestrres.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/mkestrres.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** mkestrres.py 22 Jan 2002 23:25:12 -0000 1.8
--- mkestrres.py 22 Apr 2002 11:44:26 -0000 1.9
***************
*** 124,127 ****
--- 124,133 ----
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