Changeset 388 for python/vendor/current/PC/generrmap.c
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/PC/generrmap.c
r2 r388 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.