--- psiconv/trunk/program/extra/rewrite.c 2000/12/25 00:26:53 76 +++ psiconv/trunk/program/extra/rewrite.c 2000/12/25 22:25:33 79 @@ -36,11 +36,11 @@ perror("Can't open file"); exit(1); } - if (!(buf=psiconv_new_buffer())) { + if (!(buf=psiconv_buffer_new(0))) { perror("Can't allocate buf"); exit(1); } - if ((psiconv_list_fread_all(buf,fp))) { + if ((psiconv_buffer_fread_all(buf,fp))) { perror("Can't fread file"); exit(1); } @@ -49,7 +49,7 @@ fprintf(stderr,"Parse error\n"); exit(1); } - psiconv_free_buffer(buf); + psiconv_buffer_free(buf); buf = NULL; if (psiconv_write(&buf,psionfile)) { fprintf(stderr,"Parse error\n"); @@ -59,7 +59,7 @@ perror("Can't open file"); exit(1); } - if ((psiconv_list_fwrite_all(buf,fp))) { + if ((psiconv_buffer_fwrite_all(buf,fp))) { perror("Can't fwrite file"); exit(1); }