|
Revision 1, 1.4 kB
(checked in by heitor.barbieri, 4 years ago)
|
|
Criação do svn para Cisis.
|
| Line | |
|---|
| 1 | /* ----------------------------------------------------------------- CITPV.H */ |
|---|
| 2 | |
|---|
| 3 | /* ----------------------------------------------------------------- defines */ |
|---|
| 4 | #ifndef UCHAR |
|---|
| 5 | #define UCHAR unsigned char |
|---|
| 6 | #endif /* UCHAR */ |
|---|
| 7 | /* -------------------------------------------------------------- structures */ |
|---|
| 8 | typedef struct { |
|---|
| 9 | |
|---|
| 10 | UCHAR PT_Limit [LE2+1]; |
|---|
| 11 | UCHAR PT_Key [LE2+1]; |
|---|
| 12 | UCHAR PT_WorkKey [LE2+1]; |
|---|
| 13 | UCHAR PT_AuxWorkKey [LE2+1]; |
|---|
| 14 | |
|---|
| 15 | UCHAR *PT_Begin; |
|---|
| 16 | UCHAR *PT_Middle; |
|---|
| 17 | UCHAR *PT_End; |
|---|
| 18 | |
|---|
| 19 | TRMSTRU *PT_Trmp; |
|---|
| 20 | long PT_iTrm; |
|---|
| 21 | |
|---|
| 22 | long PT_FirstChar; /* First char index in isiswctab. */ |
|---|
| 23 | long PT_LastChar; /* Last char index in isiswctab. */ |
|---|
| 24 | |
|---|
| 25 | long PT_DifPosition; |
|---|
| 26 | |
|---|
| 27 | } STRUCT_PREVTERM; |
|---|
| 28 | /* -------------------------------------------------------------- prototypes */ |
|---|
| 29 | #if ANSI |
|---|
| 30 | void IniPreviousTerm(STRUCT_PREVTERM *prvtrm); |
|---|
| 31 | void PT_CharLimits(STRUCT_PREVTERM *prvtrm); |
|---|
| 32 | void PT_Search(STRUCT_PREVTERM *prvtrm); |
|---|
| 33 | long PT_FindPreviousKey(STRUCT_PREVTERM *prvtrm, |
|---|
| 34 | UCHAR * root, |
|---|
| 35 | long itrm, |
|---|
| 36 | UCHAR *previous); |
|---|
| 37 | long TermPrevious(STRUCT_PREVTERM *prvtrm, |
|---|
| 38 | long itrm, |
|---|
| 39 | UCHAR *prefix, |
|---|
| 40 | UCHAR *key); |
|---|
| 41 | #else /* !ANSI */ |
|---|
| 42 | void IniPreviousTerm(); |
|---|
| 43 | void PT_CharLimits(); |
|---|
| 44 | void PT_Search(); |
|---|
| 45 | long PT_FindPreviousKey(); |
|---|
| 46 | long TermPrevious(); |
|---|
| 47 | #endif /* ANSI */ |
|---|