~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to intl/plural-exp.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Expression parsing and evaluation for plural form selection.
2
 
   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
 
2
   Copyright (C) 2000-2003 Free Software Foundation, Inc.
3
3
   Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify it
20
20
#ifndef _PLURAL_EXP_H
21
21
#define _PLURAL_EXP_H
22
22
 
23
 
#ifndef PARAMS
24
 
# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
25
 
#  define PARAMS(args) args
26
 
# else
27
 
#  define PARAMS(args) ()
28
 
# endif
29
 
#endif
30
 
 
31
23
#ifndef internal_function
32
24
# define internal_function
33
25
#endif
34
26
 
 
27
#ifndef attribute_hidden
 
28
# define attribute_hidden
 
29
#endif
 
30
 
35
31
 
36
32
/* This is the representation of the expressions to determine the
37
33
   plural form.  */
94
90
# define GERMANIC_PLURAL __gettext_germanic_plural
95
91
# define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural
96
92
#elif defined (IN_LIBINTL)
97
 
# define FREE_EXPRESSION gettext_free_exp__
98
 
# define PLURAL_PARSE gettextparse__
99
 
# define GERMANIC_PLURAL gettext_germanic_plural__
100
 
# define EXTRACT_PLURAL_EXPRESSION gettext_extract_plural__
 
93
# define FREE_EXPRESSION libintl_gettext_free_exp
 
94
# define PLURAL_PARSE libintl_gettextparse
 
95
# define GERMANIC_PLURAL libintl_gettext_germanic_plural
 
96
# define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural
101
97
#else
102
98
# define FREE_EXPRESSION free_plural_expression
103
99
# define PLURAL_PARSE parse_plural_expression
105
101
# define EXTRACT_PLURAL_EXPRESSION extract_plural_expression
106
102
#endif
107
103
 
108
 
extern void FREE_EXPRESSION PARAMS ((struct expression *exp))
 
104
extern void FREE_EXPRESSION (struct expression *exp)
109
105
     internal_function;
110
 
extern int PLURAL_PARSE PARAMS ((void *arg));
111
 
extern struct expression GERMANIC_PLURAL;
112
 
extern void EXTRACT_PLURAL_EXPRESSION PARAMS ((const char *nullentry,
113
 
                                               struct expression **pluralp,
114
 
                                               unsigned long int *npluralsp))
 
106
extern int PLURAL_PARSE (void *arg);
 
107
extern struct expression GERMANIC_PLURAL attribute_hidden;
 
108
extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry,
 
109
                                       struct expression **pluralp,
 
110
                                       unsigned long int *npluralsp)
115
111
     internal_function;
116
112
 
117
113
#if !defined (_LIBC) && !defined (IN_LIBINTL)
118
 
extern unsigned long int plural_eval PARAMS ((struct expression *pexp,
119
 
                                              unsigned long int n));
 
114
extern unsigned long int plural_eval (struct expression *pexp,
 
115
                                      unsigned long int n);
120
116
#endif
121
117
 
122
118
#endif /* _PLURAL_EXP_H */