40 lines · 459 B · C
RawDownload
#include "java.h" /* * 'entry' assembly directive. */ static int pc = -1;static int tid = -1; /* * Set the entry point; entry is the beginning of "main". */ voidsetentry(int l, int i){	if(pc != -1)		verifyerrormess("main overloaded");	pc = l;	tid = i;} /* * Emit 'entry' assembly directive. */ voidasmentry(void){	if(pc == -1)		return;	Bprint(bout, "\tentry\t%d, %d\n", pc, tid);} voiddisentry(void){	discon(pc);	discon(tid);}