Page:4SIGHT manual- a computer program for modelling degradation of underground low level waste concrete vaults (IA 4sightmanualcomp5612snyd).pdf/93

This page needs to be proofread.
2. MAIN
B.6

10. Assess Termination.

Assess termination 10 
 ⟨Assess chloride penetration 64⟩;
 ⟨Assess simulation termination 72⟩;
 ⟨Check time dependencies 71⟩;

This code is used in section 2.


11. The following are useful macro definitions which save a lot of typing.

⟨Preprocessor definitions 11⟩
#define SQR(a) ((a) * (a))
#define CUB(a) ((a) * (a) * (a))
#define MAX(a,b) ((a > b) ? a : b)
#define MIN(a,b) ((a < b) ? a : b)

See also section 46.

This code is used in section 2.

12. Declare yyparse which is written in YACC and LEX. The function yyparse takes no arguments and simply parses the input, assigning values to global variables. The routine does not “return” until the entire input stream has been parsed.

⟨Global variables 4⟩ 
 int input.filename = 1;     /* line number of input file (lex/yacc) */

13.

⟨Input parsing routine 13⟩ 
 int yyparse(void);
#include "yyparse. c"  

This code is used in section 2.