Commit graph

20 commits

Author SHA1 Message Date
pancake
bea860681b Make include files C++11 friendly 2014-04-11 10:26:25 +02:00
pancake
2397c956c9 Use R2_ as unique header guard prefix 2014-03-27 16:34:17 +01:00
pancake
86507d9637 Fix stuff to make perl bindings happy 2014-01-05 00:41:13 +01:00
pancake
2cbce80f2f Add __cplusplus extern "C" boilerplate everywhere 2013-06-18 12:09:23 +02:00
pancake
bc0104563b Initial support for runtime versioned libraries
- This check will ensure you are running the latest r2 version.
2013-06-14 02:51:33 +02:00
pancake
0042752a08 Fix 'r_magic_free' definiton (thanks @tautschnig)
> The function magic_close has return type void, but x is of a pointer type.
> Yet the C standard requires that the second and third argument of the
> conditional operator ?: are both void or compatible pointer types (there
> are several other cases, see 6.5.15 of the C Standard). Failing this, the
> compiler may produce arbitrary code.
> The best way to fix this is likely changing the definition to
>  { if(x) {magic_close(x);} }.
2013-02-25 22:52:57 +01:00
Anton Kochkov
e075a18b56 Types cleanups 2012-07-22 12:01:39 +04:00
pancake
55f5dc283e * Initial support for php5 bindings
- Does not link on OSX. maybe in Linux it does..
  - Requires valabind-hg
* Add mp.py to get python module path (magic!)
  - Fixes install-python target in
  - Add purge-python makefile target
* Check for */*cxx to autodetect support
2011-10-26 01:52:05 +02:00
pancake
f5e374e235 * Make w32dist ship sdb and fortunes
* Add support for relative R2_PREFIX for w32
2011-10-24 12:07:12 +02:00
pancake
c05de07cfd * Add some wrapper methods to r_magic with sysmagic 2011-10-20 00:57:02 +02:00
pancake
7dbab2f3bc * Add missing r_anal_diff_setup_i()
* Many fixes for r_magic
  - Proper support for --with-sysmagic
  - Fix bindings build
  - Fix magic files to work with GNU file
  - Add magic instance in RCore
  - Use unowned instead of weak in vapi (deprecated)
2011-10-18 22:07:53 +02:00
pancake
3b9420fad8 * More stuff to make --with-sysmagic work 2011-10-18 18:12:17 +02:00
pancake
4106e9e1b2 * Bump 0.8.8, but still not release
* Add --with-magic to use system magic library
2011-10-18 09:38:20 +02:00
pancake
e9d1dcb4ec * Fix make w32dist
* Update manpages
* Added r2 -H for env and files help
* Add rarun2 -h
* Show assembler/disassembler features in rasm2 -L
* Add opcode 'mov dword [ebp-12],4' to x86.nz
  - Make t/test.nz work with x86.olly (32bit only atm)
* Fix unknown os issue with tiny-pe files in r_bin
* Fix some plugin names build fails in mingw32
* MAGICPATH renamed to R_MAGIC_PATH
* Add another experimental way to generate gir files
  - Added dummy test.js for nodejs
* Build python-dist in farm

--HG--
rename : man/rarc2-tool.1 => binr/old.rarc2/rarc2-tool.1
rename : man/rarc2.1 => binr/old.rarc2/rarc2.1
2011-10-12 03:24:19 +02:00
pancake
866e36b970 * Add sys/dist and sys/python-dist
* Fix for C++ with r_magic.h ?
2011-09-27 14:27:04 +02:00
pancake
c803f2ff49 * Fix build for mingw64 2011-09-14 14:01:21 +02:00
pancake
c0dc0ad950 * Fix build for C++ and r_syscall vapi 2011-09-14 13:22:57 +02:00
pancake
37fecf7c0c * Implement RBinCreate.elf-arm
* Fix uninitialized shstrtab segfault in r_bin_elf
* Do not create new objects unnecesarily in r_core_magic
* Handle length argument in pb command
* Fix ps command
* @@ now prefixes each line with the offset (useful for search)
  - can be problematic when used with macros
  > / lib
  > ps @@ lib*
* Huge refactoring in r_magic, now using the r2 coding standards
  - Use r_magic_new() and _free() instead of open/close
  - Reduced -1KLOC
2011-09-12 01:47:28 +02:00
pancake
2415d86fd6 * Added sys/ in order to ease build, deps and python /cc @hteso
* Some fixes in r_magic api to make r_lang/perl compile
2011-09-10 02:19:06 +02:00
pancake
323441c122 * Initial import of r_magic
- Imported code from OpenBSD trunk
  - Remove the elf part (-1KLOC)
  - Some refactoring in order to be more r2-like
  - fixed warning messages
  - readdir one can be dangerous /cc @vect01
  - Remove libmagic dependency
* Rename asm.case into asm.ucase
2011-09-10 01:30:03 +02:00