Commit Graph

56 Commits

Author SHA1 Message Date
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
304a3a7fcf
Use more R_LOG instead of eprintfs and add more linting checks ##refactor 2022-06-28 11:24:06 +02:00
pancake
c71d232f8b Implement Llj and #!?j for rlang plugin listing ##shell 2022-05-30 21:15:19 +02:00
Lazula
6c868bb010 Last improvements for this patch 2022-03-23 11:53:03 +01:00
Lazula
5d4f8f83ca Improve #! autocomplete when tabhelp is enabled 2022-03-23 11:53:03 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
pancake
e96de87e90 Fix last covs 2021-05-25 11:46:01 +02:00
Rene Laemmert
7a7c0a7bfb
Fix #18727 - Support more hashes in ph ##hash 2021-05-21 10:17:12 +02:00
pancake
0f4bc7191b Add #!*? command to show rlang plugin examples ##lang
* Add examples for C and V
2021-03-29 21:00:45 +02:00
pancake
2be5ff8762
Use r_core_cmd_str_pipe when using . in a panels (#17982) ##visual 2020-12-16 14:25:36 +01:00
pancake
aa816fdc79
Cleanup cmd_hash.c a little bit (#18000) 2020-12-07 15:20:51 +01:00
Anton Kochkov
afba51ce98 Fix format warnings in libr/core 2020-10-22 13:37:25 +08:00
Riccardo Schirone
7ee93fb457
Fix rlang scripts and cpipe when non standard paths are used ##lang (#17198)
* Get RLangPlugin by name, not by extension
* Directly pass PKG_CONFIG_PATH and set LD_LIBRARY_PATH on cpipe
* Add tests for `#!`
* Move tests to archos tests and do not compile c/cpipe on non-unix
* Escape also in c RLangPlugin
* Use `#pragma message` on windows
* Do not include C/cpipe RLangPlugins on windows
* Also the C plugin is not ready to be used on windows
2020-07-10 13:41:58 +08:00
condret
a69480d639 Fix hashbang for lang plugins that do not set argc/argv (#15218) 2019-10-07 17:28:56 +02:00
condret
9eb257cf17 Rewrite hashbang command parser, use argc & argv in hashbang (#15188) ##lang 2019-10-04 14:11:13 +02:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
Guillaume Valadon
f8fa075a5e Improved hashbang error message (#12006) 2018-10-30 16:42:07 +01:00
pancake
20b95e4bb4 Fix asan issue related to the hashbang launch 2018-07-19 17:25:44 +02:00
pancake
0612ab7275 Minor indentation fixes coming from the fix-pipes pr 2018-03-23 15:03:17 +01:00
pancake
335938be58 r_str_chop -> r_str_trim 2018-01-08 03:22:26 +01:00
vertur
3a91bf0e97 Wide CRC hashes
* Avoid explicit size for CRC hash.
* Add more CRC8 hashing presets.
* Add more CRC16 hashing presets.
* Add more CRC32 hashing presets.
* Add CRC64 hashing presets (disabled).
* Regroup CRC presets and make they presence configurable. Disable CRC16 and enable CRC64 hashing.
* Prevent from bitset overflow. Enable all CRC hashes.
* Regroup CRC presets again. Enable all original and disable rare-used presets.
* Fix issue with mismatched bitset types.
2018-01-07 20:41:53 +01:00
icebp
217bfc8f49 make invalid hashbang always print an error (#8727)
* add an error message on unhandled invalid hashbang

* fix style error

* sticking with the original error message.
2017-10-22 18:39:20 +02:00
pancake
31468882cc Add support for #!python -e and other rlang plugins 2017-05-09 02:42:51 +02:00
Giovanni
2b6f6262fc Integrate crca in rahash2 and r2 2017-04-11 22:47:16 +02:00
dx
76dab54b96 Fix #6124 - ensure "#\t" doesn't get processed as a command (#6132)
This whitelists #! and #? and considers every other line starting with #
as a command, handled at r_core_cmd_subst() instead of reaching
cmd_hash(), because if that happens, file redirections and other
modifiers may get processed too in lines that otherwise look like
comments.
2016-11-06 21:54:50 +01:00
Moritz Eckert
143d2c3791 Fix #4965. Add support for luhn searching and hashing. 2016-08-01 12:34:54 +02:00
pancake
d9cdd29268 Fix endian issue in crc16 and crc32 2016-05-16 02:08:59 +02:00
pancake
5683e45cb2 Move hash commands from # to ph 2016-05-16 02:08:55 +02:00
Jeffrey Crowell
9518841434 refactor includes (#4757) 2016-05-03 04:52:41 +02:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
pancake
0427dbc04f Add /# command to search for blocks matching a hash 2015-06-22 00:22:18 +02:00
pancake
f307e4b6bb Handle s/v s/c s/V and fix help message 2015-03-03 22:34:44 +01:00
pancake
1ee9f99b3b Make comments less picky # 2015-03-03 00:17:34 +01:00
jvoisin
95d9704498 More coverifix 2015-02-03 15:53:51 +01:00
pancake
d020f7cee4 Random fixes for #! and #!vala 2014-11-17 23:23:53 +01:00
pancake
053f71f946 Fix previous 'wt' commit and disable #! in sandbox mode (Fix #1604) 2014-11-01 04:22:09 +01:00
pancake
492298e16f Handle #\t as comment too 2014-10-17 11:24:56 +02:00
pancake
7def7f0413 Fix #1220 - Implement #parity 2014-08-19 10:23:50 +02:00
pancake
e16e2d9dc2 Fix segfault in #md5 <your-favourite-big-number-here> 2014-08-19 09:57:15 +02:00
pancake
1cc7854392 Colorize #? help message 2014-08-17 17:18:50 +02:00
pancake
0d3b5e18ea Add missing file and minor hashbang fix 2014-07-30 22:15:16 +02:00
pancake
6eb154ec11 Fix #entropy and p= 2014-07-02 18:06:32 +02:00
jvoisin
70dc77f9c7 Fix a stupid mustake in bed307e 2014-06-28 22:52:08 +02:00
jvoisin
bed307e818 even moar colorz in help 2014-06-28 16:35:15 +02:00
deeso
a1e81a4cbd refactored some of cmd_hash 2014-04-20 17:22:51 -05:00
pancake
0ce9611a15 Fix #466 - The '-' command works fine only once 2013-12-19 00:05:49 +01:00
pancake
7c9b044931 HashBang now ignores /path/to syntax 2013-12-14 03:14:26 +01:00
pancake
7602b73da2 Add 'C' native RLang plugin 2013-12-14 02:35:14 +01:00
pancake
f0a45a556a Fix ^w segfault and many bugfixes for macro scripting 2013-11-30 02:47:29 +01:00