1 /* $FreeBSD: src/usr.bin/gencat/gencat.h,v 1.2.12.1 2001/12/17 12:09:35 phantom Exp $ */
2 /* $DragonFly: src/usr.bin/gencat/Attic/gencat.h,v 1.2 2003/06/17 04:29:27 dillon Exp $ */
7 /***********************************************************
8 Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that Alfalfa's name not be used in
17 advertising or publicity pertaining to distribution of the software
18 without specific, written prior permission.
20 ALPHALPHA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 ALPHALPHA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28 If you make any modifications, bugfixes or other changes to this software
29 we'd appreciate it if you could send a copy to us so we can keep things
30 up-to-date. Many thanks.
32 Alfalfa Software, Inc.
34 Cambridge, MA 02139 USA
37 ******************************************************************/
41 * My extension: If the comment begins with # treat the next string
42 * as a constant identifier.
44 * n goes from 1 to NL_SETMAX
45 * Deletes a set from the MC
47 * My extension: If comment begins with # treat the next string as
48 * a constant identifier for the next message.
50 * m goes from 1 to NL_MSGMAX
51 * If message-text is empty, and a space or tab is present, put
52 * empty string in catalog.
53 * If message-text is empty, delete the message.
54 * Length of text is 0 to NL_TEXTMAX
55 * My extension: If '#' is used instead of a number, the number
56 * is generated automatically. A # followed by anything is an empty message.
58 * Optional quote character which can suround message-text to
59 * show where spaces are.
62 * \n (newline), \t (horiz tab), \v (vert tab), \b (backspace),
63 * \r (carriage return), \f (formfeed), \\ (backslash), \ddd (bitpattern
65 * Also, \ at end of line is a continuation.
70 #define MCLangCPlusPlus 1
78 extern void MCAddSet(int, char *);
79 extern void MCDelSet(int);
80 extern void MCAddMsg(int, const char *, char *);
81 extern void MCDelMsg(int);
82 extern void MCParse(int);
83 extern void MCReadCat(int);
84 extern void MCWriteConst(int, int, int);
85 extern void MCWriteCat(int);
86 extern long MCGetByteOrder(void);