~ubuntu-branches/ubuntu/maverick/radare/maverick

« back to all changes in this revision

Viewing changes to src/plug/hack/python.c

  • Committer: Bazaar Package Importer
  • Author(s): SevenMachines
  • Date: 2010-09-07 15:44:27 UTC
  • mfrom: (1.1.3 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100907154427-37u92vu12tqabqqz
Tags: 1:1.5.2-3ubuntu1
* Merge from debian testing (LP: #621016)
* debian/control:
     + libvala-dev transition to libval-0.10-dev (LP: #618809) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *
19
19
 */
20
20
 
 
21
#undef _GNU_SOURCE
 
22
#include <Python.h>
21
23
#define RADARE_MODULE
22
24
#include <plugin.h>
23
25
#include <main.h>
24
 
#undef _GNU_SOURCE
25
 
#include <Python.h>
26
26
#include <structmember.h>
27
27
extern int radare_plugin_type;
28
28
extern struct plugin_hack_t radare_plugin;
238
238
        return 0;
239
239
}
240
240
 
241
 
void python_hack_cmd(const char *input)
 
241
int python_hack_cmd(const char *input)
242
242
{
243
243
        if (rs == NULL)
244
244
                rs = radare_plugin.resolve("radare_cmd_str");
282
282
                } 
283
283
        }
284
284
        epython_destroy();
 
285
        return 0;
285
286
}
286
287
 
287
288
int radare_plugin_type = PLUGIN_TYPE_HACK;