Deleted Added
full compact
38,39c38,43
< static char sccsid[] = "@(#)function.c 8.10 (Berkeley) 5/4/95";
< static char rcsid[] = "$FreeBSD: head/usr.bin/find/function.c 61573 2000-06-12 10:36:52Z roberto $";
---
> #if 0
> static const char sccsid[] = "@(#)function.c 8.10 (Berkeley) 5/4/95";
> #else
> static const char rcsid[] =
> "$FreeBSD: head/usr.bin/find/function.c 61575 2000-06-12 11:12:41Z roberto $";
> #endif
719a724,784
> * -maxdepth n functions --
> *
> * Does the same as -prune if the level of the current file is greater
> * than the specified maximum depth.
> *
> * Note that -maxdepth and -mindepth are handled specially in
> * find_execute() so their f_* functions here do nothing.
> */
> int
> f_maxdepth(plan, entry)
> PLAN *plan;
> FTSENT *entry;
> {
> return (1);
> }
>
> PLAN *
> c_maxdepth(arg)
> char *arg;
> {
> PLAN *new;
>
> if (*arg == '-')
> /* all other errors handled by find_parsenum() */
> errx(1, "-maxdepth: %s: value must be positive", arg);
>
> new = palloc(N_MAXDEPTH, f_maxdepth);
> maxdepth = find_parsenum(new, "-maxdepth", arg, NULL);
> return (new);
> }
>
> /*
> * -mindepth n functions --
> *
> * True if the current file is at or deeper than the specified minimum
> * depth.
> */
> int
> f_mindepth(plan, entry)
> PLAN *plan;
> FTSENT *entry;
> {
> return (1);
> }
>
> PLAN *
> c_mindepth(arg)
> char *arg;
> {
> PLAN *new;
>
> if (*arg == '-')
> /* all other errors handled by find_parsenum() */
> errx(1, "-maxdepth: %s: value must be positive", arg);
>
> new = palloc(N_MINDEPTH, f_mindepth);
> mindepth = find_parsenum(new, "-mindepth", arg, NULL);
> return (new);
> }
>
> /*
1013,1014d1077
<
< /*
1016d1078
<