~ubuntu-branches/ubuntu/raring/findutils/raring

« back to all changes in this revision

Viewing changes to find/util.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2005-07-04 11:37:37 UTC
  • mto: (11.1.1 lenny) (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050704113737-oxfumqxsqgfz5gay
Tags: upstream-4.2.22
ImportĀ upstreamĀ versionĀ 4.2.22

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* util.c -- functions for initializing new tree elements, and other things.
2
 
   Copyright (C) 1990, 91, 92, 93, 94, 2000 Free Software Foundation, Inc.
 
2
   Copyright (C) 1990, 91, 92, 93, 94, 2000, 2003, 2004 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
13
13
 
14
14
   You should have received a copy of the GNU General Public License
15
15
   along with this program; if not, write to the Free Software
16
 
   Foundation, Inc., 9 Temple Place - Suite 330, Boston, MA 02111-1307,
 
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
17
   USA.
18
18
*/
19
19
 
20
20
#include "defs.h"
 
21
#include "../gnulib/lib/xalloc.h"
21
22
 
22
23
#if ENABLE_NLS
23
24
# include <libintl.h>
28
29
#ifdef gettext_noop
29
30
# define N_(String) gettext_noop (String)
30
31
#else
31
 
# define N_(String) (String)
 
32
/* See locate.c for explanation as to why not use (String) */
 
33
# define N_(String) String
32
34
#endif
33
35
 
34
36
 
66
68
  last_pred->side_effects = false;
67
69
  last_pred->no_default_print = false;
68
70
  last_pred->need_stat = true;
 
71
  last_pred->need_type = true;
69
72
  last_pred->args.str = NULL;
70
73
  last_pred->pred_next = NULL;
71
74
  last_pred->pred_left = NULL;
99
102
        new_pred->p_type = BI_OP;
100
103
        new_pred->p_prec = AND_PREC;
101
104
        new_pred->need_stat = false;
 
105
        new_pred->need_type = false;
102
106
        new_pred->args.str = NULL;
103
107
 
104
108
      default:
124
128
   operator. */
125
129
 
126
130
struct predicate *
127
 
insert_primary (boolean (*pred_func) (/* ??? */))
 
131
insert_primary (PRED_FUNC pred_func)
128
132
{
129
133
  struct predicate *new_pred;
130
134
 
145
149
  if (msg)
146
150
    fprintf (stderr, "%s: %s\n", program_name, msg);
147
151
  fprintf (stderr, _("\
148
 
Usage: %s [path...] [expression]\n"), program_name);
 
152
Usage: %s [-H] [-L] [-P] [path...] [expression]\n"), program_name);
149
153
  exit (1);
150
154
}