Skip to content

Commit

Permalink
(MAX): Add macro. It is not sure we get it through any header file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Sep 11, 1995
1 parent 287fbbe commit a36e4c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions io/fts.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ static int fts_palloc __P((FTS *, size_t));
static FTSENT *fts_sort __P((FTS *, FTSENT *, int));
static u_short fts_stat __P((FTS *, FTSENT *, int));

#ifndef MAX
#define MAX(a, b) ({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#endif

#define ISDOT(a) (a[0] == '.' && (!a[1] || a[1] == '.' && !a[2]))

#define ISSET(opt) (sp->fts_options & opt)
Expand Down

0 comments on commit a36e4c9

Please sign in to comment.