home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / READER / READER.C < prev    next >
C/C++ Source or Header  |  1996-02-16  |  537b  |  38 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. #include "lib.h"
  5. #include "_reader.h"
  6. #include "word.h"
  7.  
  8. extern    int        (**SystemFunc)();
  9.  
  10. int        _MatrixInit( Library* );
  11.  
  12. int        __ReaderInit( func )
  13. void    *func ;
  14. {
  15. #ifdef DYNAMIC
  16.     int        id ;
  17.     if ( func != NULL )
  18.     {
  19.         SystemFunc = (int(**)())func ;
  20.         id = LibraryGet( "Matrix Library" );
  21.         if ( id > 0 )
  22.         {
  23.             return _MatrixInit( LibraryGetInfo( id ) );
  24.         }
  25.         else
  26.             return -1 ;
  27.     }
  28.     else
  29. #endif
  30.         return 0 ;
  31. }
  32.  
  33. void    ReaderSetInterrupt( entry )
  34. void    *entry ;
  35. {
  36.     interrupt = entry ;
  37. }
  38.