C:/Users/Dennis/src/lang/russell.orig/src/pass1/stt/stt.c File Reference

#include "parm.h"
#include "sttdefs.h"
#include "arith.h"
#include <stdio.h>
#include "stree/ststructs.mh"
#include "pass2/Idtable.h"

Go to the source code of this file.

Defines

#define STTHDRSZ   128

Functions

Sttentrystt_abs (sttrelptr rpt)
char * getname (sttrelptr rpt)
 stt_balloc (unsigned blkno)
sttrelptr stt_alloc (unsigned nbytes)
sttrelptr stt_enter (char *str, int lgth)
 build_Idtable ()
 Idcompare (Identry *e1, Identry *e2)

Variables

sttblocksttindx [STTNBLKS]
sttrelptr sttfirstfree
sttrelptr stthdr [STTHDRSZ]


Define Documentation

#define STTHDRSZ   128

Definition at line 21 of file stt.c.

Referenced by build_Idtable(), and stt_enter().


Function Documentation

build_Idtable (  ) 

Definition at line 163 of file stt.c.

References alloc, dbgmsg, Identry::i_sttindx, Identry::i_value, Idcompare(), Idtable, NIL, stt_abs(), STT_NO_NEXT_ENTRY, Sttentry::stte_next, stthdr, STTHDRSZ, and sttnstrings.

Referenced by main().

char* getname ( sttrelptr  rpt  ) 

Definition at line 45 of file stt.c.

References stt_abs().

Referenced by add_id_fv(), bld_analyze(), check_sig(), comp_tsc(), comp_wlc(), compile_decl(), compile_stubs(), Fexpression(), finddecl1(), findidsig(), findmpsig(), findsig(), get_complexity(), getcomp(), Gexpression(), Gident(), hascomp(), import(), inscomp(), is_unique(), main(), prefix(), prtr1(), put_name(), realloc_blocks(), sig_out1(), sigids(), subst1(), tl_findsig(), tsig_order(), tsubst1(), unparse(), Vallocwalk(), Vappl(), Vexpression(), yyperror(), and yywarn().

Idcompare ( Identry e1,
Identry e2 
)

Definition at line 200 of file stt.c.

Referenced by build_Idtable().

Sttentry* stt_abs ( sttrelptr  rpt  ) 

Definition at line 31 of file stt.c.

References STTBLKNO, sttindx, and STTOFFSET.

Referenced by build_Idtable(), getname(), and stt_enter().

sttrelptr stt_alloc ( unsigned  nbytes  ) 

Definition at line 77 of file stt.c.

References roundup, stt_balloc(), STTBLKNO, sttfirstfree, sttindx, and STTOFFSET.

Referenced by stt_enter().

stt_balloc ( unsigned  blkno  ) 

Definition at line 60 of file stt.c.

References gc_malloc_atomic, sttindx, STTNBLKS, and yyperror().

Referenced by stt_alloc(), and stt_enter().

sttrelptr stt_enter ( char *  str,
int  lgth 
)

Definition at line 114 of file stt.c.

References FALSE, stt_abs(), stt_alloc(), stt_balloc(), STT_NO_NEXT_ENTRY, Sttentry::stte_next, Sttentry::stte_str, STTENTRYSZ, sttfirstfree, stthdr, STTHDRSZ, sttnstrings, and TRUE.

Referenced by expand_str(), get_name(), initids(), main(), prefix(), rdposition(), reschk(), and yylex().


Variable Documentation

sttrelptr sttfirstfree

Definition at line 20 of file stt.c.

Referenced by stt_alloc(), and stt_enter().

sttrelptr stthdr[STTHDRSZ]

Definition at line 22 of file stt.c.

Referenced by build_Idtable(), and stt_enter().

sttblock* sttindx[STTNBLKS]

Definition at line 19 of file stt.c.

Referenced by stt_abs(), stt_alloc(), and stt_balloc().


Generated on Fri Jan 25 10:39:49 2008 for russell by  doxygen 1.5.4