Changeset 391 for python/trunk/PC/generrmap.c
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/PC/generrmap.c
r2 r391 6 6 int main() 7 7 { 8 9 10 11 12 13 14 15 16 17 18 19 8 int i; 9 printf("/* Generated file. Do not edit. */\n"); 10 printf("int winerror_to_errno(int winerror)\n"); 11 printf("{\n\tswitch(winerror) {\n"); 12 for(i=1; i < 65000; i++) { 13 _dosmaperr(i); 14 if (errno == EINVAL) 15 continue; 16 printf("\t\tcase %d: return %d;\n", i, errno); 17 } 18 printf("\t\tdefault: return EINVAL;\n"); 19 printf("\t}\n}\n"); 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.