Build aicasm as host program, not via world's compiler.
[dragonfly.git] / usr.bin / gencat / gencat.h
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 $ */
3
4 #ifndef GENCAT_H
5 #define GENCAT_H
6
7 /***********************************************************
8 Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
9
10                         All Rights Reserved
11
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.
19
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
26 SOFTWARE.
27
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.
31                                 Kee Hinckley
32                                 Alfalfa Software, Inc.
33                                 267 Allston St., #3
34                                 Cambridge, MA 02139  USA
35                                 nazgul@alfalfa.com
36
37 ******************************************************************/
38
39 /*
40  * $set n comment
41  *      My extension:  If the comment begins with # treat the next string
42  *       as a constant identifier.
43  * $delset n comment
44  *      n goes from 1 to NL_SETMAX
45  *      Deletes a set from the MC
46  * $ comment
47  *      My extension:  If comment begins with # treat the next string as
48  *       a constant identifier for the next message.
49  * m message-text
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.
57  * $quote c
58  *      Optional quote character which can suround message-text to
59  *       show where spaces are.
60  *
61  * Escape Characters
62  *      \n (newline), \t (horiz tab), \v (vert tab), \b (backspace),
63  *      \r (carriage return), \f (formfeed), \\ (backslash), \ddd (bitpattern
64  *      in octal).
65  *      Also, \ at end of line is a continuation.
66  *
67  */
68
69 #define MCLangC         0
70 #define MCLangCPlusPlus 1
71 #define MCLangANSIC     2
72
73 #define MAXTOKEN        1024
74
75 #define TRUE            1
76 #define FALSE           0
77
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);
87
88 #endif /* GENCAT_H */