
/* match.x */
/* Andrew Davison (ad@ratree.psu.ac.th) */
/* February 11th, 1997 */


const MAXLEN = 130;
const MAXMATCH = 10;

/* search-db()'s input parameters */
struct search_info {
  string match_str<MAXLEN>;
  string fnm<MAXLEN>;
};

typedef string line<MAXLEN>;     /* a matching line */

/* search-db()'s output parameters */
struct search_matches {
  int count;
  line lines<MAXMATCH>;
};


program SEARCHPROG {
  version SEARCHVERS {
    search_matches SEARCH_DB(search_info) = 1;
  } = 1;   /* version number */
} = 0x2000009a;   /* program number */

