forked from amagnasco/xwpe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeProg.h
83 lines (63 loc) · 2.91 KB
/
WeProg.h
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
79
80
81
82
#ifndef __WEPROG_H
#define __WEPROG_H
/*-------------------------------------------------------------------------*\
<WeProg.h> -- Header file of Xwpe routines for programming support
Date Programmer Description
05/24/97 Dennis Created for xwpe reorganization.
\*-------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/* needed for the time being to call old routines and data types */
#include "model.h"
#include "edit.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
New Types
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
typedef struct wpeSyntaxRule {
unsigned char **reserved_word; /* Reserved words */
unsigned char **long_operator; /* Operators longer than a single character*/
unsigned char *single_operator; /* Single character operators */
unsigned char *begin_comment; /* Comments begin with this string */
unsigned char *end_comment; /* Comments end with this string */
unsigned char *line_comment; /* Comments 'til end of line with this */
unsigned char string_constant; /* Character denoting string constant */
unsigned char char_constant; /* Character denoting character constant */
unsigned char preproc_cmd; /* Character denoting preprocessor commnand*/
unsigned char quoting_char; /* Quote the next character */
unsigned char continue_char; /* Line continues if this is last character*/
unsigned char insensitive; /* Set when language is not case sensitive */
int continue_column; /* Continues previous line if anything in
the column (works?) */
int comment_column; /* Comments from this column on */
/* If any character from the special comment string is found in the special
column the rest of the line is a comment */
int special_column;
unsigned char *special_comment;
} WpeSyntaxRule;
typedef struct wpeSyntaxExt {
char **extension;
WpeSyntaxRule *syntax_rule;
} WpeSyntaxExt;
/* Necessary for the time being */
extern WpeSyntaxExt **WpeSyntaxDef;
/* WeSyntax.h *\
void WpeSyntaxGetPersonal(char *filename);
void WpeSyntaxGetSystem(char *filename,); */
void WpeSyntaxReadFile(ECNT *cn);
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
Macros and Machine specific information
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifdef DJGPP
#define WpeSyntaxGetPersonal(filename) \
sprintf(filename, "./%s", SYNTAX_FILE)
#else
#define WpeSyntaxGetPersonal(filename) \
sprintf(filename, "%s/%s/%s", getenv("HOME"), XWPE_HOME, SYNTAX_FILE)
#endif
#define WpeSyntaxGetSystem(filename) \
sprintf(filename, "%s/%s", LIBRARY_DIR, SYNTAX_FILE)
#ifdef __cplusplus
}
#endif
#endif