Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GCC 3.x has deprecated multi-line string constants. | Tim Potter | 2003-03-19 | 1 | -91/+87 |
| | |||||
* | Quieten compiler warning. | Tim Potter | 2003-02-24 | 1 | -0/+7 |
| | |||||
* | Doc | Martin Pool | 2003-02-20 | 1 | -1/+1 |
| | |||||
* | (Merge from APPLIANCE_HEAD) | Martin Pool | 2003-02-20 | 1 | -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 Pool | 2002-12-12 | 1 | -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 Potter | 2002-12-11 | 1 | -1/+1 |
| | |||||
* | FUNCTION_MACRO change broke the Python modules. | Tim Potter | 2002-12-04 | 1 | -7/+16 |
| | | | | Also fix up string pasting (I thought this should only be a warning?) | ||||
* | use FILE_MACRO instead of __FILE__ | Herb Lewis | 2002-12-03 | 1 | -6/+6 |
| | | | | use FUNCTION_MACRO instead of __FUNCTION_ | ||||
* | Fix comment - 850 -> iso8859-1 | Jeremy Allison | 2002-11-27 | 1 | -1/+1 |
| | | | | Jeremy. | ||||
* | Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding. | Jeremy Allison | 2002-11-27 | 1 | -10/+0 |
| | | | | Jeremy. | ||||
* | Add support for new 'F' format, which is a string in the default | Martin Pool | 2002-11-22 | 1 | -34/+64 |
| | | | | codepage. | ||||
* | Rename unpack_* functions to be consistent | Martin Pool | 2002-11-12 | 1 | -15/+16 |
| | | | | | | Decode CP850 strings when unpacking Add variable giving default encoding name | ||||
* | Rename pytdbpack_unpack -> pytdbunpack | Martin Pool | 2002-11-12 | 1 | -7/+7 |
| | |||||
* | Just reorder functions to put related ones together | Martin Pool | 2002-11-12 | 1 | -40/+38 |
| | |||||
* | Remove dead code for packing buffers which has now been reimplemented. | Martin Pool | 2002-11-12 | 1 | -94/+0 |
| | |||||
* | Remove dead code for packing buffers which has now been reimplemented. | Martin Pool | 2002-11-12 | 1 | -36/+0 |
| | |||||
* | Rewrite all the packing stuff so that it converts 'f' strings to CP850 | Martin Pool | 2002-11-09 | 1 | -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 Pool | 2002-11-06 | 1 | -20/+18 |
| | |||||
* | pytdbpack_pack_data: Allow first argument to be any kind of Number, | Martin Pool | 2002-11-05 | 1 | -3/+9 |
| | | | | not just an Integer. Coerce appropriately. | ||||
* | pytdbpack_pack_data: If the first argument to a 'B' code is not an | Martin Pool | 2002-11-05 | 1 | -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 and | Martin Pool | 2002-11-05 | 1 | -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 list | Martin Pool | 2002-11-05 | 1 | -21/+45 |
| | | | | by appending, rather than preallocating. | ||||
* | pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer | Martin Pool | 2002-11-04 | 1 | -2/+20 |
| | | | | or Long arguments. | ||||
* | Make sure uint32 unpacking is unsigned, and generates a Python long so | Martin Pool | 2002-11-04 | 1 | -10/+10 |
| | | | | that it can represent all the unsigned values | ||||
* | pytdbpack_calc_reqd_len: Correct calculation of packed length of | Martin Pool | 2002-11-04 | 1 | -5/+8 |
| | | | | string types | ||||
* | Change to representing buffers ('B') as (LEN, STRING) in Python, | Martin Pool | 2002-11-04 | 1 | -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 data | Martin Pool | 2002-11-04 | 1 | -8/+2 |
| | | | | values than are consumed. | ||||
* | Doc | Martin Pool | 2002-11-04 | 1 | -2/+5 |
| | |||||
* | pytdbpack_calc_reqd_len: Make exception be thrown correctly when a | Martin Pool | 2002-11-04 | 1 | -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. you | Martin Pool | 2002-10-21 | 1 | -10/+24 |
| | | | | try to pack an Int using a string tdbpack format. | ||||
* | Import my code to do reasonably fast tdbpack/unpack from Python | Martin Pool | 2002-09-09 | 1 | -0/+662 |