Commit Graph

  • 566d255b33 run cargo fmt jikstra 2019-07-29 16:16:47 +02:00
  • 9fb9fb0fc1 Remove goto/current_block logic with OK_TO_CONTINUE. Keeps identation jikstra 2019-07-29 16:15:07 +02:00
  • 164a8fe39a encode_66bits_as_base64: use base64 crate Alexander Krotov 2019-07-30 01:59:36 +03:00
  • 0b679f8b95 dc_tools: Make dc_create_id() safe Alexander Krotov 2019-07-29 14:19:43 +03:00
  • 8267ffb8d2 Replace dc_mimeparser_t::reports carray with Vec Alexander Krotov 2019-07-31 15:57:05 +03:00
  • 7bc338fc72 Mark get_backoff_time_offset as safe Alexander Krotov 2019-07-31 15:51:50 +03:00
  • d6dae0a9e8 Make dc_array_sort_ids() safe and move it into impl Alexander Krotov 2019-07-31 03:08:20 +03:00
  • a41c0614cc Make dc_msg_is_starred() return bool Dmitry Bogatov 2019-07-30 14:08:15 +00:00
  • 73298c0273 chore: fix and enforce compiler warnings on CI Dmitry Bogatov 2019-07-30 07:58:28 +00:00
  • b44c7928f2 Merge pull request #265 from link2xt/safe_cb_set_config Friedel Ziegelmayer 2019-07-30 09:53:56 +02:00
  • dd9b83dc24 Merge pull request #264 from link2xt/key-to_asc-safe Friedel Ziegelmayer 2019-07-30 09:53:42 +02:00
  • e79c168279 Merge pull request #263 from link2xt/sql-is_file_in_use-safe Friedel Ziegelmayer 2019-07-30 09:53:13 +02:00
  • 707c8c2830 Make dc_split_armored_data return bool (#251) Alexander Krotov 2019-07-30 09:46:36 +03:00
  • f87c98d6ea Make cb_set_config() safe Alexander Krotov 2019-07-30 02:43:39 +03:00
  • 76e76470e0 Replace range loop with foreach loop Alexander Krotov 2019-07-28 21:36:17 +03:00
  • ae6c41a019 dc_kml_t: replace Option<dc_array_t> with Option<Vec<dc_location>> Alexander Krotov 2019-07-28 16:07:04 +03:00
  • 81a84620eb Store dc_kml_t::locations as Option<dc_array_t> instead of pointer Alexander Krotov 2019-07-28 15:50:41 +03:00
  • 14e42b48bd dc_get_locations: use from(Vec<dc_location>) instead of add_location Alexander Krotov 2019-07-28 15:29:47 +03:00
  • 2688a397aa Implement From<Vec<dc_location>> for dc_array_t Alexander Krotov 2019-07-28 15:27:50 +03:00
  • 3ace4fcc2f Make key::to_asc return String Alexander Krotov 2019-07-30 02:20:11 +03:00
  • 9314a5a8fd Merge pull request #252 from link2xt/dc_get_config-safe Friedel Ziegelmayer 2019-07-30 00:25:29 +02:00
  • 5bf2d7c5ac Merge pull request #253 from link2xt/is_file_size_okay-bool Friedel Ziegelmayer 2019-07-30 00:24:13 +02:00
  • 1fbd16310a Merge pull request #262 from link2xt/thread-constants Friedel Ziegelmayer 2019-07-30 00:23:34 +02:00
  • 7ba1a6f79f Merge pull request #255 from link2xt/dc_open-safer Friedel Ziegelmayer 2019-07-30 00:21:03 +02:00
  • 2c66837df4 Merge pull request #261 from link2xt/dc_timestamp_to_str Friedel Ziegelmayer 2019-07-30 00:19:33 +02:00
  • 21b4147d15 sql.rs: make is_file_in_use() safe Alexander Krotov 2019-07-30 01:01:36 +03:00
  • 0c082fac7b refactor: remove unused import of qsort() from C library ( KAction 2019-07-29 22:10:22 +00:00
  • 03603a48a0 dc_job.rs: add DC_{IMAP,SMTP}_THREAD constants Alexander Krotov 2019-07-29 20:20:52 +03:00
  • 27342f50b5 Remove unsafe version of dc_timestamp_to_str Alexander Krotov 2019-07-29 18:45:12 +03:00
  • 32fd3242e9 run cargo fmt jikstra 2019-07-29 16:31:33 +02:00
  • ff3f96df48 Replace goto/current_block logic in dc_msg with OK_TO_CONTINUE approach. Keeps indentation jikstra 2019-07-29 16:30:42 +02:00
  • 2d5b04148f Make dc_open arguments rusty Alexander Krotov 2019-07-29 03:04:59 +03:00
  • dfce34f275 Return bool from is_file_size_okay Alexander Krotov 2019-07-29 00:27:43 +03:00
  • 188da2a020 refactor(params): rustify Friedel Ziegelmayer 2019-07-29 01:49:53 +02:00
  • 3f445a3a6c Make dc_get_config_t safe Alexander Krotov 2019-07-28 23:42:38 +03:00
  • 669ed0e0df Override non_camel_case_types warning on per-declaration basis Dmitry Bogatov 2019-07-28 01:58:12 +00:00
  • c6ccfd824e Override `non_shake_case' warning on per-function basis Dmitry Bogatov 2019-07-28 01:21:42 +00:00
  • 39cc93240f Fix 'non_upper_case_globals' compiler warnings Dmitry Bogatov 2019-07-27 23:11:29 +00:00
  • 6c818c6123 Make dc_tools::dc_exactly_one_bit_set safe and return bool Alexander Krotov 2019-07-28 21:07:49 +03:00
  • 3eaab07b0b top_evil_rs.py: remove comments before counting Alexander Krotov 2019-07-28 20:28:04 +03:00
  • 0cffbaf1e9 refactor: rename dc_array_t::as_ptr() into dc_array_t::into_raw() Alexander 2019-07-28 18:31:57 +00:00
  • c34e66adb6 Make dc_create_setup_code() safe (#239) Friedel Ziegelmayer 2019-07-28 19:50:25 +02:00
  • 0132106c7e fix(imex): dc_decrypt_setup_file: extend lifetime of CString Alexander 2019-07-28 17:47:52 +00:00
  • 5a8b4748b8 fix(msg): correct return value for dc_msg_is_setupmessage Alexander 2019-07-28 16:33:31 +00:00
  • 3033d8100d Test dc_create_setup_code() without to_cstring() Alexander Krotov 2019-07-27 23:32:20 +03:00
  • 0e6b12d7ae Move to_string out of dc_create_setup_code Alexander Krotov 2019-07-27 23:20:43 +03:00
  • 2407604e37 Merge pull request #211 from link2xt/dc_array-cleanup Friedel Ziegelmayer 2019-07-28 11:51:08 +02:00
  • b23ca26908 refactor(chatlist): rustify Friedel Ziegelmayer 2019-07-28 11:32:48 +02:00
  • 21d94b1d09 Remove misplaced comment Alexander Krotov 2019-07-27 16:52:57 +03:00
  • ae1cbc9596 dc_array: store locations as Vec<dc_location> Alexander Krotov 2019-07-27 16:33:22 +03:00
  • 86d047f618 dc_chat: use get_id instead of accessing array fields directly Alexander Krotov 2019-07-27 16:29:24 +03:00
  • 1cd7cb541c Rewrite most location array member accessors Alexander Krotov 2019-07-24 02:33:10 +03:00
  • f27dda86ff Move dc_array_search_id into dc_array_t implementation Alexander Krotov 2019-07-24 02:02:55 +03:00
  • 51319f89e8 Create dc_array_t in dc_get_locations without unsafe Alexander Krotov 2019-07-23 21:20:55 +03:00
  • 8b4acbb63a Move dc_array_get_ptr inside dc_array_t implementation Alexander Krotov 2019-07-23 02:33:49 +03:00
  • 928361429e Move dc_array_get_{uint,id} inside dc_array_t implementation Alexander Krotov 2019-07-23 01:57:44 +03:00
  • c17632188a Avoid using return in dc_array_get_cnt implementation Alexander Krotov 2019-07-23 01:50:25 +03:00
  • ea3c89e913 Move dc_array_unref logic inside dc_array_t implementation Alexander Krotov 2019-07-23 01:47:58 +03:00
  • ea84edf13a Implement dc_array_t::len() Alexander Krotov 2019-07-23 01:38:45 +03:00
  • c335348f20 Implement dc_array_t::is_empty() Alexander Krotov 2019-07-23 01:32:26 +03:00
  • 1e91f6a204 Merge dc_array_free_ptr into dc_array_unref Alexander Krotov 2019-07-23 01:07:49 +03:00
  • dfd43cbb97 Rename dc_array_new_typed into dc_array_new_locations Alexander Krotov 2019-07-23 00:58:57 +03:00
  • c7a6b3caae Remove unnecessary check in dc_array_new_typed Alexander Krotov 2019-07-23 00:48:11 +03:00
  • f3eea41914 Reimplement dc_array_new without dc_array_new_typed Alexander Krotov 2019-07-23 00:41:51 +03:00
  • 8d43ad4809 Construct dc_array_t id arrays using safe methods Alexander Krotov 2019-07-23 00:12:23 +03:00
  • 1f63753a8b Simplify dc_array_search_id Alexander Krotov 2019-07-23 00:11:35 +03:00
  • e796a4c438 Move dc_array_add_{uint,id} implementations into dc_array_t Alexander Krotov 2019-07-23 00:11:00 +03:00
  • 85dfd65e48 Simplify dc_array_get_string Alexander Krotov 2019-07-23 00:09:10 +03:00
  • a323fe68a6 Simplify dc_array_duplicate Alexander Krotov 2019-07-22 15:05:23 +03:00
  • 05aca2c529 Make dc_array_new and dc_array_new_typed safe Alexander Krotov 2019-07-22 14:00:00 +03:00
  • 1dfad65afd dc_array.rs: remove magic field Alexander Krotov 2019-07-22 13:39:37 +03:00
  • e15e3a1e84 Use Vec to store dc_array_t data Alexander Krotov 2019-07-22 03:30:31 +03:00
  • 252697b174 Implement dc_array_t::new() and use Box to allocate dc_array_t Alexander Krotov 2019-07-22 02:46:58 +03:00
  • 7764ab3ff3 Replace C loop with Rust loop in dc_array_search_id Alexander Krotov 2019-07-22 01:26:07 +03:00
  • 7585dc49e3 Replace C loop with Rust loop in dc_array_free_ptr Alexander Krotov 2019-07-22 01:24:19 +03:00
  • f0ae5fcd7c Add DC_ARRAY_LOCATIONS constant Alexander Krotov 2019-07-22 00:14:15 +03:00
  • 7cba2b3f66 Remove unused dc_array_sort_strings Alexander Krotov 2019-07-23 02:33:00 +03:00
  • a0594338b2 Remove repr(C) from dc_array_t Alexander Krotov 2019-07-22 00:01:46 +03:00
  • 4902310138 Make stock strings rusty Floris Bruynooghe 2019-07-13 14:34:50 +02:00
  • 44b8629811 Merge pull request #232 from deltachat/fix_markseen Friedel Ziegelmayer 2019-07-27 12:31:59 +02:00
  • 30668aaecf Merge pull request #237 from KAction/repl__do_not_treat_empty_string_as_command_ Friedel Ziegelmayer 2019-07-27 12:31:30 +02:00
  • 6dfc019163 Merge pull request #236 from KAction/Make_repl_program_more_robust_ Friedel Ziegelmayer 2019-07-27 12:31:02 +02:00
  • b584b7eb58 Merge pull request #234 from KAction/send-garbage Friedel Ziegelmayer 2019-07-27 12:30:35 +02:00
  • 36b5f4da53 Check if input to dc_send_text_msg is valid utf8 Dmitry Bogatov 2019-07-27 09:04:20 +00:00
  • d1968d8ccb New repl command: send-garbage Dmitry Bogatov 2019-07-27 08:07:38 +00:00
  • a9c714748d Make repl program more robust Dmitry Bogatov 2019-07-27 00:02:28 +00:00
  • 7a07629d68 repl: do not treat empty string as command Dmitry Bogatov 2019-07-27 00:16:34 +00:00
  • 67d9515033 (jikstra, hpk) fix markseen logic to work like C: ignore if we get no rows for a message (eg desktop calls itwith msg_id=9 which is a special id -- and C just ignored it) holger krekel 2019-07-26 01:03:03 +02:00
  • f63e79cd6d remove MessageType, remove account.get_blob_dir which is duplicate of get_blobdir() holger krekel 2019-07-25 21:33:44 +02:00
  • 83346722fd - simplify and clarify dc_msg caching for Message object - merge state class into Message object proper -- one less intermediate object to worry about for callers holger krekel 2019-07-25 10:11:46 +02:00
  • 9836e73683 - properly support prepare-msg API and implement get_message_info() - remove usage of "attr.s" across the code - make msg.set_file() copy a file into blobdir if it isn't already - regroup tests - add set_draft/get_draft API holger krekel 2019-07-24 16:37:24 +02:00
  • c7ebf6de09 cargo fmt Alexander Krotov 2019-07-25 20:29:28 +03:00
  • 2f204fd2aa Simplify dc_simplify_t implementation Alexander Krotov 2019-07-25 20:25:59 +03:00
  • 63ed5c4009 re-enable devpi uploads holger krekel 2019-07-25 21:54:08 +02:00
  • 9f75a5049e dc_location: store marker as Option<String> instead of C string Alexander Krotov 2019-07-25 14:26:33 +03:00
  • ec6cc5c355 Allocate dc_kml_t in a rusty way Alexander Krotov 2019-07-24 23:37:56 +03:00
  • b0ef825e67 Implement dc_location::new() and dc_kml_t::new() Alexander Krotov 2019-07-24 23:37:26 +03:00
  • a791f76e4b Rename _dc_location into dc_location Alexander Krotov 2019-07-24 23:07:29 +03:00
  • 2cf227571a pure cargo fmt holger krekel 2019-07-25 18:30:26 +02:00
  • 9a9b49f8f0 - remove current_block logic from dc_chat.rs with the "OK_TO_CONTINUE" pattern -- re-indentation will come after this commit with a pure application of "cargo fmt" - bring back comment from C code - make some path helpers return bool holger krekel 2019-07-25 17:42:28 +02:00