summaryrefslogtreecommitdiffstats
path: root/Python/frozenmain.c
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.4 (#22633)Benjamin Peterson2015-02-141-6/+9
|\
| * avoid reading unallocated memory when argc == 0 (closes #22633)Benjamin Peterson2015-02-141-6/+9
| |
* | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, renameVictor Stinner2014-08-011-1/+1
|/ | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
* Issue #15893: Improve error handling in main() and Py_FrozenMain()Victor Stinner2013-07-271-16/+23
| | | | | | * handle _PyMem_RawStrdup() failure * Py_FrozenMain() releases memory on error * Py_FrozenMain() duplicates the old locale, as done in main()
* Py_FrozenMain() now uses _Py_char2wchar() to decode command line arguments, asVictor Stinner2013-07-271-18/+4
| | | | done in main()
* Issue #18203: Replace PyMem_Malloc() with PyMem_RawMalloc() at Python ↵Victor Stinner2013-07-261-6/+6
| | | | initialization
* Issue #15893: frozenmain.c now handles PyMem_Malloc() failureVictor Stinner2013-07-261-2/+9
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-77/+77
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* #4004: Missing newline in some startup error messages.Amaury Forgeot d'Arc2008-10-071-4/+4
| | | | Patch by Victor.
* Issue #3696: Error parsing arguments on OpenBSD <= 4.4 and Cygwin.Antoine Pitrou2008-09-031-1/+10
| | | | Patch by Amaury Forgeot d'Arc, reviewed by me.
* Change command line processing API to use wchar_t.Martin v. Löwis2008-04-051-3/+36
| | | | Fixes #2128.
* Patch #569753: Remove support for WIN16.Martin v. Löwis2002-06-301-5/+5
| | | | Rename all occurrences of MS_WIN32 to MS_WINDOWS.
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-9/+0
|
* Add -E command line switch (ignore environment variables like PYTHONHOMENeil Schemenauer2001-07-231-2/+2
| | | | and PYTHONPATH).
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* ANSIfy as many declarations as possible.Thomas Wouters2000-07-221-3/+3
|
* Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters2000-07-221-3/+1
| | | | declarations yet, those come later.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Call PyInitFrozenExtensions() as requested by Mark Hammond (his patch).Guido van Rossum1999-01-021-0/+4
|
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-0/+5
|
* Make calls into ../PC/frozen_dllmain.c on MS_WIN32.Guido van Rossum1998-04-031-0/+11
|
* Set Py_FrozenFlag, to suppress error messages from getpath.c.Guido van Rossum1998-02-061-0/+2
|
* Add unistd.h for isatty().Guido van Rossum1998-01-191-0/+4
|
* Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.Guido van Rossum1997-12-021-0/+1
|
* Keep gcc -Wall happyGuido van Rossum1997-08-151-2/+2
|
* frozenmain.c is now also in the library,Guido van Rossum1997-07-191-5/+1
| | | | with entry point Py_FrozenMain().
* Tracking changes to Py_Main():Guido van Rossum1997-07-191-18/+4
| | | | | | | | - Got rid of inspection of some environment variables. - Got rid of Py_GetProgramName() and related logic. - Print the version header *after* successful initialization.
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* getprogramname -> Py_GetProgramName.Guido van Rossum1996-08-191-2/+2
|
* grand renaming; added copyright to some filesGuido van Rossum1996-05-281-7/+3
|
* moved stuff around to resemble main.cGuido van Rossum1995-08-041-5/+8
|
* renaming phase 3Guido van Rossum1995-03-311-15/+15
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
* Merge back to main trunkGuido van Rossum1994-08-301-5/+28
|
* Must initialize 'inspect' flagGuido van Rossum1993-11-051-1/+2
|
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-051-3/+1
| | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
* * pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum1993-06-241-3/+18
| | | | | | | | | | | (the latter also in frozenmain.c) * ceval.c: global 'killprint' flag raises exception when printing an expression statement's value (useful for finding stray output) * timemodule.c: add asctime() and ctime(). Change julian date to 1-based origin (as intended and documented). * Removed unused DO_TIMES stuff from timemodule.c. Added 'epoch' and 'day0' globals (year where time.time() == 0 and day of the week the epoch started).
* Support for frozen scripts; added -i option.Guido van Rossum1993-04-011-0/+57