/[public]/psiconv/trunk/program/psiconv/psiconv.c
ViewVC logotype

Diff of /psiconv/trunk/program/psiconv/psiconv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 66 Revision 109
114 114
115 fileformat_list = psiconv_list_new(sizeof(struct psiconv_fileformat_s)); 115 fileformat_list = psiconv_list_new(sizeof(struct psiconv_fileformat_s));
116 init_txt(); 116 init_txt();
117 init_html(); 117 init_html();
118 init_html4(); 118 init_html4();
119 init_latex();
119 init_rtf(); 120 init_rtf();
120 init_image(); 121 init_image();
121 122
122 while(1) { 123 while(1) {
123 c = getopt_long(argc,argv,short_options, long_options, &option_index); 124 c = getopt_long(argc,argv,short_options, long_options, &option_index);
161 exit(1); 162 exit(1);
162 } 163 }
163 } else 164 } else
164 f = stdin; 165 f = stdin;
165 166
166 buf = psiconv_list_new(sizeof(psiconv_u8)); 167 buf = psiconv_buffer_new();
167 while (! feof(f)) 168 psiconv_buffer_fread_all(buf,f);
168 psiconv_list_fread(buf,1024,f);
169 169
170 if (strlen(inputfilename) != 0) 170 if (strlen(inputfilename) != 0)
171 if (fclose(f)) { 171 if (fclose(f)) {
172 perror(inputfilename); 172 perror(inputfilename);
173 exit(1); 173 exit(1);

Legend:
Removed from v.66  
changed lines
  Added in v.109

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26