add_run.h 735 B

12345678910111213141516171819
  1. /* This file is part of the software similarity tester SIM.
  2. Written by Dick Grune, Vrije Universiteit, Amsterdam.
  3. $Id: add_run.h,v 1.1 2001/09/28 09:03:39 dick Exp $
  4. */
  5. /* Interface between front-end and back-end: all information about
  6. runs passes through add_run(). Its parameters are the two chunks,
  7. each identified by their struct text and the position of the common
  8. segment in TokenArray[], and the number of tokens in the common
  9. segment.
  10. */
  11. void add_run(
  12. struct text *txt0, /* text of first chunk */
  13. unsigned int i0, /* chunk position in TokenArray[] */
  14. struct text *txt1, /* text of second chunk */
  15. unsigned int i1, /* chunk position in TokenArray[] */
  16. unsigned int size /* number of tokens in the chunk */
  17. );