summaryrefslogtreecommitdiff
path: root/Modules/flmodule.c
AgeCommit message (Collapse)AuthorLines
2001-12-08Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum-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.
2001-11-28sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters-4/+4
Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-10/+0
This should match the situation in the 1.6b1 tree.
2000-07-22Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters-3/+3
possible.
2000-07-21Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters-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 ;)
2000-07-16Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters-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 ;)
2000-07-12Fixed up some ANSIfications.Sjoerd Mullender-1/+1
2000-07-10ANSI-fication of the SGI modules (note that svmodule.c and sgimodule.cPeter Schneider-Kamp-544/+177
have already been checked in) UNTESTED!
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-30Trent Mick <trentm@activestate.com>:Fred Drake-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.
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-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.)
1998-12-04Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum-1/+1
on BeOS or Windows.
1997-04-29Keep gcc -Wall happy.Guido van Rossum-25/+0
1997-01-03Renamed, but untested.Roger E. Masse-763/+778
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-09-11Correct typo: return -1 for error, not NULLGuido van Rossum-1/+1
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-136/+136
1994-01-03One NULL should have been 0.Sjoerd Mullender-1/+1
1993-07-26forms_set_event_call_back: argument of None resets event callback to NULL.Guido van Rossum-0/+2
1993-07-05* Makefile: added all: and default: targets.Guido van Rossum-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.
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-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().
1993-03-30Changes to speed up local variables enormously, by avoiding dictionaryGuido van Rossum-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.
1993-03-16* Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum-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.
1992-10-18* bltinmodule.c: added built-in function cmp(a, b)Guido van Rossum-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.)
1992-09-17* Makefile: added IMGFILE; moved some stuff around.Guido van Rossum-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.
1992-09-03Use getargs() everywhere now. Standardize lay-out yet more (an ongoingGuido van Rossum-196/+248
project :-). Change object administration: objects are removed from the list of known objects as soon as their form is destroyed.
1992-08-13Modified to allow other threads to run in a multithreaded environment.Jack Jansen-1/+27
1992-08-05* Makefile: cosmeticsGuido van Rossum-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
1992-06-03 fixed bugs in generic_setattr (returned NULL instead ofGuido van Rossum-2/+2
-1 for errors)
1992-04-08in form_dealloc, only hide the form if it's visibleGuido van Rossum-1/+2
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27Added forms_(de)activate_all_forms functions; minor lay-out fixes.Guido van Rossum-18/+40
1992-03-24Got rid of display_form() (same as show_form()).Guido van Rossum-15/+0
1992-03-23Implemented show_choice(); moved items around a little bit.Guido van Rossum-9/+47
1992-01-27Use getargs() function.Guido van Rossum-184/+41
1991-12-16Hide forms before discarding them.Guido van Rossum-0/+1
1991-12-10Support for FORMS 2.0.Guido van Rossum-33/+170
1991-11-19Fixed duplicate use of OFF macro.Guido van Rossum-0/+6
1991-11-12Finally added form attributes.Guido van Rossum-5/+38
1991-10-20Done a little bit about garbage collection.Guido van Rossum-103/+218
Made some routines a little bit more robust.
1991-09-13Return window ID of form (later should use attr list liek objects).Guido van Rossum-0/+2
1991-08-08Fixed almost all list errors.Guido van Rossum-16/+20
1991-08-08Lots of cosmetic changes.Guido van Rossum-310/+325
Lots of small bugfixes (lint!). Made bgn_group and end_group form methods instead of top-level functions.
1991-08-08Adde get_mouse and find_first/find_last (by robertl)Guido van Rossum-0/+72
1991-08-07Initial revisionGuido van Rossum-0/+2177