home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 278.lha / RegexLibrary_v1.0 / library.h < prev    next >
C/C++ Source or Header  |  1989-08-06  |  1KB  |  44 lines

  1. /*
  2.  *  Header for the Amiga Shared library code for the GNU regular
  3.  *  expression package. Edwin Hoogerbeets 18/07/89
  4.  *
  5.  *  This file may be copied and distributed under the GNU Public
  6.  *  Licence. See the comment at the top of regex.c for details.
  7.  *
  8.  *  Adapted from Elib by Jim Mackraz, mklib by Edwin Hoogerbeets, and the
  9.  *  GNU regular expression package by the Free Software Foundation.
  10.  */
  11.  
  12. #include <exec/types.h>
  13. #include <exec/nodes.h>
  14. #include <exec/resident.h>
  15. #include <exec/libraries.h>
  16.  
  17. #include <functions.h>
  18.  
  19. typedef LONG (*PFL)();      /* pointer to function returning 32-bit int */
  20.  
  21. /* library initialization table, used for AUTOINIT libraries                    */
  22. struct InitTable {
  23.     ULONG   it_DataSize;    /* library data space size          */
  24.     PFL     *it_FuncTable;  /* table of entry points            */
  25.     APTR    it_DataInit;    /* table of data initializers       */
  26.     PFL     it_InitFunc;    /* initialization function to run   */
  27. };
  28.  
  29. #ifndef ALIGN_SIZE
  30. #define ALIGN_SIZE      sizeof(double)
  31. #endif
  32.  
  33. struct RegexBase {
  34.     struct  Library rb_Lib;
  35.     ULONG   rb_Cookie;      /* looks good                       */
  36.     ULONG   rb_SegList;
  37.     ULONG   rb_Flags;
  38.     APTR    rb_ExecBase;    /* pointer to exec base             */
  39.     APTR    rb_A4;          /* proper value of A4 for aztec small model */
  40. };
  41.  
  42.  
  43.  
  44.