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

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

Go to the source code of this file.

Defines

#define DEBUG
#define IFDEBUG(x)   x
#define TRACE

Functions

NODE * finddecl1 ()
NODE * prev_def ()
boolean def_match ()
NODE * unshare ()
NODE * subst ()
NODE * finddecl (NODE *id)
NODE * finddecl1 (NODE *id, NODE *appl, boolean exact)
NODE * findstdecl (NODE *string)
NODE * prev_def (NODE *def)
NODE * sig_structure (NODE *sig)
boolean def_match (NODE *sig, NODE *sig2, NODE *appl, NODE *op, boolean exact)

Variables

int comp_index
NODE * declerr
boolean may_fail
FILE * unparse_file


Define Documentation

#define DEBUG

Definition at line 1 of file finddecl.c.

#define IFDEBUG ( x   )     x

Definition at line 4 of file finddecl.c.

#define TRACE

Definition at line 8 of file finddecl.c.


Function Documentation

boolean def_match ( NODE *  sig,
NODE *  sig2,
NODE *  appl,
NODE *  op,
boolean  exact 
)

Definition at line 402 of file finddecl.c.

References amatch(), comp_st(), dbgmsg, diff_p, diff_q, ERR_SIG, FALSE, IFDEBUG, infer_args(), is_empty, length(), lock, NIL, prtree(), sig_structure(), subst(), TRUE, unlock, unparse(), unparse_file, and vfree.

boolean def_match (  ) 

Referenced by finddecl1(), findidsig(), and getcomp().

NODE* finddecl ( NODE *  id  ) 

Definition at line 58 of file finddecl.c.

References FALSE, finddecl1(), NIL, SUCCESS, and TRUE.

Referenced by findidsig().

NODE* finddecl1 ( NODE *  id,
NODE *  appl,
boolean  exact 
)

Definition at line 84 of file finddecl.c.

References comp_index, comp_st(), dbgmsg, declerr, declsig(), def_match(), ERR_SIG, errmsg1, FALSE, findsig(), getcomp(), getname(), IFDEBUG, initsig, length(), may_fail, NIL, prev_def(), prtree(), SUCCESS, TRUE, unparse(), unparse_file, unshare(), and yynerrs.

NODE* finddecl1 (  ) 

Referenced by finddecl().

NODE* findstdecl ( NODE *  string  ) 

Definition at line 277 of file finddecl.c.

References dbgmsg, ERR_SIG, FALSE, findsig(), hasstring(), IFDEBUG, NIL, SUCCESS, TRUE, and unshare().

Referenced by findsig().

NODE* prev_def ( NODE *  def  ) 

Definition at line 336 of file finddecl.c.

References dbgmsg.

NODE* prev_def (  ) 

Referenced by finddecl1().

NODE* sig_structure ( NODE *  sig  ) 

Definition at line 376 of file finddecl.c.

Referenced by accessible(), amatch(), checksigs(), compile_stubs(), def_match(), equiv_expr(), findapplsig(), findidsig(), findsig(), fix_array_sig(), and GgenerateXcode().

NODE* subst (  ) 

Referenced by checksigs(), def_match(), findapplsig(), findsig(), and infer_args().

NODE* unshare (  ) 

Referenced by finddecl1(), findstdecl(), and infer_args().


Variable Documentation

int comp_index

Definition at line 33 of file getcomp.c.

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

NODE* declerr

Definition at line 48 of file findapplsig.c.

Referenced by declsig(), eval_decl(), finddecl1(), findidsig(), and findmpsig().

boolean may_fail

Definition at line 78 of file findapplsig.c.

Referenced by declsig(), finddecl1(), findidsig(), and findsig().

FILE* unparse_file

Definition at line 6 of file unparse.c.


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