Hi Bill,
You are right, I need to rewrite this part of the code.
Now, more or less, the code looks like:
if(IndexFile)
{
my_file_struct=allocate_file_struct(filename);
}
else if (Metanames)
{
if(my_file_struct)
{
parse_metanames_into_file_struct(my_file_struct);
} else {
print "Need a previous IndexFile",
}
}
So, I need to ensure that a struct index file is present before parsing
the Metanames to avoid a GPF.
The code should be changed to:
my_file_struct=allocate_file_struct(defaultfilename);
if(IndexFile)
{
change_name_of_indexfile(filename):
}
If (Metanames)
{
..
}
...
I will fix it
cu
Jose
On 27 Nov 2000, at 11:19, Bill Moseley wrote:
> Swish 2.1.8
>
> I'm confused about this error message:
>
> swish: MetaNames requires a previous IndexFile directive
>
> Why does MetaNames care about the IndexFile directive? index.swish-e
> is the default if no IndexFile is used.
>
>
>
>
> Bill Moseley
> mailto:moseley@hank.org
>
Received on Tue Nov 28 08:52:53 2000