xref: /OpenGrok/opengrok-indexer/src/test/resources/analysis/plain/ErrorList.r.txt (revision 0e717e6a6b504b7322a135e624d7038b72d9f190)
1*0e717e6aSChris Fraire/* $Copyright:
2 *
3 * Copyright 1998-2000 by the Massachusetts Institute of Technology.
4 *
5 * All rights reserved.
6 *
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation for any purpose and without fee is hereby granted,
9 * provided that the above copyright notice appear in all copies and that
10 * both that copyright notice and this permission notice appear in
11 * supporting documentation, and that the name of M.I.T. not be used in
12 * advertising or publicity pertaining to distribution of the software
13 * without specific, written prior permission.  Furthermore if you modify
14 * this software you must label your software as modified software and not
15 * distribute it in such a fashion that it might be confused with the
16 * original MIT software. M.I.T. makes no representations about the
17 * suitability of this software for any purpose.  It is provided "as is"
18 * without express or implied warranty.
19 *
20 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
21 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22 * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 * Individual source code files are copyright MIT, Cygnus Support,
25 * OpenVision, Oracle, Sun Soft, FundsXpress, and others.
26 *
27 * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,
28 * and Zephyr are trademarks of the Massachusetts Institute of Technology
29 * (MIT).  No commercial use of these trademarks may be made without prior
30 * written permission of MIT.
31 *
32 * "Commercial use" means use of a name in a product or other for-profit
33 * manner.  It does NOT prevent a commercial firm from referring to the MIT
34 * trademarks in order to convey information (although in doing so,
35 * recognition of their trademark status should be given).
36 * $
37 */
38
39/* $Header: /cvs/src/sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/ErrorList.r,v 1.2 2001/12/04 02:05:56 rjs3 Exp $ */
40
41type 'ErrT' {
42	integer = $$CountOf (ErrorTable);		//	Number of errors in the table
43	align long;
44
45	wide array ErrorTable {
46EntryStart:
47											//	Calculate the length of this
48											//	array element (in bytes)
49		integer = (EntryEnd [$$ArrayIndex (ErrorTable)] -
50					EntryStart [$$ArrayIndex (ErrorTable)]) / 8;
51		align long;
52
53		longint;							//	ErrorCode
54
55		cstring;							//	Short error string
56		align long;
57
58		cstring;							//	Long error string
59		align long;
60
61EntryEnd:
62	};
63};
64
65
66/* sample
67
68format: error number, short error string, long error string
69error numbers don't have to be consecutive
70
71resource 'ErrT' (129, "Manager Name")
72{
73	{
74		-1, "Short 1", "Long 1",
75		-2, "Short 2", "Long 2"
76	}
77};
78
79*/