C:/Users/Dennis/src/lang/russell.orig/src/pass4/getcomp.c File Reference

#include <stdio.h>
#include "parm.h"
#include "stree/ststructs.mh"
#include "pass3/decl_pairs.h"
#include "pass3/is_local.h"
#include "sigs.h"

Go to the source code of this file.

Defines

#define DEBUG
#define IFDEBUG(x)   x
#define INCPOS   if (++delbit >= WORDLENGTH) { delword++; delbit = 0; }
#define BITSET   ((delv[delword] << delbit) < 0)

Functions

char * getname ()
NODEtsubst ()
NODEgetcomp (NODE *sig, NODE *id, NODE *exp, NODE *csig, ctype, NODE *appl, boolean exact)
int tsig_length (NODE *tsig)
NODEtsubst1 ()
NODEtsubst (NODE *p, NODE *tsig, NODE *expr, boolean substm1)
NODEtsubst1 (NODE *p, NODE *tsig, NODE *expr, boolean substm1)
void inscomp (NODE *sig, NODE *id, NODE *csig, ctype)
NODEdelcomp (NODE *sig, int *delv)
boolean is_unique (NODE *sig, int ind)

Variables

char *(* inline_cnvt )()
unsigned indx_subscr
int stplinks []
int stsize []
int stsigs []
int yynerrs
int comp_index
FILE * unparse_file
NODEsig_const
NODEsubsterr
struct cndontsubst
int tsubst_count
boolean changed_strings


Define Documentation

#define BITSET   ((delv[delword] << delbit) < 0)

Referenced by delcomp().

#define DEBUG

Definition at line 1 of file getcomp.c.

#define IFDEBUG (  )     x

Definition at line 4 of file getcomp.c.

#define INCPOS   if (++delbit >= WORDLENGTH) { delword++; delbit = 0; }

Referenced by delcomp().


Function Documentation

NODE* delcomp ( NODE sig,
int *  delv 
)

Definition at line 967 of file getcomp.c.

References addright(), BITSET, copynode(), dbgmsg, ERR_SIG, FALSE, IFDEBUG, INCPOS, indx_pconc, indx_sconc, NIL, TRUE, and WORDLENGTH.

Referenced by checksigs(), findapplsig(), and findmpsig().

NODE* getcomp ( NODE sig,
NODE id,
NODE exp,
NODE csig,
ctype  ,
NODE appl,
boolean  exact 
)

Definition at line 59 of file getcomp.c.

References bitcnt(), comp_index, comp_st(), copynode(), dbgmsg, def_match(), ERR_SIG, FALSE, getname(), malloc, NIL, NINCR, sig_const, TRUE, tsubst(), unparse(), unparse_file, vfree, and WORDLENGTH.

Referenced by equiv_expr(), finddecl1(), findidsig(), findmpsig(), findsig(), fix_array_sig(), Gident(), Gpush_size(), is_const_init(), mk_put_selection(), and Vappl().

char* getname (  ) 

Definition at line 27 of file testvertex.c.

void inscomp ( NODE sig,
NODE id,
NODE csig,
ctype   
)

Definition at line 827 of file getcomp.c.

References add_dcse(), bitcnt(), comp_index, comp_st(), copylist(), dbgmsg, ERR_SIG, getname(), IFDEBUG, is_const(), mknode(), NIL, TRUE, tsubst(), and WORDLENGTH.

Referenced by findmpsig(), and findsig().

boolean is_unique ( NODE sig,
int  ind 
)

Definition at line 1069 of file getcomp.c.

References dbgmsg, ERR_SIG, getname(), IFDEBUG, TRUE, and WORDLENGTH.

Referenced by checksigs(), equiv_expr(), findidsig(), and findmpsig().

int tsig_length ( NODE tsig  ) 

Definition at line 281 of file getcomp.c.

References bitcnt(), dbgmsg, and length().

Referenced by amatch(), findmpsig(), type_constr(), and vacuous_arg().

NODE* tsubst ( NODE p,
NODE tsig,
NODE expr,
boolean  substm1 
)

Definition at line 333 of file getcomp.c.

References clr_dlist, tsubst1(), tsubst_count, unparse(), and unparse_file.

NODE* tsubst (  ) 

Referenced by findidsig(), findmpsig(), findsig(), getcomp(), and inscomp().

NODE* tsubst1 ( NODE p,
NODE tsig,
NODE expr,
boolean  substm1 
)

Definition at line 362 of file getcomp.c.

References add_dlist, addright(), cn_head, cn_tail, copynode(), dbgmsg, dl_new_decl(), ERR_SIG, FALSE, free, getname(), is_descendant, length(), malloc, NIL, stplinks, stsigs, stsize, substerr, tmp(), TRUE, tsubst1(), tsubst_count, v, and yynerrs.

NODE* tsubst1 (  ) 

Referenced by tsubst(), and tsubst1().


Variable Documentation

boolean changed_strings

Definition at line 964 of file getcomp.c.

Referenced by findmpsig().

int comp_index

Definition at line 33 of file getcomp.c.

Referenced by finddecl1(), findidsig(), findmpsig(), findsig(), getcomp(), inscomp(), and mk_put_selection().

struct cn* dontsubst

Definition at line 55 of file findmpsig.c.

unsigned indx_subscr

Definition at line 14 of file initids.c.

char*(* inline_cnvt)()

NODE* sig_const

int stplinks[]

int stsigs[]

int stsize[]

Referenced by copynode(), mknode(), split(), subst1(), tsubst1(), and unshare1().

NODE* substerr

Definition at line 50 of file findapplsig.c.

int tsubst_count

Definition at line 329 of file getcomp.c.

Referenced by tsubst(), and tsubst1().

FILE* unparse_file

Definition at line 6 of file unparse.c.

int yynerrs

Definition at line 31 of file testvertex.c.


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