File: ru32var.h

package info (click to toggle)
re 0.1-6.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 352 kB
  • ctags: 467
  • sloc: ansic: 3,687; makefile: 10
file content (78 lines) | stat: -rw-r--r-- 2,037 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/***** ru32var.h *****/


#ifndef __RU32VARTP_DEF
#define __RU32VARTP_DEF 1

enum TRul {norules,nochars,both};
// flag for Pol2Win,Win2Pol - convert char2char only,
//   convert with rules only, convert both with rules & char2char

enum TPH {phRE,phER,phNo};
typedef struct {
  TPH              PH;
  int /*boolean*/  isDBF;
  int              Cp1,Cp2;
  int /*boolean*/  autocpi;
} TAttr;

#endif


#ifndef __RU32VAR_DEF
#define __RU32VAR_DEF 1


#include <stdio.h>
//#include <string.h>
//#include <ctype.h>

//#include "ru32cp.h"

#define LF 0xa

extern  TAttr   Attr;
extern  TRul    __latrules;

extern  int /*Boolean*/ isAddList, isExtended ;
extern  int /*boolean*/ htmlbreak, delhtmltag, binhextag;
extern  int             skipbyte, mimestr;
extern  int auto_toCpi;


extern void SetPh (TPH myPh);
extern void SetDBF (int /*bool*/ myDbf);
extern void SetCp1 (int myCp1);
extern void SetCp2 (int myCp2);
extern int GetCp1 (void);
extern int GetCp2 (void);
//extern void SetFn1 (char* myFn1);
//extern void SetFn2 (char* myFn2);
extern void SetAuto (int /*bool*/ autodetect);
extern void SetAuto2Cpi(int myauto2Cpi);
extern int GetAuto2Cpi(void);
extern void SetDeepAuto (int myDeepAuto);
extern int GetDeepAuto (void);
extern void SetisExtended (int myisExtended);
extern int GetisExtended (void);
extern void SetVerbose (int /*bool*/ myisVerb);
extern int GetVerbose (int /*bool*/ myisVerb);
extern void SetisAddList (int /*bool*/ myAddList);
extern int GetisAddList (void);
extern void SetDelHtmlTag (int /*bool*/ myDelTag);
extern int /*bool*/ GetDelHtmlTag(void);

extern void re4ShowMessage (char* msg);
void getline (char *str, FILE *fp1);
void getnline (char *str, FILE *fp1, int nbytes);
void putline (char *str, FILE *fp2);

extern void  re4cpfile (FILE* f1, FILE* f2);
extern int re4cpnfile (char* ffrom, char* fto);

extern char tolowerANSI (char cc);
extern char toupperANSI (char cc);
extern long filterfile (char *xx, FILE *f1);

#endif