summaryrefslogtreecommitdiffstats
path: root/Modules/flmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* staticforward bites the dust.Jeremy Hylton2002-07-171-2/+2
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
* Convert METH_OLDARGS -> METH_NOARGS: remove args parameterNeal Norwitz2002-03-311-243/+247
| | | | Use METH_OLDARGS explicitly rather than implicitly.
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-45/+45
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-2/+2
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-4/+4
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-10/+0
| | | | This should match the situation in the 1.6b1 tree.
* Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters2000-07-221-3/+3
| | | | possible.
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-1/+1
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Fixed up some ANSIfications.Sjoerd Mullender2000-07-121-1/+1
|
* ANSI-fication of the SGI modules (note that svmodule.c and sgimodule.cPeter Schneider-Kamp2000-07-101-544/+177
| | | | | | have already been checked in) UNTESTED!
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick <trentm@activestate.com>:Fred Drake2000-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | The common technique for printing out a pointer has been to cast to a long and use the "%lx" printf modifier. This is incorrect on Win64 where casting to a long truncates the pointer. The "%p" formatter should be used instead. The problem as stated by Tim: > Unfortunately, the C committee refused to define what %p conversion "looks > like" -- they explicitly allowed it to be implementation-defined. Older > versions of Microsoft C even stuck a colon in the middle of the address (in > the days of segment+offset addressing)! The result is that the hex value of a pointer will maybe/maybe not have a 0x prepended to it. Notes on the patch: There are two main classes of changes: - in the various repr() functions that print out pointers - debugging printf's in the various thread_*.h files (these are why the patch is large) Closes SourceForge patch #100505.
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-4/+4
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Keep gcc -Wall happy.Guido van Rossum1997-04-291-25/+0
|
* Renamed, but untested.Roger E. Masse1997-01-031-765/+780
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Correct typo: return -1 for error, not NULLGuido van Rossum1996-09-111-1/+1
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-136/+136
|
* One NULL should have been 0.Sjoerd Mullender1994-01-031-1/+1
|
* forms_set_event_call_back: argument of None resets event callback to NULL.Guido van Rossum1993-07-261-0/+2
|
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-051-122/+83
| | | | | | | | | | | | * 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.
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-6/+6
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* Changes to speed up local variables enormously, by avoiding dictionaryGuido van Rossum1993-03-301-0/+9
| | | | | | lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch], pythonrun.c, import.c). The .pyc MAGIC number is changed again. Added get_menu_text to flmodule.
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-55/+15
| | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
* * bltinmodule.c: added built-in function cmp(a, b)Guido van Rossum1992-10-181-4/+3
| | | | | | | | | | | | | | | * flmodule.c: added {do,check}_only_forms to fl's list of functions; and don't print a message when an unknown object is returned. * pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup. * Made jpegmodule.c smaller by using getargs() and mkvalue() consistently. * Increased parser stack size to 500 in parser.h. * Implemented custom allocation of stack frames to frameobject.c and added dynamic stack overflow checks (value stack only) to ceval.c. (There seems to be a bug left: sometimes stack traces don't make sense.)
* * Makefile: added IMGFILE; moved some stuff around.Guido van Rossum1992-09-171-12/+75
| | | | | | | | * flmodule.c: added some missing functions; changed readonly flags of some data members based upon FORMS documentation. * listobject.c: fixed int/long arg lint bug (bites PC compilers). * several: removed redundant print methods (repr is good enough). * posixmodule.c: added (still experimental) process group functions.
* Use getargs() everywhere now. Standardize lay-out yet more (an ongoingGuido van Rossum1992-09-031-196/+248
| | | | | project :-). Change object administration: objects are removed from the list of known objects as soon as their form is destroyed.
* Modified to allow other threads to run in a multithreaded environment.Jack Jansen1992-08-131-1/+27
|
* * Makefile: cosmeticsGuido van Rossum1992-08-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* fixed bugs in generic_setattr (returned NULL instead ofGuido van Rossum1992-06-031-2/+2
| | | | -1 for errors)
* in form_dealloc, only hide the form if it's visibleGuido van Rossum1992-04-081-1/+2
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Added forms_(de)activate_all_forms functions; minor lay-out fixes.Guido van Rossum1992-03-271-18/+40
|
* Got rid of display_form() (same as show_form()).Guido van Rossum1992-03-241-15/+0
|
* Implemented show_choice(); moved items around a little bit.Guido van Rossum1992-03-231-9/+47
|
* Use getargs() function.Guido van Rossum1992-01-271-184/+41
|
* Hide forms before discarding them.Guido van Rossum1991-12-161-0/+1
|
* Support for FORMS 2.0.Guido van Rossum1991-12-101-33/+170
|
* Fixed duplicate use of OFF macro.Guido van Rossum1991-11-191-0/+6
|
* Finally added form attributes.Guido van Rossum1991-11-121-5/+38
|
* Done a little bit about garbage collection.Guido van Rossum1991-10-201-103/+218
| | | | Made some routines a little bit more robust.
* Return window ID of form (later should use attr list liek objects).Guido van Rossum1991-09-131-0/+2
|
* Fixed almost all list errors.Guido van Rossum1991-08-081-16/+20
|
* Lots of cosmetic changes.Guido van Rossum1991-08-081-310/+325
| | | | | Lots of small bugfixes (lint!). Made bgn_group and end_group form methods instead of top-level functions.
* Adde get_mouse and find_first/find_last (by robertl)Guido van Rossum1991-08-081-0/+72
|