Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Side by Side Diff: Modules/python.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/posixmodule.c ('k') | Modules/readline.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Minimal main program -- everything is loaded from the library */ 1 /* Minimal main program -- everything is loaded from the library */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include <locale.h> 4 #include <locale.h>
5 5
6 #ifdef __FreeBSD__ 6 #ifdef __FreeBSD__
7 #include <floatingpoint.h> 7 #include <floatingpoint.h>
8 #endif 8 #endif
9 9
10 #ifdef MS_WINDOWS 10 #if defined(MS_WINDOWS) && !defined(__MINGW32__)
11 int 11 int
12 wmain(int argc, wchar_t **argv) 12 wmain(int argc, wchar_t **argv)
13 { 13 {
14 return Py_Main(argc, argv); 14 return Py_Main(argc, argv);
15 } 15 }
16 #else 16 #else
17 17
18 int 18 int
19 main(int argc, char **argv) 19 main(int argc, char **argv)
20 { 20 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 free(oldloc); 57 free(oldloc);
58 res = Py_Main(argc, argv_copy); 58 res = Py_Main(argc, argv_copy);
59 for (i = 0; i < argc; i++) { 59 for (i = 0; i < argc; i++) {
60 PyMem_Free(argv_copy2[i]); 60 PyMem_Free(argv_copy2[i]);
61 } 61 }
62 PyMem_Free(argv_copy); 62 PyMem_Free(argv_copy);
63 PyMem_Free(argv_copy2); 63 PyMem_Free(argv_copy2);
64 return res; 64 return res;
65 } 65 }
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « Modules/posixmodule.c ('k') | Modules/readline.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+