Skip to content

Commit

Permalink
move the macro MIN to utils.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 27, 2014
1 parent 1b4864a commit a88c116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ cs_err cs_close(csh *handle)
return CS_ERR_OK;
}

#define MIN(x, y) ((x) < (y) ? (x) : (y))

// fill insn with mnemonic & operands info
static void fill_insn(struct cs_struct *handle, cs_insn *insn, char *buffer, MCInst *mci,
PostPrinter_t postprinter, const uint8_t *code)
Expand Down
2 changes: 2 additions & 0 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ unsigned int count_positive(unsigned char *list);

char *cs_strdup(const char *str);

#define MIN(x, y) ((x) < (y) ? (x) : (y))

#endif

0 comments on commit a88c116

Please sign in to comment.