aboutsummaryrefslogtreecommitdiff
path: root/src/wyslij-po.h
blob: 1dbac9094bc3d3f7e716873b71049dc8b9708214 (plain)
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
/* This file is part of Wyslij-po
   Copyright (C) 2007, 2009-2010, 2017 Sergey Poznyakoff

   Wyslij-po 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 3, or (at your option)
   any later version.

   Wyslij-po 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 Wyslij-po.  If not, see <http://www.gnu.org/licenses/>. */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <mailutils/mailutils.h>
#define obstack_chunk_alloc malloc
#define obstack_chunk_free free
#include "obstack.h"
#include <regex.h>
#include <xalloc.h>
#include <gettext.h>
#include <locale.h>

#define _(s) gettext(s)
#define N_(s) s

#define DEFAULT_LANGTAB_FILE SYSCONFDIR "/wyslij-po.lc"

#define VERIFY_PO_TIME         0x01
#define VERIFY_PACKAGE_VERSION 0x02

#define ISHSPACE(c) ((c) == ' ' || (c) == '\t')

extern char *tp_url;
extern char *pot_regex_str;
extern int verify_mask;
extern int verbose;

char *restore_file_name (const char *, char **);
int parse_lang_datafile (const char *name);
int verify_pot_version (const char *project, const char *vers);
void compile_pot_regex_str (void);
     

Return to:

Send suggestions and report system problems to the System administrator.