359 Commits

Author SHA1 Message Date
ratijas
28149b2a95
Fix wording, whitespaces and other minor stuff ##doc (#18081) 2020-12-23 22:22:30 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +01:00
ratijas
6d811285c2
Fix wording and whitespacing ##doc (#18065)
* Fix wording, whitespacing and other minor stuff
* cmd.c: ellaborated yy syntax, improved descriptions
  - replace "srcoff" with "origin"
* cmd.c(cmd_autocomplete):
  - refactor help into function: render autocomplete types with generic
    help subsystem;
  - "Types" heading now follow the "Usage" style by not being prefixed
    by a pipe character;
* cmd_anal.c: fix whitespaces & help text
* cmd_info.c: fix help text capitalization.
* cmd_print.c:
  - fix `pf` cmd help;
  - TODO: what pz? is doing here?
* cons.c:
  - refactor & better document r_cons_cmd_help();
  - fix whitespaces;
* visual & panels modes:
  - as of commit 46187fe4e14dc465dc6ac03fcc56a362f0b8e335, '!' no longer
    launches the r2048 game. The game itself it broken anyway, even when
    running from the Help menu in panels mode;
  - transitioning from panels to visual is not 'entering' but actually
    swapping/replacing visual panels with just panels, thus...
  - reword 'enter into the' to 'swap into' or even just 'enter', e.g.:
    "enter into the visual panels mode" -> "enter visual panels mode".
  - remove the "(dwm style)" words from a fortune tip, because I have no
    idea what it is, and it does not appear to be a valid command in any
    of the r2 modes.
  - update global help text.
* [WIP 2] Fix wording, whitespacing and other minor stuff
* visual.c:
  - r_core_visual_append_help(): first steps merging with
    r_cons_cmd_help from cons.c; use consistent colors for headers.
* [WIP 3] Fix wording, whitespacing and other minor stuff
* panels.c(__update_help):
  - shorten code and titles;
  - add comment to clarify that it is not a copy-paste error;
* [WIP 4] Fix wording, whitespacing and other minor stuff
panels.c, visual.c: tweak help text;
* [WIP 5] Fix wording, whitespacing and other minor stuff
* cmd_help.c: update global help text about visual mode -- it was
  outdated and overloaded.
* vmenus.c:
  - rename stuff, shuffle around static consts to reflect an actual
    ordering when viewing as a help text;
  - slightly improve help text rendering;
  - fix whitespaces;
