Charles Kerr
|
78ead8c3dd
|
(trunk) update the copyright notices
|
2009-12-05 02:19:24 +00:00 |
|
Charles Kerr
|
6d008257c8
|
(trunk libT) minor tweaks: make bencode's int parser code more consistent; make some comments more readable
|
2009-12-02 15:16:29 +00:00 |
|
Charles Kerr
|
515a3f986f
|
(trunk, libT) fix code in the UTF8-to-JSON serializer that could fall into an infinite loop when fed some inputs. This may be ticket #2326 or may get its own retroactive ticket, depending on feedback from #2326's reporter
|
2009-09-02 15:26:34 +00:00 |
|
Charles Kerr
|
bf1a544939
|
(trunk) all this commit does is remove trailing whitespace from some c, c++, and javascript source
|
2009-08-12 14:40:32 +00:00 |
|
Charles Kerr
|
723cabb542
|
(trunk libT) prevent potential rounding errors when sending floating-point numbers across the wire in json form
|
2009-08-03 23:18:02 +00:00 |
|
Charles Kerr
|
69bbff4d92
|
(trunk libT) fix a couple of minor gcc warnings
|
2009-07-17 18:00:29 +00:00 |
|
Charles Kerr
|
1ae47c697d
|
(trunk) silence some minor gcc warnings
|
2009-06-23 14:15:23 +00:00 |
|
Charles Kerr
|
6a568403d2
|
(trunk libT) #2179: memory allocation in benc could be more efficient
|
2009-06-07 17:54:28 +00:00 |
|
Charles Kerr
|
38a032b1bf
|
(trunk libT) possible fix for benc/json saving issues reported in 1.70. This is a guess from rb07's post in the forums about bencode.c, and from John Clay's comments in irc
|
2009-06-06 19:30:32 +00:00 |
|
Charles Kerr
|
ab56a2f7f7
|
(trunk libT) fix potential permissions headache when saving json/benc files
|
2009-06-04 15:52:54 +00:00 |
|
Charles Kerr
|
b6f3b15f0a
|
(trunk libT) handle windows when saving json files; use evbuffer_write() more safely
|
2009-06-03 21:08:54 +00:00 |
|
Charles Kerr
|
9513fcbe66
|
(trunk libT) add a bunch of comments denoting where the libevent 2.0 changes will go
|
2009-06-02 18:21:23 +00:00 |
|
Charles Kerr
|
9238fb0299
|
(trunk) #2131: clean up benc read/write API
|
2009-06-02 01:48:48 +00:00 |
|
Charles Kerr
|
9bfec90e43
|
(trunk libT) avoid about 75% of the strdup/malloc/frees in benc by using a union of char* and a small string buffer, and using the buffer if the string is small enough
|
2009-06-01 22:15:50 +00:00 |
|
Charles Kerr
|
7f85090587
|
(trunk) add a "source" argument to tr_jsonParse() so that if there's an error we can log the filename, or that it came from rpc, etc.
|
2009-06-01 18:57:37 +00:00 |
|
Charles Kerr
|
f538b08fb3
|
(trunk libT) tracker.c was using tr_benc's private fields
|
2009-06-01 18:12:36 +00:00 |
|
Charles Kerr
|
62109971c5
|
(trunk libT) fix two trivial compiler warnings from r8562
|
2009-05-30 21:59:09 +00:00 |
|
Charles Kerr
|
d1b36fee6f
|
(trunk libT) a little bit of early futureproofing for libevent 2.0
|
2009-05-29 20:52:42 +00:00 |
|
Charles Kerr
|
80158af42f
|
(trunk libT) #2086: JSON RPC messages can be 86% shorter, using less bandwidth and CPU
|
2009-05-16 15:38:47 +00:00 |
|
Charles Kerr
|
1c3f3acbca
|
(trunk) add an option to the JSON generator to disable the human-readable indentations. Keep indenting the data files such as settings.json, but don't indent the messages used for RPC. This cuts the cost of deflate()ing those RPC messages by about 80%...
|
2009-05-16 05:51:52 +00:00 |
|
Charles Kerr
|
7f08a87969
|
(trunk libT) #2046: fix JSON bug when parsing floating point numbers in some locales
|
2009-05-09 18:01:29 +00:00 |
|
Charles Kerr
|
8387e3abcc
|
(trunk libT) minor benc cleanups
|
2009-04-16 21:01:00 +00:00 |
|
Charles Kerr
|
1ab6ce13eb
|
more benc code simplification
|
2009-04-09 00:26:53 +00:00 |
|
Charles Kerr
|
d1c6956598
|
(trunk) tr_metaInfoBuilderCreate() doesn't need a tr_session* handle anymore
|
2009-04-08 18:47:48 +00:00 |
|
Charles Kerr
|
8c372572a2
|
(trunk libT) faster serialization from tr_benc structs into json and benc formats
|
2009-04-08 17:25:17 +00:00 |
|
Charles Kerr
|
3a28dd02e5
|
(trunk libT) silence a spurious warning in the new bencode code
|
2009-04-06 01:32:55 +00:00 |
|
Charles Kerr
|
6373802ca8
|
better bool, real handling in (1) the gtk prefs interface, (2) the dictionary merge code, (2) the json parser
|
2009-04-05 23:46:53 +00:00 |
|
Charles Kerr
|
dce5997f29
|
(trunk) fix another new bencode bug. add some more unit tests for benc.
|
2009-04-05 23:16:45 +00:00 |
|
Charles Kerr
|
8f256a4648
|
(trunk libT) update one of the validity tests to understand the bool and double types
|
2009-04-05 21:33:06 +00:00 |
|
Charles Kerr
|
248a0c7fcb
|
(trunk) change the bencode type enum to prevent OS-level collision
|
2009-04-05 18:02:11 +00:00 |
|
Charles Kerr
|
8a8c8711d8
|
(trunk) Use proper notation for json floating-point and bool types. For backwards compatability, still allow old-style printf strings as doubles, and 0s and 1s as bools.
|
2009-04-05 17:52:21 +00:00 |
|
Charles Kerr
|
beb71cd7ed
|
(trunk) make tr_bencGetReal() work better in i18n settings
|
2009-03-30 04:45:40 +00:00 |
|
Charles Kerr
|
b827a37dbd
|
(trunk libT) add tr_bencGetBool() and tr_bencGetDouble()
|
2009-03-30 01:46:48 +00:00 |
|
Charles Kerr
|
f4557fab8e
|
(trunk) use tr_bencDict{Find,Add}Bool() where appropriate
|
2009-03-29 23:05:32 +00:00 |
|
Charles Kerr
|
d2d507725b
|
(trunk rpc) add "seed ratio" feature to RPC
|
2009-03-29 18:45:35 +00:00 |
|
Charles Kerr
|
e892398a95
|
(trunk libT) make tr-getopt C++ friendly
|
2009-03-17 18:08:02 +00:00 |
|
Charles Kerr
|
b5a6f8a013
|
(trunk libT) #1845: if settings.json is empty, T crashes with "Assertion: tr_bencIsDict( source ) failed"
|
2009-02-18 16:47:27 +00:00 |
|
Charles Kerr
|
fe816d8135
|
(trunk) update the GPL code's copyright dates
|
2009-01-10 23:09:07 +00:00 |
|
Charles Kerr
|
d4c5e904b5
|
(trunk libT) fix minor compiler warning that cropped up when upgrading our ConvertUTF8
|
2009-01-10 19:29:01 +00:00 |
|
Charles Kerr
|
c6a454d2e2
|
(trunk libT) win32 portability fixes, reported by Alexey
|
2009-01-10 02:22:13 +00:00 |
|
Charles Kerr
|
cee6610ebb
|
(trunk libT) inline the tr_bencIs*() utility functions
|
2009-01-03 00:11:31 +00:00 |
|
Charles Kerr
|
2eb2dacd50
|
(trunk libT) Fix sparse warnings: symbol 'XXX' shadows an earlier one
|
2009-01-01 18:38:49 +00:00 |
|
Charles Kerr
|
6bec82d0a6
|
(trunk libT) have tr_bencSaveAsJSON() use an evbuffer
|
2008-12-30 22:07:39 +00:00 |
|
Charles Kerr
|
ad69a937ef
|
(trunk libT) have a pool of reusable evbuffers
|
2008-12-30 20:32:00 +00:00 |
|
Charles Kerr
|
427f639664
|
(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_ptrArray, contain the tr_ptrArray directly rather than a pointer to one allocated elsewhere on the heap.
|
2008-12-29 08:54:36 +00:00 |
|
Charles Kerr
|
9594112d27
|
updated email address
|
2008-12-16 00:20:44 +00:00 |
|
Charles Kerr
|
6b0d98a695
|
(trunk) #1559: Simplify tr_sessionInitFull
|
2008-12-13 23:17:36 +00:00 |
|
Charles Kerr
|
0471e6d765
|
(trunk libT) make tr_bencDictMerge() support limited nested merges
|
2008-12-12 02:26:33 +00:00 |
|
Charles Kerr
|
72b9845a5e
|
(trunk libT) #1559 (partial): add tr_bencDictMerge() + unit tests. patch by KyleK and charles_
|
2008-12-12 02:12:17 +00:00 |
|
Charles Kerr
|
bc51d19c0d
|
(libT) #1491: json floats decimal separator depends on language settings
|
2008-11-27 18:35:26 +00:00 |
|