summaryrefslogtreecommitdiffstats
path: root/Modules/rotormodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [Patch #679505] Trigger DeprecationWarning on importing the rotor moduleAndrew M. Kuchling2003-04-241-0/+4
|
* 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.
* Removed more stray instances of statichere, but left _sre.c alone.Tim Peters2002-07-171-1/+1
|
* staticforward bites the dust.Jeremy Hylton2002-07-171-1/+1
| | | | | | | | | | | | | | | 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.
* Don't accept null bytes in the key.Guido van Rossum2002-06-101-2/+1
|
* Remove METH_OLDARGS:Neal Norwitz2002-03-311-9/+9
| | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-5/+5
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | 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.
* Part of SF patch #102409 by jlt63 to support building these modulesGuido van Rossum2001-01-101-1/+2
| | | | under CYGWIN as shared libraries (DLLs).
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-311-1/+0
| | | | marked my*.h as obsolete
* 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-4/+4
| | | | | | | | | | 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 ;)
* Now that prototypes are in scope, the compiler gives legit wngsTim Peters2000-07-101-2/+2
| | | | | | about int size mismatches at two calls to s_rand. Stuffed in casts to make the code do what it did before but w/o warnings -- although unclear that's correct!
* ANSI-ficationPeter Schneider-Kamp2000-07-101-71/+25
|
* Trent Mick: use size_t instead of int where appropriate (set_key()).Guido van Rossum2000-06-281-2/+2
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-10/+18
| | | | | | | | | | 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.)
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-2/+2
| | | | PyArg_ParseTuple() format string arguments as possible.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* workaround for Mac MSL header definitions of TRUE and FALSE (Jack)Guido van Rossum1997-05-201-0/+4
|
* Keep Microsoft VC happy.Guido van Rossum1997-04-111-9/+9
|
* set_key(): Use Py_CHARMASK macro to get the character from the arrayBarry Warsaw1997-01-161-237/+43
| | | | | | | | unsigned. This fixes the 8bit-char-in-key platform incompatibility. I also removed the old backwards compatibility code, and the commented lisp rotor code. I retained the lisp docstrings as comments preceding each function.
* rotorobj_setkey(): A single string argument is now required (i.e. noBarry Warsaw1997-01-021-5/+3
| | | | long optional with nearly-no-op missing).
* Reworked to check for memory problems (one potential found),Barry Warsaw1996-12-231-204/+245
| | | | | | | | | | non-checked error return values, and where appropriate, PyArg_ParseTuple() style argument parsing. I also changed some function names and converted all malloc/free calls to PyMem_NEW/PyMem_DEL. Some stylistic changes and formatting standardization.
* changes for MPWGuido van Rossum1995-03-091-2/+2
|
* cosmetic changes so these modules will work with the strict new naming schemeGuido van Rossum1995-01-101-5/+5
|
* Another bulky set of minor changes.Guido van Rossum1995-01-021-1/+2
| | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
* * various modules: #include "Python.h" and remove most remporaryGuido van Rossum1994-09-141-5/+2
| | | | renaming hacks
* Lance has converted his modules to the new naming conventions, andGuido van Rossum1994-08-301-49/+36
| | | | | contributed a curses interface. Setup.in uses .c instead of .o now.
* Makefile.pre.in: add $(OPT) to link commandGuido van Rossum1994-08-291-102/+106
| | | | | | | audioop.c: fix for MPW config.c.in: save original argc/argv for Lance rotormodule.c: new coding conventions timemodule.c: add casts for Lance
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-22/+22
|
* * nismodule.c: database keys and values can contain null bytes. be moreGuido van Rossum1993-11-031-0/+5
| | | | | | | | | | careful about these. * arraymodule.c: added 8 byte swap; added 'i' format character; added reverse() method; rename read/write to fromfile/tofile. * config.c: Set version to 0.9.9++. * rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts will have a well-defined effect independent of word size. * bltinmodule.c: renamed bagof() to filter().
* Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT.Guido van Rossum1993-11-011-0/+15
|
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-2/+4
| | | | | | | | | | 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().
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-261-2/+2
| | | | | | | | | | | * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
* Added separate main program for the Mac: macmain.cGuido van Rossum1993-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | stdwinmodule.c: wsetfont can now return an error Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around New things in imgfile; also in Makefile. longobject.c: fix comparison of negative long ints... [REAL BUG!] marshal.c: add dumps() and loads() to read/write strings timemodule.c: make sure there's always a floatsleep() posixmodule.c: rationalize struct returned by times() Makefile: add test target, disable imgfile by default thread.c: Improved coexistance with dl module (sjoerd) stdwinmodule.c: Change include stdwin.h if macintosh rotormodule.c: added missing last argument to RTR_?_region calls confic.c: merged with configmac.c, added 1993 to copyright message fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef timemodule.c: simplify times() using mkvalue; include myselect.h earlier (for sequent). posixmodule: for sequent, include unistd.h instead of explicit extern definitions and don't define rename() Makefile: change misleading/wrong MD5 comments
* New rotor methods: setkey(), encryptmore() and decryptmore().Guido van Rossum1992-08-021-8/+89
|
* Changes to make it compile under SGI -- revamped new/dealloc a bit.Guido van Rossum1992-07-311-39/+25
|
* New file rotormodule.c (by Lance Ellinghouse).Guido van Rossum1992-07-311-0/+735