home *** CD-ROM | disk | FTP | other *** search
-
- /* i4filter.c (c)Copyright Sequiter Software Inc., 1987-1990. All rights reserved. */
-
- #include "d4all.h"
-
- extern INDEX *v4index ;
-
- void i4filter( I4FILTER *filter_routine )
- {
- int index_ref ;
-
- index_ref = i4seek_ref() ;
- if ( index_ref < 0 ) return ;
-
- v4index[index_ref].filter = filter_routine ;
-
- return ;
- }
-
- int i4filter_check( int index_ref )
- {
- if ( v4index[index_ref].filter == (I4FILTER *) 0 )
- return 0 ;
- else
- {
- #ifdef KR
- I4FILTER *ptr ;
- ptr = v4index[index_ref].filter ;
- return( (*ptr)() ) ;
- #else
- return( v4index[index_ref].filter() ) ;
- #endif
- }
- }
-