import cyrus-sasl-2.1.23
[cyrus-sasl.git] / mac / CommonKClient / mac_kclient3 / Headers / KerberosSupport / ErrorList.r
1 /* $Copyright:\r *\r * Copyright 1998-2000 by the Massachusetts Institute of Technology.\r * \r * All rights reserved.\r * \r * Permission to use, copy, modify, and distribute this software and its\r * documentation for any purpose and without fee is hereby granted,\r * provided that the above copyright notice appear in all copies and that\r * both that copyright notice and this permission notice appear in\r * supporting documentation, and that the name of M.I.T. not be used in\r * advertising or publicity pertaining to distribution of the software\r * without specific, written prior permission.  Furthermore if you modify\r * this software you must label your software as modified software and not\r * distribute it in such a fashion that it might be confused with the\r * original MIT software. M.I.T. makes no representations about the\r * suitability of this software for any purpose.  It is provided "as is"\r * without express or implied warranty.\r * \r * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED\r * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF\r * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.\r * \r * Individual source code files are copyright MIT, Cygnus Support,\r * OpenVision, Oracle, Sun Soft, FundsXpress, and others.\r * \r * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira,\r * and Zephyr are trademarks of the Massachusetts Institute of Technology\r * (MIT).  No commercial use of these trademarks may be made without prior\r * written permission of MIT.\r * \r * "Commercial use" means use of a name in a product or other for-profit\r * manner.  It does NOT prevent a commercial firm from referring to the MIT\r * trademarks in order to convey information (although in doing so,\r * recognition of their trademark status should be given).\r * $\r */\r\r/* $Header: /afs/andrew/system/cvs/src/sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/ErrorList.r,v 1.2 2001/12/04 02:05:56 rjs3 Exp $ */\r\rtype 'ErrT' {\r       integer = $$CountOf (ErrorTable);               //      Number of errors in the table\r  align long;\r\r   wide array ErrorTable {\rEntryStart:\r                                                                                    //      Calculate the length of this\r                                                                                   //      array element (in bytes)\r               integer = (EntryEnd [$$ArrayIndex (ErrorTable)] -\r                                      EntryStart [$$ArrayIndex (ErrorTable)]) / 8;\r           align long;\r\r           longint;                                                        //      ErrorCode\r\r             cstring;                                                        //      Short error string\r             align long;\r\r           cstring;                                                        //      Long error string\r              align long;\r\rEntryEnd:\r };\r};\r\r\r/* sample\r\rformat: error number, short error string, long error string\rerror numbers don't have to be consecutive\r\rresource 'ErrT' (129, "Manager Name")\r{\r     {\r              -1, "Short 1", "Long 1",\r               -2, "Short 2", "Long 2"\r        }\r};\r\r*/