/* * 27-Mar-96: Jan-Piet Mens * added 'match' option (-m) to specify regular expressions NOT to be included * in the CD image. */ static char rcsid[] ="$Id: match.c,v 1.3 1999/03/02 03:41:25 eric Exp $"; #include "config.h" #include #include #ifndef VMS #ifdef HAVE_MALLOC_H #include #else #include #endif #endif #include #include "match.h" #define MAXMATCH 1000 static char *mat[MAXMATCH]; void add_match(fn) char * fn; { register int i; for (i=0; mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } /* ISO9660/RR hide */ static char *i_mat[MAXMATCH]; void i_add_match(fn) char * fn; { register int i; for (i=0; i_mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } int i_ishidden() { return (i_mat[0] != NULL); } /* Joliet hide */ static char *j_mat[MAXMATCH]; void j_add_match(fn) char * fn; { register int i; for (i=0; j_mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } int j_ishidden() { return (j_mat[0] != NULL); }