1 /* 2 * Copyright (c) 1991-1994 Sony Corporation 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining 5 * a copy of this software and associated documentation files (the 6 * "Software"), to deal in the Software without restriction, including 7 * without limitation the rights to use, copy, modify, merge, publish, 8 * distribute, sublicense, and/or sell copies of the Software, and to 9 * permit persons to whom the Software is furnished to do so, subject to 10 * the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be 13 * included in all copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 * IN NO EVENT SHALL SONY CORPORATION BE LIABLE FOR ANY CLAIM, 19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 21 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * 23 * Except as contained in this notice, the name of Sony Corporation 24 * shall not be used in advertising or otherwise to promote the sale, use 25 * or other dealings in this Software without prior written authorization 26 * from Sony Corporation. 27 * 28 */ 29 30 /* 31 * $SonyRCSfile: Dict.h,v $ 32 * $SonyRevision: 1.1 $ 33 * $SonyDate: 1994/06/03 08:00:55 $ 34 */ 35 36 37 38 39 #define VersionPos 0 40 41 #define PasswdPos 16 42 #define PasswdLen 16 43 44 45 #define StdyNormPos 32 46 #define StdyNormLen 36 47 #define StdyNormNum 40 48 #define StdyNormCnt 44 49 50 #define StdyClIdxPos 48 51 #define StdyClIdxLen 52 52 #define StdyClIdxStep 56 53 54 #define StdyClSegPos 64 55 #define StdyClSegLen 68 56 57 58 #define DictIdxPos 32 59 #define DictIdxLen 36 60 61 #define DictSegPos 48 62 #define DictSegLen 52 63 #define DictSegNum 56 64 #define DictSegMax 60 65 66 #define DictAIdxPos 64 67 #define DictAIdxLen 68 68 69 #define DictASegPos 80 70 #define DictASegLen 84 71 72 73 #define HeaderPos 0 74 #define HeaderLength 128 75 #define CommentPos 128 76 #define CommentLength 128 77 78 79 #define Byte2Long(c3,c2,c1,c0) (((c3) << (8*3)) | ((c2) << (8*2)) | \ 80 ((c1) << (8*1)) | ((c0) << (8*0))) 81 #define StdyVersion Byte2Long('S', 2, 0, 0) 82 #define DictVersion Byte2Long('D', 2, 0, 0) 83