#include #include #include #include "header.h" #include "mach.h" /* The extnd_*() 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. */ extern int string_lengte, index_symbol_table; int procno = 0, holno = 0; char *extnd_pro( procno) int procno; { string_lengte = mysprint( "pro%d", procno); index_symbol_table = find_sym( string, STORE_STRING); return( symbol_table[ index_symbol_table].on_foff + string_area); } char *extnd_start( procno) int procno; { string_lengte = mysprint( "start%d", procno); 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); }