summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls/msgcat.h
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2005-02-01 16:04:55 +0000
committerphantom <phantom@FreeBSD.org>2005-02-01 16:04:55 +0000
commite199e843c1e9d14b6669814791f5e309d8d7d8c5 (patch)
tree06d0d5c262178044ba040ab1a7bb339c958d2e92 /lib/libc/nls/msgcat.h
parentd3d6039fb25159650dd65d2d530a54807316d606 (diff)
downloadFreeBSD-src-e199e843c1e9d14b6669814791f5e309d8d7d8c5.zip
FreeBSD-src-e199e843c1e9d14b6669814791f5e309d8d7d8c5.tar.gz
Cleanup prototypes and remove dead code
MFC After: 3 days
Diffstat (limited to 'lib/libc/nls/msgcat.h')
-rw-r--r--lib/libc/nls/msgcat.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/lib/libc/nls/msgcat.h b/lib/libc/nls/msgcat.h
index f13d888..403b33c 100644
--- a/lib/libc/nls/msgcat.h
+++ b/lib/libc/nls/msgcat.h
@@ -36,27 +36,20 @@ up-to-date. Many thanks.
******************************************************************/
-
-#include <sys/types.h>
-
/*
- * On disk data structures
+ * Magic definitions
*/
-/* For or'd constants */
-#define MCMakeId(s,m) (unsigned long) ( ((unsigned short)s << (sizeof(short)*8)) \
- | (unsigned short)m )
-#define MCSetId(id) (unsigned int) ( id >> (sizeof(short) * 8) )
-#define MCMsgId(id) (unsigned int) ( (id << (sizeof(short) * 8)) \
- >> (sizeof(short) * 8) )
#define MCMagicLen 8
#define MCMagic "*nazgul*"
-#define MCLastMsg 0
-#define MCLastSet 0
#define MCMajorVer 1L
#define MCMinorVer 0
+/* For or'd constants */
+#define MCMakeId(s,m) (unsigned long) ( ((unsigned short)s << (sizeof(short)*8)) \
+ | (unsigned short)m )
+
/*
* Critical note here. Sets and Messages *MUST* be stored in ascending
* order. There are stored that way (by specification) in the original
@@ -84,11 +77,6 @@ up-to-date. Many thanks.
* no guarantee that this will all work.
*/
-/* These should be publicly available */
-
-#define MCLoadBySet 0 /* Load entire sets as they are used */
-#define MCLoadAll 1 /* Load entire DB on catopen */
-
/*
* MCOffsetT - Union to handle both disk and runtime pointers
*/
@@ -129,7 +117,6 @@ typedef struct _MCSetT {
* MCCatT - Runtime catalog pointer
*/
typedef struct {
- long loadType; /* How to load the messages (see MSLoadType) */
FILE *fp; /* File descriptor of catalog (if load-on-demand) */
long numSets; /* Number of sets */
MCSetT *sets; /* Pointer to the sets */
OpenPOWER on IntegriCloud