File: msgfmt.h

package info (click to toggle)
xview 3.2p1.4-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 20,068 kB
  • ctags: 24,304
  • sloc: ansic: 241,105; yacc: 1,392; sh: 1,140; makefile: 273; lex: 76; perl: 54; asm: 50; cpp: 15
file content (41 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (9)
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

#define USE_MMAP

#include <locale.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/param.h>
#include <signal.h>

#define	DOMAIN_TOKEN	"domain"
#define	MSGID_TOKEN	"msgid"
#define MSGSTR_TOKEN	"msgstr"
#define DEFAULT_DOMAIN	"default"
#define LOCALEDIR	"./"


#define MAX_VALUE_LEN		2047
#define MAX_DOMAIN_LENGTH	255
#define LC_NAMELEN		255

#ifdef USE_MMAP
struct  list_struct {
        off_t   hpt;
        int     msgid_offset, msg_offset;
        char    *msgid;
        char    *msg;
        struct  list_struct *hnext;
        short   hnew;
} list;

#else

struct list_struct {
    off_t    hpt;
    char    *msgid;
    char    *msg;
    struct    list_struct *hnext;
    short    hnew;
};
#endif