File: po-gram.h

package info (click to toggle)
potool 0.12-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 192 kB
  • sloc: ansic: 613; yacc: 350; sh: 231; makefile: 83; perl: 51
file content (48 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (3)
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
/*
 * potool is a program aiding editing of po files
 * Copyright (C) 1999-2002 Zbigniew Chyla
 *
 * see LICENSE for licensing info
 */
#ifndef PO_GRAM_H
#define PO_GRAM_H

#include <glib.h>

void po_scan_open_file(char *fn);
void po_scan_close_file(void);
void po_init_parser(void);

/* ---- */

typedef struct {
	GSList *std, *pos, *res;
	GSList *spec;
} PoComments;

typedef struct {
	char *str;
	int n;
} MsgStrX;

typedef struct {
	PoComments comments;
	gboolean is_fuzzy, is_c_format;
	char *ctx, *id, *id_plural, *str;
	GSList *msgstrxs;
} PoEntry;

typedef struct {
	PoComments comments;
	gboolean is_fuzzy, is_c_format;
	char *ctx, *id, *id_plural, *str;
	GSList *msgstrxs;
} PoObsoleteEntry;

typedef struct {
	GSList *entries, *obsolete_entries;
} PoFile;

PoFile *po_read (char *fn);

#endif /* PO_GRAM_H */