Switch to unified view

a/src/internfile/internfile.cpp b/src/internfile/internfile.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.5 2005-04-05 09:35:35 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.6 2005-11-08 21:02:55 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
#include <unistd.h>
4
#include <unistd.h>
5
#include <sys/types.h>
5
#include <sys/types.h>
6
#include <sys/stat.h>
6
#include <sys/stat.h>
7
#include <errno.h>
7
#include <errno.h>
...
...
128
    if (!handler)
128
    if (!handler)
129
    return FIError;
129
    return FIError;
130
130
131
    // Turn file into a document. The document has fields for title, body 
131
    // Turn file into a document. The document has fields for title, body 
132
    // etc.,  all text converted to utf8
132
    // etc.,  all text converted to utf8
133
    MimeHandler::Status mhs = handler->worker(config, fn,  mime, doc, ipath);
133
    MimeHandler::Status mhs = handler->mkDoc(config, fn,  mime, doc, ipath);
134
    FileInterner::Status ret = FIError;
134
    FileInterner::Status ret = FIError;
135
    switch (mhs) {
135
    switch (mhs) {
136
    case MimeHandler::MHError: break;
136
    case MimeHandler::MHError: break;
137
    case MimeHandler::MHDone: ret = FIDone;break;
137
    case MimeHandler::MHDone: ret = FIDone;break;
138
    case MimeHandler::MHAgain: ret = FIAgain;break;
138
    case MimeHandler::MHAgain: ret = FIAgain;break;