| 1 |
/* |
| 2 |
* The Regina Rexx Interpreter |
| 3 |
* Copyright (C) 2001 Mark Hessling <[email protected]> |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Library General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Library General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Library General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
struct textindex |
| 20 |
{ |
| 21 |
unsigned int errorno; |
| 22 |
unsigned int suberrorno; |
| 23 |
unsigned int textlength; |
| 24 |
unsigned int fileoffset; |
| 25 |
}; |
| 26 |
|
| 27 |
/* |
| 28 |
* The following number is generated by running 'msgcmp'. This number MUST |
| 29 |
* match the first word in the binary error message files (*.mtb), or an |
| 30 |
* error indicating that the error message files are corrupt will be |
| 31 |
* displayed instead of a real error message. |
| 32 |
*/ |
| 33 |
#define NUMBER_ERROR_MESSAGES 271 |
| 34 |
#define NUMBER_PREFIX_MESSAGES 3 |
| 35 |
|
| 36 |
/* |
| 37 |
* Default language index |
| 38 |
*/ |
| 39 |
#define LANGUAGE_ENGLISH 0 |
| 40 |
|
| 41 |
/* |
| 42 |
* Format of .mtb files: |
| 43 |
* uint - number of messages (must match NUMBER_ERROR_MESSAGES) |
| 44 |
* uint - language index (see errlang[] in error.c) |
| 45 |
**uint - number of prefix lines (must match NUMBER_PREFIX_MESSAGES) |
| 46 |
* struct textindexs (number messages + number prefix lines) |
| 47 |
* char * error mesage text and prefix text in one chunk |
| 48 |
*/ |