ack/util/ceg/ce_back/obj_back/init_back.c

31 lines
710 B
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include <out.h>
#include "back.h"
#include "hash.h"
char *calloc();
init_back()
1987-11-25 13:54:01 +00:00
/* Allocate space for the tables and set the default values.
*/
1987-11-20 10:41:03 +00:00
{
text_area = calloc( MAXTEXT, sizeof( char));
data_area = calloc( MAXDATA, sizeof( char));
reloc_info = (struct outrelo *)calloc( MAXRELO, SZ_RELO);
symbol_table = (struct outname *)calloc( MAXNAME, SZ_NAME);
Hashitems = (struct Hashitem *)calloc( MAXNAME + 1,
sizeof( struct Hashitem));
string_area = calloc( MAXSTRING, sizeof( char));
text = text_area;
data = data_area;
string = string_area;
relo = reloc_info;
size_text = MAXTEXT;
size_data = MAXDATA;
size_reloc = MAXRELO;
size_symbol = MAXNAME;
size_string = MAXSTRING;
}