1987-11-20 10:41:03 +00:00
|
|
|
#include <out.h>
|
|
|
|
#include "back.h"
|
|
|
|
#include "hash.h"
|
1988-10-20 13:06:10 +00:00
|
|
|
#include <alloc.h>
|
1987-11-20 10:41:03 +00:00
|
|
|
|
|
|
|
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
|
|
|
{
|
1988-10-20 13:06:10 +00:00
|
|
|
text_area = Malloc( MAXTEXT);
|
|
|
|
data_area = Malloc( MAXDATA);
|
|
|
|
reloc_info = (struct outrelo *)Malloc( MAXRELO* sizeof(struct outrelo));
|
|
|
|
symbol_table = (struct outname *)Malloc( MAXNAME* sizeof(struct outname));
|
|
|
|
Hashitems = (struct Hashitem *)Malloc( (MAXNAME + 1)*
|
1987-11-20 10:41:03 +00:00
|
|
|
sizeof( struct Hashitem));
|
1988-10-20 13:06:10 +00:00
|
|
|
string_area = Malloc( MAXSTRING);
|
1987-11-20 10:41:03 +00:00
|
|
|
|
|
|
|
text = text_area;
|
|
|
|
data = data_area;
|
|
|
|
string = string_area;
|
|
|
|
relo = reloc_info;
|
|
|
|
|
|
|
|
size_text = MAXTEXT;
|
1988-10-20 13:06:10 +00:00
|
|
|
_text_cnt = MAXTEXT;
|
1987-11-20 10:41:03 +00:00
|
|
|
size_data = MAXDATA;
|
1988-10-20 13:06:10 +00:00
|
|
|
_data_cnt = MAXDATA;
|
1987-11-20 10:41:03 +00:00
|
|
|
size_reloc = MAXRELO;
|
|
|
|
size_symbol = MAXNAME;
|
|
|
|
size_string = MAXSTRING;
|
|
|
|
}
|