- fold recurse, depthFirst and dereference params into one param flags.

Minor size improvement (-16b for size, -24b according to bloat-o-meter).
This commit is contained in:
Bernhard Reutner-Fischer
2007-03-29 10:30:50 +00:00
parent 3d43edb28c
commit 3e816c1252
11 changed files with 50 additions and 55 deletions

View File

@@ -336,9 +336,9 @@ static int grep_dir(const char *dir)
{
int matched = 0;
recursive_action(dir,
/* recurse= */ 1,
/* followLinks= */ 0,
/* depthFirst= */ 1,
/* recurse= */ action_recurse |
/* followLinks= */ /* no. 0 | */
/* depthFirst= */ action_depthFirst,
/* fileAction= */ file_action_grep,
/* dirAction= */ NULL,
/* userData= */ &matched,