text.h 677 B

1234567891011121314151617181920
  1. /* This file is part of the software similarity tester SIM.
  2. Written by Dick Grune, Vrije Universiteit, Amsterdam.
  3. $Id: text.h,v 1.2 2001/09/28 09:03:56 dick Exp $
  4. */
  5. /* Implements the access to the lexical scanner.
  6. Additionally, the module tries to save newline information,
  7. anticipating a second scan which is interested in this
  8. information only.
  9. */
  10. extern void InitText(int nfiles);
  11. enum Pass {First, Second};
  12. extern int OpenText(enum Pass pass, struct text *txt);
  13. extern int NextTextTokenObtained(enum Pass pass);
  14. extern void CloseText(enum Pass pass, struct text *txt);
  15. #ifdef DB_NL_BUFF
  16. extern void db_print_nl_buff(unsigned int start, unsigned int limit);
  17. #endif