-
Notifications
You must be signed in to change notification settings - Fork 5
/
context.c
39 lines (30 loc) · 875 Bytes
/
context.c
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
/* Global Variable Context - for reentrancy */
#define __CONTEXT_C__
#include <stdio.h>
#include <stdlib.h>
#include <cmssys.h>
#include "context.h"
void InitContext() {
/* printf("InitContext()\n"); */
Context *context = (Context *) CMSPGAll(sizeof(Context));
/* bmem.c */
context->bmem_mem_head = NULL;
context->bmem_total_mem = 0L;
/* lstring.h */
context->lstring_lLastScannedNumber = 0.0;
#ifdef __CMS__
context->lstring_lNumericDigits = 9;
#else
context->lstring_lNumericDigits = LMAXNUMERICDIGITS;
#endif
/* ltime.c */
context->ltime_elapsed = 0.0;
/* rexxfunc.c */
context->rexxfunc_ExtraFuncs = NULL;
/* interpre.c */
context->interpre_no_user_fp = 0;
context->interpre_no_loc_fp = 0;
context->interpre_no_sys_fp = 0;
context->rawstdin = fopen("CONSOLE", "rb");
}
#undef __CONTEXT_C__