Commit Graph

277 Commits

Author SHA1 Message Date
levlam
2b4d076323 Modernize spelling of macOs.
GitOrigin-RevId: 92129b6264af6a04d69d0eb79f942ca20923bb78
2018-12-01 04:15:59 +03:00
levlam
8e9c2721ef Support different IPv4 formats in IPAddress::init_host_port.
GitOrigin-RevId: 122239f0ba24a1274b0cc50913e8fac3ad25ddc3
2018-11-27 21:26:32 +03:00
levlam
7d565e359d Improve clean_filename behavior.
GitOrigin-RevId: da29b1a87a27b6bcb7651ae1b261d44dcf18849f
2018-11-27 04:24:43 +03:00
levlam
bc54e5e335 Fix full_split behavior on empty string.
GitOrigin-RevId: 74fcaeee970ab26f1bee221babf9b6029237c6cc
2018-11-16 00:11:03 +03:00
levlam
ca4c1acc90 Add IPAddress::is_reserved method and its test.
GitOrigin-RevId: 69a4d5cc73cb40e7a99a1d4e56746efbcfa02e83
2018-11-15 20:10:20 +03:00
levlam
718f9e3532 Fix parsing of std::unordered_set.
GitOrigin-RevId: 6c946161748c71b36382c20e7bacac1299b4b9a8
2018-11-11 16:35:51 +03:00
levlam
5160e083b0 Move STORE/PARSE FLAGS to a dedicated block.
GitOrigin-RevId: c682b9b2a444a4b86c7c3c09736d3489c4e4f297
2018-11-09 15:38:41 +03:00
Arseny Smirnov
b6e8be94c6 secure_random: add_seed flushes all buffered random
GitOrigin-RevId: 408dea74532e882d1f42126999b7394a46cebfd1
2018-11-16 16:41:53 +04:00
levlam
d78a1d0a33 Simplify HexDumpSlice.
GitOrigin-RevId: 4350523696d5d20092db4006e2c88324c1e3a636
2018-11-06 19:26:20 +03:00
levlam
2c6bd673c7 Use as_slice<Int> if possible.
GitOrigin-RevId: 931b5609e2eae0d5655287e84a71724f07d4090c
2018-11-06 19:00:03 +03:00
levlam
0d5a09e615 Fix ThreadPthread.
GitOrigin-RevId: 3b16056894c33775dcf31146a87f1ab1c2ee13cc
2018-11-03 22:36:52 +03:00
levlam
d119861780 Add missed include.
GitOrigin-RevId: 206f244bcd8d7759b942de8288284bcbd48b22f0
2018-11-02 22:57:22 +03:00
levlam
0624f75eec Add FreeBSD support.
GitOrigin-RevId: 8cc4a42d4c7879ba1b19591f7b37880d5d554585
2018-11-02 22:47:20 +03:00
levlam
37738ec61a Fix FreeBSD CE.
GitOrigin-RevId: c5740fb668058b65c2e4dd2bc3d1c14d9bbea06f
2018-11-02 18:58:20 +03:00
levlam
ecaaae62ef Fix mtime in generate location.
GitOrigin-RevId: 70235d7f9c0e21fdcb555a678f13afbfabf3767f
2018-10-31 21:11:02 +03:00
levlam
4378f96948 Pass const object to has_json_object_field.
GitOrigin-RevId: 7e7dfda846e15e8b977674e4c3a3ab759720449c
2018-10-31 16:03:38 +03:00
levlam
6fbaed9997 Use auto-resized StringBuilder in json_encode.
GitOrigin-RevId: 4871ceaef1a3d8a8d38ec07d5deea670fd41583f
2018-10-30 17:26:31 +03:00
levlam
bc88b8e951 StringBuilder fixes.
GitOrigin-RevId: 1836df5f6931ca94e96e7281eeb1090163d8648f
2018-10-30 17:22:44 +03:00
levlam
a91db513eb Better create_local_lock.
GitOrigin-RevId: ce705e7258ad05bde1ac6c72cc8a045c128fa8a6
2018-10-30 14:21:36 +03:00
Arseny Smirnov
43ef35eb71 StringBuilder: allow dynamic resize
GitOrigin-RevId: cd59f013d10f4d8e5911933eeb75384d675fda94
2018-10-30 14:07:28 +03:00
Arseny Smirnov
9ce80962fc FileFd: bugfix
GitOrigin-RevId: a6f27c73787e543475d5e09f1510de491a46e3f5
2018-10-30 11:47:58 +03:00
Arseny Smirnov
0aa06cbea5 FileFd: create_local_lock function
GitOrigin-RevId: 8d782e0194f4e2e7b0d9ceef9dad4a1051ed393b
2018-10-30 11:35:50 +03:00
Arseny Smirnov
4e03ee1293 FileFd: fix sleeping while mutex is locked
GitOrigin-RevId: fb6b5bb1967a4c144e9393b2ab82ccf6dfe2f15a
2018-10-30 11:21:16 +03:00
levlam
51eec319b8 Fix some includes.
GitOrigin-RevId: 4c81e2fd0101f3c5bb23912681e7d02a60da5622
2018-10-28 20:30:47 +03:00
levlam
26530c3b97 Fix legacy fd_ usage.
GitOrigin-RevId: 62e6f4882f16595e591a24b88280080135d62eef
2018-10-27 17:34:53 +03:00
levlam
e4c8b8ff3b Fix Variant debug.
GitOrigin-RevId: 9fe51b6ca5d069058a2d98bc9b111b8693ae6df0
2018-10-26 17:57:30 +03:00
levlam
082a132edc Add Variant debug.
GitOrigin-RevId: 49cd9c29f8d2b9db908f0f13c0ba149598008c2e
2018-10-26 17:27:37 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
1f216df1d8 Fix C26451 warning.
GitOrigin-RevId: 7c7fa7df4078dec15dfdc3db2df30ab5be234b5b
2018-10-25 21:29:10 +03:00
levlam
570a59f1d4 Simpilfy MutableSlice constructor (behavior is defined since C++11).
GitOrigin-RevId: 77c07d8abc0b6c10f24e95f61811fe6d5ca3af58
2018-10-25 18:10:14 +03:00
levlam
da06b62499 Improve zlib error messages.
GitOrigin-RevId: 0a630e21e3dd142cefdcc16dc4478f108d0e3a66
2018-10-24 22:56:48 +03:00
levlam
8aab98871e Fix is_eof in case of unsuccessful read.
GitOrigin-RevId: b5a48f7818a02f6d0cf16b11a0745cf7fdeff326
2018-10-24 21:57:47 +03:00
levlam
44d21ecc4a New API for managing TDLib logs.
GitOrigin-RevId: 60f520027bf16f53b927c72d0151884fda64ebbc
2018-10-24 18:42:40 +03:00
levlam
ae585729aa Ignore EAGAIN in mkdir (happens in Android).
GitOrigin-RevId: 1d5ab4e698de8b74d61d06e84d4ac27d84020e91
2018-10-22 18:08:51 +03:00
levlam
f5ea140bc2 Update clang-format to 8.0.
GitOrigin-RevId: 170be47e4b47607a2bca81d2ed6b5b3d547982ca
2018-10-14 04:01:02 +03:00
levlam
c865b234bf Fix warning.
GitOrigin-RevId: cab219458f63f61649d703ae60e2936043b15c5e
2018-10-14 02:14:19 +03:00
levlam
872cf6e10d Add local locking to FileFd::lock.
GitOrigin-RevId: 4ad3e15f9952b1c68c879182a0f10dd5cad270f3
2018-10-08 21:18:06 +03:00
levlam
806e570a72 Add source to next_utf8_unsafe.
GitOrigin-RevId: e8e5a47096461c0e76a64eb26cb848651d4d61e8
2018-10-08 15:53:05 +03:00
levlam
09c4422c50 Better error messages.
GitOrigin-RevId: 70b1cea8a4ba9fa42074b5bc7bd7d339ae1c1779
2018-10-07 02:47:50 +03:00
levlam
6ac930139b Const-correct unique_ptr.
GitOrigin-RevId: 938cf4b0261cfea123066ae1fc4197754da11e68
2018-09-27 19:51:45 +03:00
levlam
c3417b5f94 Replace std::unique_ptr with td::unique_ptr to increase compilation speed and decrease compilation RAM usage.
GitOrigin-RevId: ffd9b89201e1bfa48d0cf62e7abe9e94b0db86f9
2018-09-27 17:40:04 +03:00
levlam
b3bae546ec Various fixes.
GitOrigin-RevId: 52699dbd5280b63c6bb32da44ea5bfa3157a7922
2018-09-27 16:37:15 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
b7c2248c72 Add td_api::testSetLogTagVerbosityLevel method.
GitOrigin-RevId: 763fcf9156671857c71967741b9ce8c67f4a7ea0
2018-09-26 02:59:29 +03:00
Arseny Smirnov
3d17b1b166 Fix get_pending_error
GitOrigin-RevId: cc80c526df3d0ed8ceb76b8653ef4bb9f46311c4
2018-09-25 14:36:39 +03:00
Arseny Smirnov
8108dda1d9 SocketFd::get_pending_error bugfix
GitOrigin-RevId: e0596cec033a162fbca15a14f078c6a9cdbd8ff5
2018-09-24 18:26:29 +03:00
Arseny Smirnov
23e4c95c1c Fix EventFdLinux
GitOrigin-RevId: 15b9fe88f5df8489c837d75fe3705a01298e902a
2018-09-22 17:13:49 +03:00
levlam
8610734232 Fix full_split.
GitOrigin-RevId: 0204740d8ba45faf9f2da5ddca7323c88287a160
2018-09-22 14:24:02 +03:00
levlam
3c8e8f106f Fix GCC 4.9.2 CE.
GitOrigin-RevId: 5cc03767018d976c5833127e51ee0f010b3049b3
2018-09-21 20:57:20 +03:00
levlam
5322a65c1b Remove unnecessary static_cast.
GitOrigin-RevId: df5259458cd0d8d4a1b72da6950ea39553979c68
2018-09-21 11:26:35 +03:00