summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Renamed.Roger E. Masse1996-12-241-0/+8530
| | | | | However: "cgensupport.h" is still present... otherwise I get maaaany type errors... not sure if this needs more attention.
* 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.
* Renamed.Roger E. Masse1996-12-201-380/+406
|
* Several changes. Test program to follow.Barry Warsaw1996-12-201-162/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Where optional arguments were being used, converted to PyArg_ParseTuple() style instead of nested PyArg_Parse() style. - Check for and handle many potential error conditions that were never being tested. - internal reg_* functions renamed to regobj_* (makes it easier to figure out which are global regex functions and which are for regex objects). - reg_group (now regobj_group) was quite extensively reworked. it no longer recurses to do its job (by factoring core functionality into a separate function that knows about string and integer indexes). - some minor formatting fixes. - regex_set_syntax() now invalidates the cache. Without this change (in the example below), the second search would produce different output depending on whether the first search were performed or not (since performing the first search would cache the compiled object with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail). regex.search('(a+)|(b+)', 'cdb') prev = regex.set_syntax(RE_SYNTAX_AWK) regex.search('(a+)|(b+)', 'cdb')
* Renamed.Roger E. Masse1996-12-201-615/+625
|
* 1. Export open(2) flag constants for every defined constantBarry Warsaw1996-12-191-16/+88
| | | | 2. Reworked error checking in initposix() and initnt().
* Minor formatting changes.Barry Warsaw1996-12-191-10/+11
|
* Minor formatting changes.Barry Warsaw1996-12-191-31/+33
|
* Added the new getprotobyname() call to the module overview at the top.Guido van Rossum1996-12-191-0/+1
|
* Added getprotobyname() interface.Guido van Rossum1996-12-191-0/+24
|
* Removed references to getdoublearg and get2doublearg rename macros andRoger E. Masse1996-12-181-8/+5
| | | | substituted the appropriate PyArg_Parse calls. Retested. All appears well.
* Eradicated all references to getintarg and getstrarg and substituded theRoger E. Masse1996-12-181-5/+2
| | | | proper functions as defined in rename2.h. Thanks Barry!
* Opps, left out two defines needed for argument parsing.Roger E. Masse1996-12-181-0/+3
|
* Tabification changes only; the module was already newly named.Barry Warsaw1996-12-181-32/+37
|
* Renamed.Roger E. Masse1996-12-181-28/+27
|
* Added Jeremy's resource module.Guido van Rossum1996-12-183-0/+242
|
* Correct *another* mistake (initmath() always fell through to fatal error).Guido van Rossum1996-12-181-0/+1
| | | | Watch it, Barry! :-)
* Correct 1-char typo / syntax error.Guido van Rossum1996-12-181-1/+1
|
* Corrected two errors introduced by the renaming (and the subsequentGuido van Rossum1996-12-171-5/+10
| | | | | style corrections, I presume), found by Jack. Added warning that this has not been tested (Jack could only compile and link it).
* Renamed in a grand-ee-ous way!Roger E. Masse1996-12-171-171/+176
|
* Opps, left in a /*#include "modsupport.h"*/Roger E. Masse1996-12-171-1/+0
|
* Grandly renamed.Roger E. Masse1996-12-171-61/+65
|
* Another fix for Split() -- don't refuse {"} but turn it into ".Guido van Rossum1996-12-171-1/+7
| | | | | | This is needed because if a configure option has " as its value, it will be rendered as {"}; after stripping one level of quoting it's just ", on which splitlist will barf.
* Check errors returned by recursive call to Split().Guido van Rossum1996-12-171-5/+12
|
* Better error checking in initmath().Barry Warsaw1996-12-171-2/+13
|
* Renamed.Barry Warsaw1996-12-171-102/+102
|
* Updated to standard Python C coding style, and fixed a few errorBarry Warsaw1996-12-171-110/+116
| | | | checking nits.
* initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions forBarry Warsaw1996-12-161-0/+8
| | | | | | | SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether these were typos or if there are systems that use these alternate names. We've checked Solaris, SunOS, and IRIX; they contain only the SIGX* names.
* list2set(): correct return value (an int, not a PyObject*).Barry Warsaw1996-12-161-1/+1
|
* Removed a #inlclude <errno.h> since it's implied with "Python.h"Roger E. Masse1996-12-131-2/+0
|
* list2set(): PyList_GetItem could fail.Barry Warsaw1996-12-131-1/+3
|
* Renamed.Roger E. Masse1996-12-131-73/+75
|
* Get rid of it -- use bsddb!Guido van Rossum1996-12-131-387/+0
|
* Opps, fixed a couple of newly introduced wrapping problems.Roger E. Masse1996-12-131-3/+4
|
* Reindented via GvR recomendation ala Bwarsaw cppy-style.elRoger E. Masse1996-12-131-69/+69
|
* Added the example "thin ice" from the extensions manual.Guido van Rossum1996-12-131-0/+24
|
* Renamed, and scrutinized for missed potential error conditions.Barry Warsaw1996-12-131-341/+411
| | | | Alas, I don't have an Indigo, so I could not even compile this.
* Renamed, however there is no test case. I did test some of the moduleBarry Warsaw1996-12-131-194/+200
| | | | | out manually, and it does compile, but I'm not sure how to write a useful portable test case. Maybe later...
* Renamed.Barry Warsaw1996-12-121-82/+88
|
* Renamed, but *not* tested or compiled. I don't even have the STDWINBarry Warsaw1996-12-121-786/+791
| | | | library.
* Reworked to eliminate all potential memory problems, includingBarry Warsaw1996-12-121-74/+111
| | | | deletion of object from list argument during callout to fileno().
* Several changes... Guido *please* take a look!Barry Warsaw1996-12-121-163/+201
| | | | | | | | | | | | | | | | | | 1. Renamed 2. Several coding styles were being used here, owing to the multiple contributors. I tried to convert everything to standard "python" coding style for indentation, paren and brace placement, etc. 3. There were several potential error conditions that were never being checked, and where I saw them, I added checks of return values, etc. I'm pretty sure I got them all. 4. There were some old-style (pre PyArg_ParseTuple) argument extraction and these were converted to use PyArg_ParseTuple. All changes compile and run with the new test_select.py module, at least on my Solaris/Sparc box.
* Grandly renamed.Barry Warsaw1996-12-111-50/+52
| | | | | Note that since I have no idea how to test this, I didn't write a test case. It does seem to at least compile on my system though.
* Renamed.Barry Warsaw1996-12-111-23/+29
|
* cat and puste errorsBarry Warsaw1996-12-111-2/+5
|
* nis_maplist(): Use check of yp_get_default_domain() return valueBarry Warsaw1996-12-111-1/+5
| | | | | | that's used in other parts of this module. nis_maps(): use PyArg_NoArgs().
* Renamed, and bug fixed:Barry Warsaw1996-12-111-111/+123
| | | | | | | | | | | | | | | | | | | Two interesting problems in nis_maplist(). First, it is possible that clnt_create() will return NULL. This was being caught, but no Python error was being set. I use clnt_spcreateerror() to generate the value of the exception. But why would clnt_create() fail? It's because no server was being found. And why was this? It was because nis_maplist() tried only to get the NIS master for the first map in the aliases list, which is passwd.byname, and guess what? That's the one NIS map CNRI does *not* export! So the yp_master() call was failing to return a valid server. I now cycle through all the map aliases until I find a valid master. If not, a different exception is set. I'm not sure this is the completely correct way to do all this, but short of rewriting the entire nismodule.c (to expose the proper API to Python), it should do the trick.
* Renamed.Barry Warsaw1996-12-101-504/+503
| | | | | Note that there is no test suite for this module, and I don't plan to write one just now.
* Renamed.Barry Warsaw1996-12-101-81/+84
|
* Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy.Guido van Rossum1996-12-101-5/+28
|