Subversion Repositories wimsdev

Rev

Rev 8148 | Rev 8367 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8135 bpr 1
/* from oef2wims.c */
2
 
3
extern char *badpar, *inpbuf;
4
extern char *mdef; /* external definition */
5
extern int varcnt, deftag;
6
extern FILE *outf;
7
 
8
#define elsechar '\001'
9
#define endifchar '\002'
10
#define nextchar '\003'
11
#define whilechar '\004'
12
#define MAX_PARM 10
13
#define MAX_PROMPTLEN 40
14
#define MAX_PARAM   1024
15
#define executed_str "__EXECUTED_1692754_EXERCISE__"
16
extern int choicecnt, answercnt, condans, conditioncnt;
17
extern int embedcnt;
18
extern char *primitive_dir, *format;
19
/* from oeflines.c */
20
 
21
extern struct param {
22
    char *name;
23
    int serial;
24
    short int type, save;
25
} param[];
26
 
8195 bpr 27
void oef_error(char *s);
8135 bpr 28
void subst(char *p);
29
void repsubst(char *p);
30
void replace_newline(char *p);
31
char *substit(char *p);
32
int checkparentheses(char *p, int style);
33
 
34
/* from compare.c */
35
int _check_compare(char *p, int lvl);
36
int check_compare(char *p);
37
 
38
/* from outexec.c */
39
void out_exec(char *s1, char *s2);
40
 
41
/* from process.c */
42
void p_answer(char *p[MAX_PARM]);
43
void p_choice(char *p[MAX_PARM]);
44
void p_author(char *p[MAX_PARM]);
45
void p_email(char *p[MAX_PARM]);
46
void p_computeanswer(char *p[MAX_PARM]);
47
void p_precision(char *p[MAX_PARM]);
48
void p_css(char *p[MAX_PARM]);
49
void p_range(char *p[MAX_PARM]);
50
void p_language(char *p[MAX_PARM]);
51
void p_statement(char *p[MAX_PARM]);
52
void p_int(char *p[MAX_PARM]);
53
void p_rational(char *p[MAX_PARM]);
54
void p_real(char *p[MAX_PARM]);
55
void p_complex(char *p[MAX_PARM]);
56
void p_func(char *p[MAX_PARM]);
57
void p_text(char *p[MAX_PARM]);
58
void p_matrix(char *p[MAX_PARM]);
59
void p_parm(char *p[MAX_PARM]);
60
void p_if(char *p[MAX_PARM]);
61
 
62
void p_else(char *p[MAX_PARM]);
63
void p_endif(char *p[MAX_PARM]);
64
void p_endwhile(char *p[MAX_PARM]);
65
void p_while(char *p[MAX_PARM]);
66
void p_for(char *p[MAX_PARM]);
67
void p_condition(char *p[MAX_PARM]);
68
void p_conditions(char *p[MAX_PARM]);
69
void p_credits(char *p[MAX_PARM]);
70
void p_help(char *p[MAX_PARM]);
71
void p_feedback(char *p[MAX_PARM]);
72
void p_hint(char *p[MAX_PARM]);
73
void p_mdef(char *p[MAX_PARM]);
74
void p_next(char *p[MAX_PARM]);
75
void p_nextstep(char *p[MAX_PARM]);
76
void p_latex(char *p[MAX_PARM]);
77
void p_solution(char *p[MAX_PARM]);
78
void p_steps(char *p[MAX_PARM]);
79
void p_plot(char *p[MAX_PARM]);
80
void p_title_ca(char *p[MAX_PARM]);
81
void p_title_cn(char *p[MAX_PARM]);
82
void p_title_en(char *p[MAX_PARM]);
83
void p_title_es(char *p[MAX_PARM]);
84
void p_title_fr(char *p[MAX_PARM]);
85
void p_title_it(char *p[MAX_PARM]);
86
void p_title_nl(char *p[MAX_PARM]);
87
void p_title_si(char *p[MAX_PARM]);
88
void p_wims(char *p[MAX_PARM]);
89
void empty(char *p[MAX_PARM]);
90
 
91
extern char vbuf_statement[MAX_LINELEN+1];
92
extern char vbuf_hint[MAX_LINELEN+1];
93
extern char vbuf_help[MAX_LINELEN+1];
94
extern char vbuf_solution[MAX_LINELEN+1];
95
 
96
/* from sp.c */
97
 
98
#include "sp.h"