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

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

Go to the source code of this file.

Defines

#define init_delv()

Functions

 amatch (NODE *asig, NODE *psig)

Variables

FILE * unparse_file
unsigned stplinks []
unsigned * match_delv
int match_len
static int delv_len
NODEfailed_comp
NODEfailed_asig
NODEfailed_psig


Define Documentation

 
#define init_delv (  ) 

Value:

if (match_delv == NIL) { \
        delv_len = roundup(match_len, WORDLENGTH) >> 3; \
        /* allocate deletion vector */ \
            match_delv = (unsigned *)malloc(delv_len); \
            delv_len >>= LOGWL - 3; /* Convert to words */\
            for (s = match_delv; \
                s < match_delv + delv_len; s++) { \
                *s = 0; \
            } \
    }

Definition at line 52 of file match.c.

Referenced by amatch().


Function Documentation

amatch ( NODE asig,
NODE psig 
)

Definition at line 64 of file match.c.

References bitcnt(), cn_head, cn_tail, comp_st(), dbgmsg, ERR_SIG, failed_asig, failed_comp, failed_psig, FALSE, init_delv, lock, LOGWL, match_delv, match_len, mod, NIL, sig_structure(), TRUE, tsig_length(), unlock, unparse(), unparse_file, vfree, and WORDLENGTH.

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


Variable Documentation

int delv_len [static]

Definition at line 43 of file match.c.

Referenced by findmpsig().

NODE* failed_asig

Definition at line 46 of file match.c.

Referenced by amatch(), and findidsig().

NODE* failed_comp

Definition at line 45 of file match.c.

Referenced by amatch(), checksigs(), and findidsig().

NODE* failed_psig

Definition at line 47 of file match.c.

Referenced by amatch(), and findidsig().

unsigned* match_delv

Definition at line 41 of file match.c.

Referenced by amatch(), findapplsig(), and findsig().

int match_len

Definition at line 42 of file match.c.

Referenced by amatch(), findapplsig(), and findsig().

unsigned stplinks[]

FILE* unparse_file

Definition at line 6 of file unparse.c.


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