~ubuntu-branches/ubuntu/saucy/radare/saucy

« back to all changes in this revision

Viewing changes to src/macros.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Reichel
  • Date: 2009-05-22 19:01:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090522190100-qqp4aja112976t5v
Tags: 20090522-1
* new hg checkout
 - added 'cX' command to compare like 'cc' does but using two side hexdiff dump format
 - specify pointer & data size in pm with %<size>
 - add graph.weight
 - fix 'c' command (missing radare_read(0))
 - added /P search command that searchs for proximity in bytelevel distance
 - added more 'ag' and 'gu' commands to readline autocompletion.
 - fix build of debugger for non-linux systems
 - fixed code analysis at startup
 - more work in graphs (graph.split)
 - fixups in x86 code analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
        str = alloca(strlen(name)+1);
296
296
        strcpy(str, name);
297
297
        ptr = strchr(str, ')');
298
 
 
 
298
        if (ptr) *ptr='\0';
299
299
        args = strchr(str, ' ');
300
300
        if (args) {
301
301
                *args='\0';
319
319
                        char *end = strchr(ptr, '\n');
320
320
 
321
321
                        if (mac->nargs != 0 && nargs != mac->nargs) {
322
 
                                eprintf("Macro '%s' expects %d args\n", mac->name, mac->nargs);
 
322
                                eprintf("Macro '%s' expects %d args. (not %d) (%s).\n",
 
323
                                        mac->name, mac->nargs, nargs, name);
323
324
                                macro_level --;
324
325
                                return 0;
325
326
                        }