diff options
author | nobody <nobody@localhost> | 1999-02-25 08:26:34 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 1999-02-25 08:26:34 +0800 |
commit | 61c2c42f9a6901a6ed4eaf71f428482db6a77a41 (patch) | |
tree | 981129c6988a90055c0d9e9891686cdb17101c78 /libversit/vctest.c | |
parent | 6c9ae3c49097e3e589381aeb76d10ae0a0f9d663 (diff) | |
download | gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar.gz gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar.bz2 gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar.lz gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar.xz gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.tar.zst gsoc2013-evolution-GNOME_NETWORK_1_0_PRE.zip |
This commit was manufactured by cvs2svn to create tagGNOME_NETWORK_1_0_PRE
'GNOME_NETWORK_1_0_PRE'.
svn path=/tags/GNOME_NETWORK_1_0_PRE/; revision=699
Diffstat (limited to 'libversit/vctest.c')
-rw-r--r-- | libversit/vctest.c | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/libversit/vctest.c b/libversit/vctest.c deleted file mode 100644 index b14e6c1b4e..0000000000 --- a/libversit/vctest.c +++ /dev/null @@ -1,95 +0,0 @@ - -#include <stdio.h> -#include <string.h> -#include "vcc.h" - -FILE *cfp; - -void myMimeErrorHandler(char *s) -{ - printf("%s\n", s); -} - -void main(int argc, char **argv) -{ - int testmem = 0; - - char * foo[2] = {"foo","alden.vcf"}; - -argc = 2; -argv = foo; - -#ifdef _CONSOLE - cfp = stdout; - registerMimeErrorHandler(myMimeErrorHandler); -#else - cfp = fopen("vctest.out", "w"); - if (!cfp) return; -#endif - ++argv; - while (--argc) { - FILE *fp; - if (strcmp(*argv,"-testmem") == 0) { - testmem = 1; - argv++; - continue; - } - fprintf(cfp,"processing %s\n",*argv); - fp = fopen(*argv,"r"); - if (!fp) { - fprintf(cfp,"error opening file\n"); - } - else { - VObject *v, *t; - FILE *ofp; - char buf[256]; - char *p; - strcpy(buf,*argv); - p = strchr(buf,'.'); - if (p) *p = 0; - strcat(buf,".out"); - fprintf(cfp,"reading text input from '%s'...\n", *argv); - //v = Parse_MIME_FromFile(fp); - v = Parse_MIME_FromFileName(*argv); - writeVObjectToFile(buf,v); - cleanVObject(v); - - /* - fprintf(cfp,"pretty print internal format of '%s'...\n", *argv); - ofp = fopen(buf,"w"); - while (v) { - printVObject(cfp,v); - if (testmem) { - char *s, *p; - fprintf(cfp,"test writing to mem...\n"); - p = s = writeMemVObject(0,0,v); - if (s) { - while (*s) { - fputc(*s,ofp); - s++; - } - free(p); - } - } - else { - writeVObject(ofp,v); - } - t = v; - v = nextVObjectInList(v); - cleanVObject(t); - } - - fclose(ofp); - fclose(fp); - */ - } - - cleanStrTbl(); - argv++; - - } - - if (cfp != stdout) fclose(cfp); - -} - |