home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnurx.zip / rx / rxunfa.h < prev    next >
C/C++ Source or Header  |  1995-12-31  |  2KB  |  85 lines

  1. #ifndef RXUNFAH
  2. #define RXUNFAH
  3.  
  4. /***********************************************************
  5.  
  6. Copyright 1995 by Tom Lord
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the name of the copyright holder not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  19. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  20. EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  24. PERFORMANCE OF THIS SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28.  
  29.  
  30. #include "_rx.h"
  31.  
  32.  
  33. struct rx_unfaniverse 
  34. {
  35.   int delay;
  36.   int delayed;
  37.   struct rx_hash table;
  38.   struct rx_cached_rexp * free_queue;
  39. };
  40.  
  41.  
  42. struct rx_unfa
  43. {
  44.   int refs;
  45.   struct rexp_node * exp;
  46.   struct rx * nfa;
  47.   int cset_size;
  48.   struct rx_unfaniverse * verse;
  49. };
  50.  
  51. struct rx_cached_rexp
  52. {
  53.   struct rx_unfa unfa;
  54.   struct rx_cached_rexp * next;
  55.   struct rx_cached_rexp * prev;
  56.   struct rx_hash_item * hash_item;
  57. };
  58.  
  59.  
  60.  
  61. #ifdef __STDC__
  62. extern struct rx * rx_unfa_rx (struct rx_cached_rexp * cr, struct rexp_node * exp, int cset_size);
  63. extern struct rx_unfaniverse * rx_make_unfaniverse (int delay);
  64. extern void rx_free_unfaniverse (struct rx_unfaniverse * it);
  65. extern struct rx_unfa * rx_unfa (struct rx_unfaniverse * unfaniverse, struct rexp_node * exp, int cset_size);
  66. extern void rx_free_unfa (struct rx_unfa * unfa);
  67.  
  68. #else /* STDC */
  69. extern struct rx * rx_unfa_rx ();
  70. extern struct rx_unfaniverse * rx_make_unfaniverse ();
  71. extern void rx_free_unfaniverse ();
  72. extern struct rx_unfa * rx_unfa ();
  73. extern void rx_free_unfa ();
  74.  
  75. #endif /* STDC */
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. #endif  /* RXUNFAH */
  85.