summaryrefslogtreecommitdiffstats
path: root/Modules/rotormodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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