From: don (Don Hopkins) To: weiland@bensun Cc: don Subject: index manager --text follows this line-- Would it be much trouble to make .h files for the index manager so that I can include them in fmt.c? I'm not sure how to deal with including the .c files. Thanks. I am restructuring all the image and target bodies into separate files in separate directories, whose names are their image or target names plus the extension .pid or .tid. Each wile have an entry in the master index, and their offset will be 0, and length -1, meaning the whole file. This is the "broken apart" form for authoring time. They can be smushed together into one big file for browsing time. There is a filter (cps) that will tokenize all the PostScript text so it will be smaller and load faster, which we can use to build the smushed file. I now think that it should be the responsibility of the object that wants to use the body to skip over those two lines containing the object class and name. That way, the offset stored in the master index is to the class, instead of to the body, so adding an entry to the master index with offset 0 length -1 can be an easy way to incorporate new files that contain a class, name, and body, without having to worry about what size anything is. What do you think, does that sound reasonable? I don't think the class should be listed in the master index, so it's possible to change something's class by just modifying its .tid or .pid file. One question though is how do you determine the class of a storyboard? How about from the extension? (since storyboards will never be squished together.) Just fill in the class field of a storyboard with the extension of its file. (So the storyboard extension can tell ties if it has a .definition or a .contents.) To determine the class of an image or a target, you'd have to open and seek into its .tid or .pid file, and read a line. Presumably with squished image and target files, they would be in the file in the same order they were in the master index, so it would be more efficient -- one sequential pass through the file. -Don