* [WIP 6] Fix wording, whitespacing and other minor stuff
* lots of help text changed.  still working on proper commit message.
2020-12-21 01:12:08 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
Anton Kochkov
87b10ed586 Fix formatting warnings 2020-11-02 18:58:37 +08:00
Anton Kochkov
afba51ce98 Fix format warnings in libr/core 2020-10-22 13:37:25 +08:00
Lowly Worm
834d60e431
allow dN to work in cursor mode (#17517) 2020-08-25 10:49:59 -04:00
pancake
75ee57bfb0
Update SDB with boolified SdbForeachCallback (#17040) 2020-06-11 11:25:23 +02:00
pancake
f8a9011924
Rename core.assembler to core.rasm (#16814) 2020-05-13 01:28:23 +02:00
Florian Märkl
edf1be10d1
Refactor Meta out of SDB (#16716) 2020-05-09 20:49:28 +02:00
Florian Märkl
4560120be2
Refactor Variable Accesses out of SDB (#16632)
Fix #15944
2020-04-19 17:56:27 +02:00
Florian Märkl
35290dd51d
Refactor Variables out of SDB ##anal (#16547) 2020-04-17 22:10:49 +02:00
Riccardo Schirone
c8f99840ab
r_core_seek accepts a boolean as 3rd argument (#16618)
Replaces all 0/1 passed as 3rd argument to r_core_seek with false/true.
2020-04-17 12:53:35 +02:00
Liumeo
1bcdd892db
Fix LGTM alerts (#16606) 2020-04-16 13:20:46 +08:00
pancake
961d5007a9
Do not use r_buf_data in DEX results in 1.5x faster parsing (22s vs 33s) ##bin
* Fix some memory leaks
* Mark r_buf_data as deprecated
* Remove some spaguetti (-42LOC)
* Fix buf license header authorship
* Make parser functions return void for simplicity
2020-04-05 19:24:36 +02:00
HoundThe
c6e8fb1e30
Add anal classes to "Vb" (#16383) ##visual
* base draft for Vb for anal classes
* Added color and boundary check
* Added placeholder print of selection from class.c
2020-04-04 10:58:08 +02:00
HoundThe
657acb2f1f
Another hotfix for the Vbc/ recursion stack overflow (#16382) 2020-03-31 17:54:17 +02:00
pancake
d0b98938c6 Fix infinite loop in Vbc/ - still unusable, but not crashing at least 2020-03-22 14:17:19 +01:00
pancake
ee3932dcb7 Missing newline in Vbc? class browser help message 2020-03-21 20:19:02 +01:00
radare
66ed0133e2
Initial r_anal_fcn_* purge (#16238) ##refactor 2020-03-17 12:58:39 +01:00
radare
80b7b2ae2c
Visual bit editor now shows bits up and down ##visual (#16234) 2020-03-17 03:30:16 +01:00
pancake
b1352ecd08 Add VdN (afs!) to edit function signature with cfg.editor ##visual 2020-03-10 10:30:32 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00
Paul I
0e62dda341
Fix fgets() usage (#16068) 2020-02-29 20:47:10 +01:00
radare
6ae8806411
Do not use the elvis operator for bool expressions (#16073) 2020-02-28 15:19:37 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" (#16055)
This reverts commit 38b61c7bcfe55a727b9c3cedbc0f3147018e7c6b.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor 2020-02-25 17:53:09 +01:00
Anton Kochkov
d0a915458a Coverity fixes 2020-01-19 20:37:29 +08:00
Riccardo Schirone
8a330bedb0 A bit of refactoring in r_config.h 2020-01-17 12:22:44 +01:00
Florian Märkl
14215350af Refactor RAnal Basic Blocks and Functions (#15169) ##anal
Basic Blocks are now global instead of owned by a single function.
2020-01-15 15:23:34 +01:00
Florian Märkl
a7a9408ea1 Fix Vdv start_off calculation (#15735) 2019-12-31 01:21:33 +01:00
Florian Märkl
aced45bf0e Fix #15691 harder (#15733) 2019-12-30 17:18:52 +01:00
pancake
34a4c6d3c6 Fix #15691 - avoid reading invalid memory 2019-12-30 16:46:32 +01:00
pancake
2461780fcd Check for error when analyzing instructions in vmenus 2019-12-29 23:20:05 +01:00
Florian Märkl
ba234e8dca Fix Field Seek in Visual Menus (#15710) 2019-12-27 12:30:53 -06:00
Florian Märkl
70986cc3ce Partially decouple Tasks from RCore 2019-11-26 12:35:30 +01:00
Florian Märkl
9ff090b9b8 Refactor r_flag_color() to r_flag_item_set_color() (#15429) 2019-11-07 12:46:08 +01:00
dodococo
bf43f18382 Fix #14919: truncate long function names in Vv (#14996) ##visual 2019-09-23 09:02:36 +02:00
pancake
09ad4c68a9 Update help message for Vd 2019-08-29 16:17:12 +02:00
pancake
a228c9297b Implement 'cols' RTable.query to filter by column names ##print
* r_str_split_list() rewritten to support nth limit

r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +02:00
pancake
e4bb767d54 Fix some warnings from gcc 2019-08-24 20:30:33 +02:00
dodococo
3f7e941c3f Fixes #14856: Changing visual seek behaviour in Vv (#14877) 2019-08-23 14:36:08 +02:00
dodococo
2b1e53b9c7 Fix #14522: Added g support for Vv mode (#14823) 2019-08-18 12:58:54 +02:00
karliss
7592fa52a9 Fix memory leaks part 2 (#14720) 2019-07-31 23:33:04 +02:00
dodococo
73426e245a Visual Help colorized ##visual 2019-07-24 19:10:10 +02:00
pancake
1c2c3bc88c A bit more cleaner vbtll (struct visual browser) 2019-07-23 01:29:57 +02:00
pancake
e3e7a23100 Improve the visual browse classes mode (vbc) ##visual 2019-07-11 01:31:46 +02:00
pancake
1e9e4d9a83 vda is an alias for vA ##visual 2019-07-02 04:02:17 +02:00
Khairul Azhar Kasmiran
3aed0e88d5 Default to scr.color=COLOR_MODE_16 for Alacritty on Windows ##cons 2019-05-27 18:21:17 +02:00
pancake
fa8f7c8376 Improve the vv mode for editing variables ##visual 2019-05-21 00:48:18 +02:00