summaryrefslogtreecommitdiffstats
path: root/source/python/py_tdbpack.c
Commit message (Collapse)AuthorAgeFilesLines
* GCC 3.x has deprecated multi-line string constants.Tim Potter2003-03-191-91/+87
|
* Quieten compiler warning.Tim Potter2003-02-241-0/+7
|
* DocMartin Pool2003-02-201-1/+1
|
* (Merge from APPLIANCE_HEAD)Martin Pool2003-02-201-0/+3
| | | | | | | CR1829: Fix memory leak when unpacking 'B' buffers in Python. (PyList_Append creates a new reference to the added object, and so we have to release the existing one.)
* CR1333: Fix memory leak when unpacking some structures.Martin Pool2002-12-121-10/+15
| | | | | | * (pytdbunpack_item): PyList_Append creates an additional reference to the appended object. Therefore, release the initial reference after it's added to the list.
* Some more tweaking for compilation of py_tdbpack.Tim Potter2002-12-111-1/+1
|
* FUNCTION_MACRO change broke the Python modules.Tim Potter2002-12-041-7/+16
| | | | Also fix up string pasting (I thought this should only be a warning?)
* use FILE_MACRO instead of __FILE__Herb Lewis2002-12-031-6/+6
| | | | use FUNCTION_MACRO instead of __FUNCTION_
* Fix comment - 850 -> iso8859-1Jeremy Allison2002-11-271-1/+1
| | | | Jeremy.
* Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.Jeremy Allison2002-11-271-10/+0
| | | | Jeremy.
* Add support for new 'F' format, which is a string in the defaultMartin Pool2002-11-221-34/+64
| | | | codepage.
* Rename unpack_* functions to be consistentMartin Pool2002-11-121-15/+16
| | | | | | Decode CP850 strings when unpacking Add variable giving default encoding name
* Rename pytdbpack_unpack -> pytdbunpackMartin Pool2002-11-121-7/+7
|
* Just reorder functions to put related ones togetherMartin Pool2002-11-121-40/+38
|
* Remove dead code for packing buffers which has now been reimplemented.Martin Pool2002-11-121-94/+0
|
* Remove dead code for packing buffers which has now been reimplemented.Martin Pool2002-11-121-36/+0
|
* Rewrite all the packing stuff so that it converts 'f' strings to CP850Martin Pool2002-11-091-174/+274
| | | | | | | | on encoding. (Tough luck if your Samba codepage is not 850.) It's much cleaner and possibly more efficient now too: just build one big list of strings, then zip it up at the end. Still need to do this for unpacking.
* pytdbpack_unpack: Clean up, and correct the handling of '$'.Martin Pool2002-11-061-20/+18
|
* pytdbpack_pack_data: Allow first argument to be any kind of Number,Martin Pool2002-11-051-3/+9
| | | | not just an Integer. Coerce appropriately.
* pytdbpack_pack_data: If the first argument to a 'B' code is not anMartin Pool2002-11-051-1/+3
| | | | | Integer, raise an error rather than just returning Null, which breaks the interpreter.
* pytdbpack_pack_data: Oops, since B is separately encoded as buffer andMartin Pool2002-11-051-5/+8
| | | | | length we need separate counters traversing the format and value sequences to pack them.
* pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form listMartin Pool2002-11-051-21/+45
| | | | by appending, rather than preallocating.
* pytdbpack_pack_data: Allow 'd' and 'w' formats to take either IntegerMartin Pool2002-11-041-2/+20
| | | | or Long arguments.
* Make sure uint32 unpacking is unsigned, and generates a Python long soMartin Pool2002-11-041-10/+10
| | | | that it can represent all the unsigned values
* pytdbpack_calc_reqd_len: Correct calculation of packed length ofMartin Pool2002-11-041-5/+8
| | | | string types
* Change to representing buffers ('B') as (LEN, STRING) in Python,Martin Pool2002-11-041-130/+112
| | | | | | rather than as just a string. Makes the code more messy, but needed for compatibility with existing PSA Python code which seems to be too knotty to separate out.
* pytdbpack_calc_reqd_len: It's no longer an error to supply more dataMartin Pool2002-11-041-8/+2
| | | | values than are consumed.
* DocMartin Pool2002-11-041-2/+5
|
* pytdbpack_calc_reqd_len: Make exception be thrown correctly when aMartin Pool2002-11-041-2/+5
| | | | | | | | non-string is used with a string format code. (It was being generated but not thrown.) Also call checked versions of some functions rather than FAST_* versions.
* Give better error messages for TypeError, which will arise if e.g. youMartin Pool2002-10-211-10/+24
| | | | try to pack an Int using a string tdbpack format.
* Import my code to do reasonably fast tdbpack/unpack from PythonMartin Pool2002-09-091-0/+662