1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* xgettext common functions.
Copyright (C) 2001 Free Software Foundation, Inc.
Written by Peter Miller <millerp@canb.auug.org.au>
and Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef _XGETTEXT_H
#define _XGETTEXT_H
#include <stdlib.h>
#include "message.h"
#include "pos.h"
extern int line_comment;
extern bool substring_match;
/* List of messages whose msgids must not be extracted, or NULL.
Used by remember_a_message(). */
extern message_list_ty *exclude;
/* Comment handling: There is a list of automatic comments that may be appended
to the next message. Used by remember_a_message(). */
extern void xgettext_comment_add PARAMS ((const char *str));
extern const char *xgettext_comment PARAMS ((size_t n));
extern void xgettext_comment_reset PARAMS ((void));
/* Add a message to the list of extracted messages. */
extern message_ty *remember_a_message PARAMS ((message_list_ty *mlp,
char *string, lex_pos_ty *pos));
/* Add an msgid_plural to a message previously returned by
remember_a_message. */
extern void remember_a_message_plural PARAMS ((message_ty *mp,
char *string, lex_pos_ty *pos));
#endif /* _XGETTEXT_H */
|