--- psiconv/trunk/program/psiconv/gen_txt.c 1999/11/30 00:26:55 33 +++ psiconv/trunk/program/psiconv/gen_txt.c 1999/12/02 17:18:55 34 @@ -24,6 +24,7 @@ #include "data.h" #include "list.h" #include "gen.h" +#include "psiconv.h" /* @@ -144,13 +145,28 @@ } } -void psiconv_gen_txt(FILE * of, psiconv_file file) +static int psiconv_gen_txt(FILE * of, const psiconv_file file, + const char *dest) { - if (file->type == psiconv_word_file) + if (file->type == psiconv_word_file) { psiconv_gen_txt_word(of,(psiconv_word_f) file->file); - else if (file->type == psiconv_texted_file) + return 0; + } else if (file->type == psiconv_texted_file) { psiconv_gen_txt_texted(of,(psiconv_texted_f) file->file); - else - return; + return 0; + } else + return 1; +} + +static struct psiconv_fileformat ff = + { + "ASCII", + "Plain text without much layout", + psiconv_gen_txt + }; + +void init_txt(void) +{ + psiconv_list_add(fileformat_list,&ff); }