213 Commits

Author SHA1 Message Date
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
lzutao
1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
Riccardo Schirone
738bc9cb19 Fix warnings by using more r_str_ncpy
* Fix wrong logic in visual_search

When the string to be searched is wrapped in " ", you want to remove the
first and last quotes and look only for the internal string.

* Increase size to prevent string truncation (and fix compiler warning)
* Fix "destination unchanged after copying no bytes" warning
* Move msp430_register_names where it belongs to
* Fix Wstringop-truncation warning
2018-12-19 12:07:49 +01:00
dav1901
c7e6735105 Prevent double freeing (#12319) 2018-11-25 14:37:37 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
BlaCoiso
2af904856f Fix mount shell and ed commands (#12312) 2018-11-24 22:52:08 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
pancake
8caa2ba2ee Fix sys/sdk.sh (--without-gpl) 2018-09-26 10:03:32 -07:00
Paul I
bf29250ddd Fix #11487 (#11534) 2018-09-15 22:52:12 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
Fangrui Song
beda5da178 meson: disable inclusion-only .c files (#10982) 2018-08-08 09:04:07 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
davidpolverari
f87d43899f WIP: Handle path tab autocompletion in RFShell (#9837) 2018-04-24 13:57:17 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
pancake
2a8ab337d9 WIP: Initial implementation of RFShell tab autocompletion 2018-04-09 01:15:20 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
pancake
092695d262 Fix last covs mainly in r_fs 2018-03-23 12:52:56 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
pancake
eb3370f47d Make RFShell initialization more flexible 2018-03-21 12:02:22 +01:00
davidpolverari
b29998f3f2 Implement dietline history on mount-shell (#8806). (#9534)
* Implement dietline history on mount-shell (#8806).

Gives minimal dietline history support inside mount-shell. There is
still a need to implement autocompletion.
2018-03-21 11:59:39 +01:00
Lowly Worm
12d291be0f fix double free in r_fs_find_off_aux 2018-03-04 11:10:19 -08:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
whitequark
c816dc7e66 Don't try to build shared libraries if configured as --without-pic.
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.

Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
2018-01-11 23:09:22 +01:00
pancake
0cb277c2a6 r_str_ansi_chop -> r_str_ansi_trim, r_str_chop_path -> r_str_trim_path 2018-01-08 03:33:01 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
d43d2f738d Fix asm.immstr 2017-11-14 03:59:24 +09:00
pancake
e0bd301c65 Rename mo to mi, and implement mo, o. to open fs files or data as malloc:// 2017-11-08 03:08:41 +01:00
pancake
3af92b04c3 Remove squash references (it's in extras) and add RFSPlugin.license 2017-11-08 00:49:29 +01:00
pancake
69e1e99ff0 Do not use zero length arrays in iso9660 2017-11-07 14:40:19 +01:00
pancake
0c81ce3651 Fix uninitialized partition type issue in 'mp gpt' 2017-11-07 11:45:10 +01:00
pancake
ffeba10d1b Enhance the fs.r2 with /version and proper cat/read ops 2017-11-07 02:04:03 +01:00
pancake
5fc5137c70 Autodetect and mount ISO9660 partitions 2017-11-06 23:58:50 +01:00
pancake
2e08b0c91f Implement /M and enhance r_fs to autodetect filesystems 2017-11-06 23:32:08 +01:00
pancake
f75b5441c9 Fix automount and handle hfs from RBin 2017-11-06 23:06:54 +01:00
Francesco Tamagni
c971176e41 Tweak fs.io
- fs_io_open: expects the io plugin to return the file size as an usigned int string
- fs_io_read: use name instead of path (because fs_io_open sets the name as absolute path) and require the io plugin to provide file contents as hex encoded string
- fs_io_dir: honor the type provided by the io plugin as a single char followed by a space in each line of the output
2017-10-31 00:22:33 +01:00
pancake
2eb8af0b71 Fix recent memleaks found by cov 2017-10-25 16:20:26 +02:00
pancake
d9b548e5b5 Fix last covs 2017-10-24 16:51:34 +02:00
pancake
bb17e9acda Fix mg infinite recursivity issue, add fq and fsq commands and handle /flags in fs.r2 2017-10-23 12:54:03 +02:00
pancake
95a8576360 Fix cd in ms when path not found 2017-10-23 03:57:41 +02:00
pancake
3f64b7a1dc Initial implementation of the r2 filesystem 2017-10-23 03:48:48 +02:00
pancake
21b85ca53f Honor mountpoints in ms's cd 2017-10-23 01:21:24 +02:00
pancake
f20a61a171 List mountpoints in path via md 2017-10-23 01:11:43 +02:00
pancake
5132c88f4d More code cleanup and tweaks for char* r_io_system 2017-10-23 00:45:01 +02:00