* Added path match depth to torrent::File which can be used to quickly

determine the common root directory of two adjecent files.

* Cleaned up RC4 class.

* Fixed --with-openssl so it accepts user-supplied paths.

* Call abort instead of exit when receiving a SIGSEGV or SIGBUS.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@829 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-12-21 16:27:48 +00:00
parent fbf1a8b8a6
commit aab31e5ea5
6 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
AC_INIT(rtorrent, 0.7.0, jaris@ifi.uio.no)
AC_INIT(rtorrent, 0.7.1, jaris@ifi.uio.no)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
@@ -23,7 +23,7 @@ TORRENT_WITHOUT_NCURSESW()
TORRENT_WITHOUT_STATVFS()
TORRENT_WITHOUT_STATFS()
PKG_CHECK_MODULES(STUFF, sigc++-2.0 libtorrent >= 0.11.0,
PKG_CHECK_MODULES(STUFF, sigc++-2.0 libtorrent >= 0.11.1,
CXXFLAGS="$CXXFLAGS $STUFF_CFLAGS $CURL_CFLAGS";
LIBS="$LIBS $STUFF_LIBS $CURL_LIBS")
+4 -2
View File
@@ -37,16 +37,18 @@
#ifndef RTORRENT_CORE_DOWNLOAD_H
#define RTORRENT_CORE_DOWNLOAD_H
#include <rak/string_manip.h>
#include <sigc++/connection.h>
#include <torrent/download.h>
#include <torrent/hash_string.h>
#include <torrent/tracker_list.h>
#include <torrent/torrent.h>
#include <torrent/data/file_list.h>
#include "utils/variable_map.h"
namespace torrent {
class TrackerList;
}
namespace core {
class Download {
+1
View File
@@ -40,6 +40,7 @@
#include <rak/functional.h>
#include <rak/socket_address.h>
#include <torrent/bitfield.h>
#include <torrent/torrent.h>
#include "core/download.h"
+1
View File
@@ -44,6 +44,7 @@
#include <torrent/exceptions.h>
#include <torrent/connection_manager.h>
#include <torrent/rate.h>
#include <torrent/torrent.h>
#include <torrent/tracker.h>
#include <torrent/tracker_list.h>
#include <torrent/data/file_list.h>
+3 -2
View File
@@ -135,11 +135,12 @@ WindowFileList::redraw() {
done_percentage(e),
e->path()->encoding().c_str());
m_canvas->print(84, pos, "%i - %i %c%c",
m_canvas->print(84, pos, "%i - %i %c%c %u",
e->range().first,
e->range().first != e->range().second ? (e->range().second - 1) : e->range().second,
e->is_created() ? 'E' : 'M',
e->is_correct_size() ? 'C' : 'W');
e->is_correct_size() ? 'C' : 'W',
e->path_match_depth());
++range.first;
++pos;
+2 -1
View File
@@ -36,6 +36,7 @@
#include "config.h"
#include <cstdlib>
#include <iostream>
#include <string>
#include <sigc++/bind.h>
@@ -298,7 +299,7 @@ do_panic(int signum) {
if (signum == SIGBUS)
std::cout << "A bus error propably means you ran out of diskspace." << std::endl;
exit(-1);
std::abort();
}
void