Revision 692 branches/merge-trunk-davef/src/df1b2-separable/tpl2rem.lex

tpl2rem.lex (revision 692)
1
%option noyywrap
2

  
3
%{
4
  #define   MAX_TMP_STRING 2000 
5
  #define   MAX_USER_CLASSES  450
6
  #define   MAX_USER_CLASSNAME_LENGTH  181
7
  #define   MAX_PRIOR_CHECK  1000
8
  #define   MAX_LIKE_CHECK  2000
9
  #include <stdlib.h>
10
  #include <string.h>
11
  #include <stdio.h>
12
  #if defined(_WIN32)
13
  #include <io.h>  /* fopen */
14
  #endif
15
  char tmp_string[MAX_TMP_STRING];
16
  char tmp_string1[MAX_TMP_STRING];
17
  char tmp_string2[MAX_TMP_STRING];
18
  char tmp_string3[MAX_TMP_STRING];
19
  char tmp_string4[MAX_TMP_STRING];
20
  char reference_statements[MAX_USER_CLASSES][MAX_USER_CLASSNAME_LENGTH];
21
  char class_instances[MAX_USER_CLASSES][MAX_USER_CLASSNAME_LENGTH];
22
  char outcommand[350];
23
  char outcommand2[250];
24
  char outcommand3[250];
25
  char outcommand3a[250];
26
  char outcommand3b[250];
27
  char outcommand4[250];
28
  char outcommand5[250];
29
  char outcommand6[250];
30
  char outcommand7[250];
31
  char outcommand8[250];
32
  char * dirpath;
33
  char infile_name[1000];
34
  char infile_root[1000];
35
  char name_string[150];
36
  char outfile_name[1000];
37
  char headerfile_name[125];
38
  char deffile_name[125];
39
  char headerfile_name2[125];
40
  int  verbosemode=0;
41
  int  num_spargs=0;
42
  int in_objective_function_value_flag=0;
43
  int  pvmslaves_defined=0;
44
  int  splus_debug_flag=0;
45
  int  spnumber_flag=0;
46
  int random_effects_flag=0;
47
  int data_defined=0;
48
  int in_define_data=0;
49
  int need_prior_globals=0;
50
  int debug_flag=0;
51
  int makedll=0;
52
  int makegaussdll=0;
53
  int no_userclass=0;
54
  int bound_flag=0;
55
  int in_normal_prior_flag=0;
56
  int num_user_classes=0;
57
  int have_separable_function=0;
58
  int final_defined=0;
59
  int top_of_main_defined=0;
60
  int globals_section_defined=0;
61
  int in_define_parameters=0;
62
  int talk_to_splus=0;
63
  int initialization_defined=0;
64
  int objective_function_defined=0;
65
  int report_defined=0;
66
  int preliminary_calcs_defined=0;
67
  int between_phases_defined=0;
68
  int needs_initialization=0;
69
  int quadratic_prior_flag=0;
70
  int quadratic_classprint_flag=0;
71
  int errcopy=0;
72
  int params_defined=0;
73
  int runtime_defined=0;
74
  int procedure_defined=0;
75
  int in_procedure_def=0;
76
  int class_append_flag=0;
77
  int in_aux_proc=0;
78
  int in_funnel_proc=0;
79
  int nline=1;
80
  int have_likeprof=0;
81
  int num_paren=0;
82
  int nchar=0;
83
  int warn_unallocated=1;
84
  int have_classcode_tmp=0;
85
  
86
  int priors_defined=0;
87
  int prior_done_once=0;
88
  int likelihood_defined=0;
89
  int likelihood_done_once=0;
90
  int procedure_done=0;
91
  int likelihood_done=0;
92
  int priors_done=0;
93
  int prior_function_toggle=0;
94
  char objective_function_name_string[MAX_TMP_STRING];
95
  char prior_checker[MAX_PRIOR_CHECK][100];//container hold all parameters which being used for check the prior
96
  int prior_counter=0; //index for prior_checker
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff