1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
25 * machine independent binary message catalog interface
28 * all numbers are sfputu() format
30 * 4 char magic (^M^S^G0)
31 * <method locale YYYY-MM-DD>\0
32 * (<optional strings>\0)*
45 * msg(#sets,#msgs) size
54 #define MC_MAGIC "\015\023\007\000"
55 #define MC_MAGIC_SIZE 4
57 #define MC_SET_MAX 1023
58 #define MC_NUM_MAX 32767
60 #define MC_NLS (1<<10)
62 #define MC_MESSAGE_SET(s) mcindex(s,NiL,NiL,NiL)
82 #if _BLD_ast && defined(__EXPORT__)
83 #define extern __EXPORT__
86 extern char* mcfind(char*, const char*, const char*, int, int);
87 extern Mc_t
* mcopen(Sfio_t
*);
88 extern char* mcget(Mc_t
*, int, int, const char*);
89 extern int mcput(Mc_t
*, int, int, const char*);
90 extern int mcdump(Mc_t
*, Sfio_t
*);
91 extern int mcindex(const char*, char**, int*, int*);
92 extern int mcclose(Mc_t
*);