~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to graph/triefa.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This software may only be used by you under license from AT&T Corp.
 
3
    ("AT&T").  A copy of AT&T's Source Code Agreement is available at
 
4
    AT&T's Internet website having the URL:
 
5
    <http://www.research.att.com/sw/tools/graphviz/license/source.html>
 
6
    If you received this software without first entering into a license
 
7
    with AT&T, you have an infringing copy of this software and cannot use
 
8
    it without violating AT&T's intellectual property rights.
 
9
*/
 
10
 
 
11
/* File - TrieFA.h
 
12
 *
 
13
 *    The data types for the generated trie-based finite automata.
 
14
 */
 
15
 
 
16
struct TrieState {                              /* An entry in the FA state table                       */
 
17
        short                   def;            /*      If this state is an accepting state then*/
 
18
                                                                /*      this is the definition, otherwise -1.   */
 
19
        short                   trans_base;     /* The base index into the transition table.*/
 
20
        long                    mask;           /* The transition mask.                                         */
 
21
};
 
22
 
 
23
struct TrieTrans {                              /* An entry in the FA transition table.         */
 
24
        short                   c;                              /* The transition character (lowercase).*/
 
25
        short                   next_state;             /* The next state.                                              */
 
26
};
 
27
 
 
28
typedef struct TrieState TrieState;
 
29
typedef struct TrieTrans TrieTrans;
 
30
 
 
31
extern TrieState        TrieStateTbl[];
 
32
extern TrieTrans        TrieTransTbl[];