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

97 lines
2.4 KiB
C
Raw Normal View History

1987-11-20 10:41:03 +00:00
#include <system.h>
#include <em.h>
#include <out.h>
#include "header.h"
#include "data.h"
1987-11-20 10:41:03 +00:00
#include "mach.h"
1987-11-25 13:54:01 +00:00
/* The extnd_*()s make a name unique. The resulting string is directly stored
* in the symbol_table (by mysprint()). Later additional fields in the
* symbol_table are filled. For these actions the values of the index in
* the symbol_table and the length of the string are stored.
1987-11-20 10:41:03 +00:00
*/
extern int string_lengte, index_symbol_table;
int procno = 0, holno = 0;
char *extnd_pro( procno)
int procno;
{
1988-10-20 13:06:10 +00:00
string_lengte = mysprint( "%cprc%d", GENLAB, procno);
1987-11-20 10:41:03 +00:00
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_start( procno)
int procno;
{
1988-10-20 13:06:10 +00:00
string_lengte = mysprint( "%cstrt%d", GENLAB, procno);
1987-11-20 10:41:03 +00:00
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_name( s)
char *s;
{
string_lengte = mysprint( NAME_FMT, s);
index_symbol_table = find_sym( string, STORE_STRING);
return( string_area + symbol_table[ index_symbol_table].on_foff);
}
char *extnd_dnam( s)
char *s;
{
string_lengte = mysprint( DNAM_FMT, s);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_dlb( g)
arith g;
{
string_lengte = mysprint( DLB_FMT, (arith)g);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_ilb( l)
arith l;
{
string_lengte = mysprint( ILB_FMT, procno, (arith) l);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_hol( hol)
int hol;
{
string_lengte = mysprint( HOL_FMT, hol);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_part( d)
int d;
{
1988-10-20 13:06:10 +00:00
string_lengte = mysprint( "%cprt%x", GENLAB, d);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}
char *extnd_cont( d)
int d;
{
1988-10-20 13:06:10 +00:00
string_lengte = mysprint( "%ccnt%x", GENLAB, d);
index_symbol_table = find_sym( string, STORE_STRING);
return( symbol_table[ index_symbol_table].on_foff + string_area);
}