premiere-libtorrent/include/libtorrent
Steven Siloti a6e5ba8804 return a span from TORRENT_ALLOCA (#1244)
return a span from TORRENT_ALLOCA

Unfortunately this requires moving the variable declaration inside the macro.
Due to alloca’s unique properties pretty much the only safe way to call it is
in a simple assign-to-pointer expression. Therefor we need to use a temporary
pointer to store the value returned from alloca before we can call span’s ctor.

This also causes double evaluation of the size parameter which is unfortunate,
but no current callers of TORRENT_ALLOCA have a problem with this. Passing
expressions with side effects to macros is bad mojo anyways.
2016-10-22 14:43:40 -04:00
..
aux_ fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
extensions remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
kademlia remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
ConvertUTF.h modernize: remove redundant smart ptr get(), use fixed-width integer types (#900) 2016-07-10 07:31:58 -04:00
Makefile.am fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
add_torrent_params.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
address.hpp minor cleanup and refactor (#1016) 2016-08-20 19:46:55 -04:00
alert.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
alert_manager.hpp run undefined sanitier on travis/linux (#1134) 2016-10-08 12:29:46 -04:00
alert_types.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
alloca.hpp return a span from TORRENT_ALLOCA (#1244) 2016-10-22 14:43:40 -04:00
allocator.hpp refactor to use std unordered containers and minor cleanup (#1070) 2016-09-06 23:37:36 -04:00
announce_entry.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
assert.hpp back-port windows stack trace function to 1.1 (#1017) 2016-08-21 01:07:02 -04:00
bandwidth_limit.hpp general modernization (#836) 2016-06-20 11:32:06 -04:00
bandwidth_manager.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
bandwidth_queue_entry.hpp some refactor and cleanup (#1065) 2016-09-05 22:25:20 -04:00
bandwidth_socket.hpp some refactor and cleanup (#1065) 2016-09-05 22:25:20 -04:00
bdecode.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
bencode.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
bitfield.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
block_cache.hpp minor block_cache cleanup. make hash be a unique_ptr (#1241) 2016-10-21 07:37:15 -04:00
bloom_filter.hpp ed25519 api refactor (#1041) 2016-08-30 02:37:51 -04:00
broadcast_socket.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
bt_peer_connection.hpp make connection_type enum an enum class (#1146) 2016-09-24 10:47:17 -07:00
buffer.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
build_config.hpp extend link compatibility check to export-extra configurations (#876) 2016-07-03 11:42:57 -04:00
chained_buffer.hpp trivial cleanup and minor changes (#1033) 2016-08-26 00:14:11 -04:00
choker.hpp merge copyright year update and changelog from RC_1_0 2016-01-17 18:57:46 -05:00
close_reason.hpp dht source code and headers cleanup (#1150) 2016-09-24 22:20:20 -04:00
config.hpp more boost types cleanup and handling of deprecated macos libcrypto (#1072) 2016-09-07 17:51:18 -04:00
copy_ptr.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
crc32c.hpp added support for arm crc32c and changed to test in arm 32 bits (#869) 2016-06-30 11:37:55 -04:00
create_torrent.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
deadline_timer.hpp more use of span and std::shared_ptr (#1018) 2016-08-21 13:37:11 -04:00
debug.hpp more boost types cleanup and handling of deprecated macos libcrypto (#1072) 2016-09-07 17:51:18 -04:00
disk_buffer_holder.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
disk_buffer_pool.hpp return a span from TORRENT_ALLOCA (#1244) 2016-10-22 14:43:40 -04:00
disk_interface.hpp refactor to use torrent_info with std::shared_ptr (#1006) 2016-08-17 17:26:35 -04:00
disk_io_job.hpp more use of std::shared_ptr refactor 2016-08-30 10:10:53 -04:00
disk_io_thread.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
disk_io_thread_pool.hpp scalable thread pool (#770) 2016-06-15 20:49:28 -04:00
disk_job_pool.hpp refactor to use std unordered containers and minor cleanup (#1070) 2016-09-06 23:37:36 -04:00
disk_observer.hpp merge copyright year update and changelog from RC_1_0 2016-01-17 18:57:46 -05:00
ed25519.hpp better integration and API for ed25519 (#1037) 2016-08-29 20:28:42 -04:00
entry.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
enum_net.hpp consts and refactor, hash_address returns the hash (#1093) 2016-09-15 21:13:43 -04:00
error.hpp using warnings guard in error.hpp and BOOST_SYSTEM_NO_DEPRECATED in Jamfile (#1184) 2016-10-04 21:54:02 -04:00
error_code.hpp fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
export.hpp merge copyright year update and changelog from RC_1_0 2016-01-17 18:57:46 -05:00
extensions.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
file.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
file_pool.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
file_storage.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
fingerprint.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
gzip.hpp back-port error_code cleanup from master (#1173) 2016-10-03 16:32:40 -07:00
hasher.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
hasher512.hpp supress warnings in hashers headers include (#1178) 2016-10-03 16:32:20 -07:00
heterogeneous_queue.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
hex.hpp trivial cleanup and minor changes (#1033) 2016-08-26 00:14:11 -04:00
http_connection.hpp refactor to use std::shared_ptr with peer_connection, core and tests (#1050) 2016-08-31 21:42:18 -04:00
http_parser.hpp minor http related code cleanup (#1212) 2016-10-14 16:12:02 -04:00
http_seed_connection.hpp generalize and improve http redirect support for web seeds (#1060) 2016-10-02 23:08:03 -07:00
http_stream.hpp more use of std::shared_ptr (#1009) 2016-08-18 17:08:40 -04:00
http_tracker_connection.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
i2p_stream.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
identify_client.hpp fixed span::fist logic and minor cleanup (#960) 2016-07-28 01:54:57 -04:00
instantiate_connection.hpp more boost types cleanup and handling of deprecated macos libcrypto (#1072) 2016-09-07 17:51:18 -04:00
invariant_check.hpp fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
io.hpp general modernization (#836) 2016-06-20 11:32:06 -04:00
io_service.hpp dht headers and minor cleanup (#1157) 2016-09-26 18:04:42 -04:00
io_service_fwd.hpp refactor to use std unordered containers and minor cleanup (#1070) 2016-09-06 23:37:36 -04:00
ip_filter.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
ip_voter.hpp no more deprecated std::random_shuffle (#999) 2016-08-14 19:48:31 -04:00
lazy_entry.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
link.hpp fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
linked_list.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
lsd.hpp created lsd_callback, log optimization and cleanup in lsd (#1099) 2016-09-16 12:21:41 -04:00
magnet_uri.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
natpmp.hpp upnp and natpmp modernization and cleanup (#1103) 2016-09-18 10:11:56 -04:00
operations.hpp add proper error handling to peer connections and session (#1149) 2016-09-25 09:50:48 -04:00
packet_buffer.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
parse_url.hpp generalize and improve http redirect support for web seeds (#1060) 2016-10-02 23:08:03 -07:00
part_file.hpp more boost types cleanup and handling of deprecated macos libcrypto (#1072) 2016-09-07 17:51:18 -04:00
pe_crypto.hpp extensions refactor to use span and std::shared_ptr (#1005) 2016-08-17 14:30:24 -04:00
peer.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
peer_class.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
peer_class_set.hpp refactor to use std::shared_ptr with traversal_algorithm (#1056) 2016-09-02 16:42:55 -04:00
peer_class_type_filter.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
peer_connection.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
peer_connection_handle.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
peer_connection_interface.hpp peer_connection log related optimization (#1086) 2016-09-13 17:07:22 -04:00
peer_id.hpp consts and refactor, hash_address returns the hash (#1093) 2016-09-15 21:13:43 -04:00
peer_info.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
peer_list.hpp general modernization (#836) 2016-06-20 11:32:06 -04:00
peer_request.hpp more use of std::shared_ptr (#1009) 2016-08-18 17:08:40 -04:00
performance_counters.hpp refactor in alert types to use more const fields and more clear API (#1222) 2016-10-19 01:32:15 -04:00
piece_block.hpp separate piece_block and has_block out to their own headers (#1148) 2016-09-24 08:46:56 -07:00
piece_block_progress.hpp refactor to avoid use of optional with piece_block_progress (#1061) 2016-09-04 12:31:02 -04:00
piece_picker.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
platform_util.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
proxy_base.hpp more use of std::shared_ptr (#1009) 2016-08-18 17:08:40 -04:00
puff.hpp update puff.c for gzip inflation (#1022) 2016-08-21 14:43:44 -04:00
random.hpp better integration and API for ed25519 (#1037) 2016-08-29 20:28:42 -04:00
read_resume_data.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
receive_buffer.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
request_blocks.hpp merge copyright year update and changelog from RC_1_0 2016-01-17 18:57:46 -05:00
resolve_links.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
resolver.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
resolver_interface.hpp replace boost::function with std::function 2016-08-13 07:07:26 -04:00
session.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
session_handle.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
session_settings.hpp deprecate old session_settings API (use settings_pack instead) (#1117) 2016-09-20 23:49:23 -07:00
session_stats.hpp trivial cleanup and minor changes (#1033) 2016-08-26 00:14:11 -04:00
session_status.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
settings_pack.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
sha1.hpp adding support for a more configurable sha512 hasher (#1028) 2016-08-25 19:07:16 -04:00
sha1_hash.hpp dht code related refactor and cleanup (#1107) 2016-09-18 20:08:15 -04:00
sha512.hpp adding support for a more configurable sha512 hasher (#1028) 2016-08-25 19:07:16 -04:00
sliding_average.hpp simplify peer_connection's read handlers and the receive buffer. (#853) 2016-06-26 20:41:03 -04:00
socket.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
socket_io.hpp clean up read_endpoint_list (#1102) 2016-09-18 10:12:54 -04:00
socket_type.hpp more boost types cleanup and handling of deprecated macos libcrypto (#1072) 2016-09-07 17:51:18 -04:00
socket_type_fwd.hpp merge copyright year update and changelog from RC_1_0 2016-01-17 18:57:46 -05:00
socks5_stream.hpp back-port error_code cleanup from master (#1173) 2016-10-03 16:32:40 -07:00
span.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
ssl_stream.hpp headers cleanup (#1054) 2016-09-01 15:04:58 -04:00
stack_allocator.hpp use string_view in alert constructors (#1186) 2016-10-04 23:58:26 -04:00
stat.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
stat_cache.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
storage.hpp return a span from TORRENT_ALLOCA (#1244) 2016-10-22 14:43:40 -04:00
storage_defs.hpp added TORRENT_EXPORT to avoid link weak symbol warning (#975) 2016-08-02 00:15:26 -04:00
string_util.hpp more session log and source code refactor 2016-09-20 11:24:24 -04:00
string_view.hpp modernize utf8 conversion functions to throw and move (#1145) 2016-09-24 22:16:10 -04:00
tailqueue.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
time.hpp no more deprecated std::random_shuffle (#999) 2016-08-14 19:48:31 -04:00
timestamp_history.hpp general modernization (#836) 2016-06-20 11:32:06 -04:00
torrent.hpp fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
torrent_handle.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
torrent_info.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
torrent_peer.hpp use cstdint intead of boost/cstdint.hpp (#833) 2016-06-18 14:01:38 -04:00
torrent_peer_allocator.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
torrent_status.hpp remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
tracker_manager.hpp fix error handling by exercising code paths where memory allocations fail (#1221) 2016-10-19 01:18:05 -04:00
udp_socket.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
udp_tracker_connection.hpp refactor to use std::shared_ptr with peer_connection, core and tests (#1050) 2016-08-31 21:42:18 -04:00
uncork_interface.hpp use of BOOST_FALLTHROUGH, typos and minor cleanup 2016-08-01 11:42:18 -04:00
union_endpoint.hpp make single-argument constructors explicit (#1194) 2016-10-08 14:07:11 -04:00
upnp.hpp merged RC_1_1 into master 2016-10-20 00:36:54 -04:00
utf8.hpp modernize utf8 conversion functions to throw and move (#1145) 2016-09-24 22:16:10 -04:00
utp_socket_manager.hpp refactor to use std::shared_ptr with http_connection (#1049) 2016-08-31 12:45:45 -04:00
utp_stream.hpp replace boost::function with std::function 2016-08-13 07:07:26 -04:00
vector_utils.hpp headers cleanup (#1054) 2016-09-01 15:04:58 -04:00
version.hpp bump version number 2016-08-13 07:12:23 -04:00
web_connection_base.hpp more trivial cleanup (#979) 2016-08-02 17:58:15 -04:00
web_peer_connection.hpp make connection_type enum an enum class (#1146) 2016-09-24 10:47:17 -07:00
xml_parse.hpp replace boost::function with std::function 2016-08-13 07:07:26 -04:00