Initial revision

This commit is contained in:
kaashoek
1987-11-20 10:41:03 +00:00
parent bffdad9cdc
commit 9947059dcc
123 changed files with 3451 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include <out.h>
#include "back.h"
#include "hash.h"
char *calloc();
init_back()
{
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;
}