dignifiedquire
4ec214b3fc
refactor(location): use bitflags for tags
2019-08-26 21:46:57 +02:00
dignifiedquire
d25d839d6a
refactor(location): more rusty api
2019-08-26 21:29:40 +02:00
dignifiedquire
23d49560bf
refactor(location): rename module dc_location -> location
2019-08-26 21:09:40 +02:00
dignifiedquire
bb16849eef
refactor(location): remove most unsafe usage
2019-08-26 21:07:53 +02:00
Alexander Krotov
ae17971599
top_evil_rs.py: use glob to walk into subdirs
...
Otherwise configure/* is not included in the report.
2019-08-26 19:31:30 +02:00
B. Petersen
f13b068479
remove accidentally added function body
2019-08-26 19:17:58 +02:00
B. Petersen
850941bf8b
target doxygen warnings
2019-08-26 19:17:58 +02:00
B. Petersen
11dd156594
tweak title
2019-08-26 19:17:58 +02:00
B. Petersen
78587ee6b1
add howto-generate-ffi-documentation
2019-08-26 19:17:58 +02:00
B. Petersen
3eeb184278
ignore doxygen generated files
2019-08-26 19:17:58 +02:00
B. Petersen
7632eb1ce0
make doxygen work
2019-08-26 19:17:58 +02:00
B. Petersen
3eea175d36
ffi docs for dc_lot_t
2019-08-26 19:17:58 +02:00
B. Petersen
8f24ff74dd
ffi docs for dc_contact_t
2019-08-26 19:17:58 +02:00
B. Petersen
6fab7d0a27
ffi docs for dc_msg_t
2019-08-26 19:17:58 +02:00
B. Petersen
7cc52e0a55
ffi docs for dc_chat_t
2019-08-26 19:17:58 +02:00
B. Petersen
aa0801014a
ffi docs for dc_chatlist_t
2019-08-26 19:17:58 +02:00
B. Petersen
9e379338bc
ffi docs for dc_array_t
2019-08-26 19:17:58 +02:00
B. Petersen
ba62d13a14
ffi docs for dc_context_t
2019-08-26 19:17:58 +02:00
Dmitry Bogatov
d7d7147549
refactor: make dc_dehtml() function safe
...
* Make dc_dehtml() function safe
* Change type of is_msgrmsg parameter to bool
* Narrow type of local variable in simplify_plain_text()
* Export less fields of `Simplify' record
* Demote is_cut_* from fields of `Simplify' to local variables
* Refactor part of simplify_plain_text()
Refactor footer ("-- " and similar) code into separate function,
and re-implement it with standard Rust string methods.
It simplifies code and allows removing one mutable local variable.
* Replace dc_split_into_lines with String.split()
* src/dc_simplify.rs(find_message_footer): adjust type signature to accept
slice of &str, not slice of pointers
* src/dc_simplify.rs(simplify_plain_text): adjust code to use '==' operator
instead of strcmp(3).
* src/dc_simplify.rs(is_empty_line, is_quoted_headline, is_plain_quote):
+ adjust type signatures to accept &str, not 'const char *'
+ remove no longer needed 'unsafe' qualifier
* src/dc_tools(dc_split_into_lines, dc_free_splitted_lines): remove no longer
used functions.
In addition to additional type-safety, this change reduces number of
allocations: String.split returns iterator of &str.
* Make simplify_plain_text() safe
* Make Simplify.simplify return String, not pointer
* Refactor Simplify.simplify to use String methods, not pointers
* Make Simplify.simplify() safe
* Avoid neeless allocation in Simplify.simplify when input is html
* Add tests for simplify utilities
* Document discussion about is_empty_line() discussion
2019-08-26 17:15:14 +02:00
Alexander Krotov
8a73f84003
Move all unsafe code from dc_array.rs to FFI
2019-08-21 09:30:59 +02:00
Asiel Díaz Benítez
118599b4cc
Update account.py
...
fix doc string
2019-08-20 17:10:39 +02:00
Simon Laux
1d32e010ae
Merge pull request #397 from deltachat/move_autoconfig_to_dedicated_file
...
Move moz- and outlk-autoconfig to dedicated files
2019-08-19 19:42:25 +02:00
Simon Laux
91481caf89
cargo fmt
2019-08-19 19:04:12 +02:00
Simon Laux
491826556b
renaming dc_configure to configure
...
and renaming the autoconfigure modules
2019-08-19 19:03:46 +02:00
Friedel Ziegelmayer
6463019faf
Merge pull request #398 from deltachat/refactor-msg
...
Round 1 for rust message
2019-08-19 19:03:38 +02:00
Simon Laux
e3b2a7a69b
remove unused struct
2019-08-19 18:58:47 +02:00
Simon Laux
51b54fce64
move out the autoconfigure functions
2019-08-19 18:58:47 +02:00
Simon Laux
184c58bf36
move main file
...
making this step by step in hope that git can then better work with this
2019-08-19 18:58:47 +02:00
dignifiedquire
39abb0b0ad
refactor(message): rename dc_msg to message
2019-08-19 12:13:11 +02:00
dignifiedquire
cb6c8ac78b
refactor(msg): use rust based allocations
2019-08-19 12:10:26 +02:00
Friedel Ziegelmayer
a906faeb35
refactor: a rusty job
...
* refactor(jobthread): safe and rusty
* refactor(job): rusty and safe
2019-08-19 12:07:13 +02:00
Alexander Krotov
1a8e08e429
Merge pull request #396 from deltachat/chat-array
...
Remove dc_array_t from chat.rs
2019-08-19 06:55:58 +00:00
dignifiedquire
d47a693611
refactor: rename dc_qr -> qr
2019-08-19 08:06:54 +02:00
dignifiedquire
886262539a
refactor: save lot implementation and follow up refactors
...
rewrote qr code to match the now safe lot
2019-08-19 08:06:54 +02:00
dignifiedquire
401c5a7cb0
refactor(lot): rename dc_lot to lot
2019-08-19 08:06:54 +02:00
dignifiedquire
b5c66dd52a
refactor(lot): rust memory management
2019-08-19 08:06:54 +02:00
Alexander Krotov
e7cf5a546a
Remove dc_array_t from chat.rs
2019-08-18 23:02:16 +03:00
Friedel Ziegelmayer
8c10aa287c
fix(python): free allocated string pointers ( #393 )
...
* fix(python): free allocated string pointers
* Update python/src/deltachat/cutil.py
Co-Authored-By: holger krekel <holger@merlinux.eu >
* Update cutil.py
* probably the proper way to handle ffi.strings
2019-08-18 12:45:38 +02:00
Alexander Krotov
6b2fe03d08
Replace dc_array_t with Vec in context.rs
2019-08-18 12:44:49 +02:00
holger krekel
799d362654
cargo fmt
2019-08-18 12:44:03 +02:00
holger krekel
64beb17fa6
subst current_blocks with ok_to_continue
2019-08-18 12:44:03 +02:00
Friedel Ziegelmayer
2bddb8409c
Merge pull request #390 from deltachat/remove-dead-code
...
remove dead code
2019-08-17 14:02:00 +02:00
B. Petersen
b1a056082a
remove dead code
2019-08-17 12:36:26 +02:00
Friedel Ziegelmayer
7dc82ba4d7
Merge pull request #374 from deltachat/refactor-chat
...
refactor(chat): make it rusty and safe
2019-08-17 12:15:28 +02:00
dignifiedquire
4645a4300e
refactor: remove unused methods
2019-08-17 11:40:43 +02:00
dignifiedquire
13d8306a7b
refactor(chat): some minor cleanup and api improvements
2019-08-17 11:40:43 +02:00
dignifiedquire
9b1a74cc22
refactor(chat): remove C strings from the public interface
2019-08-17 11:40:43 +02:00
dignifiedquire
25e97df641
refactor(chat): store rust strings in the chat struct
2019-08-17 11:35:02 +02:00
dignifiedquire
6b3245ddfc
refactor(ffi): use nicer exentsion traits for results
2019-08-17 11:34:10 +02:00
dignifiedquire
001880e1f0
refactor(chat): first round of method renaming and restructuring
2019-08-17 11:34:10 +02:00