KWIC Index Project



Software Structure

The program consists of a main function plus these modules:



Directory Organization of Code

kwic_ex1 (The project directory):

File "main.c"

Directory Input

Directory Output

Directory LineStorage

Directory ShiftSort

Directory WordTable

Directory include

the '.h' files for all modules

Directory sysDoc

text documents describing coding standards for the project, program organization, list of all files ...



Testing Setup

Example:

Suppose that we have just changed file LineStorage.c ...

In directory LineStorage, type the command:

		make runtest
The make command causes the two files LineTest.c and driver.c to be compiled, linked to create an executable file named driver, and then driver is executed.

If the output from driver contains error reports, you have done something wrong!



Simplified Software Structure