aboutsummaryrefslogtreecommitdiffstats
path: root/libversit/vctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'libversit/vctest.c')
-rw-r--r--libversit/vctest.c95
1 files changed, 0 insertions, 95 deletions
diff --git a/libversit/vctest.c b/libversit/vctest.c
deleted file mode 100644
index 7975d1e200..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);
-
-}
-
pass 'make check-sanity' by using modern LIB_DEPENDSrene2013-09-241-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1 * net/boinc-client :rene2013-09-182-0/+20 * Partially fix build with planned net/boinc-client update (ports/176724).rene2013-08-061-0/+10 * - Update to SVN revision 1702, remove patches merged upstreamrene2013-07-245-129/+8 * Convert to USES=gmakerene2013-07-051-2/+1 * The FreeBSD x11 team proudly presentszeising2013-05-251-3/+2 * Fix instructions in pkg-message.rene2013-04-271-1/+1 * Convert all a categories to USE=pkgconfigbapt2013-04-231-1/+1 * Some cleanups:rene2013-04-161-9/+2 * Remove compatibility with FreeBSD 7.Xrene2013-03-071-2/+2 * Cleanup Makefile headers of my ports.rene2012-10-071-4/+1 * - Fix build with WITHOUT_X11, adjust pkg-descrrene2012-08-285-14/+138 * - Make sure the package is properly deinstalled by using the proper sh syntax.rene2012-08-102-3/+3 * Switch from libglut to freeglut and retire libglut. Libglut hasn't beenkwm2012-08-051-1/+1 * - Strip version information from LIB_DEPENDS to pet portlintrene2012-06-061-3/+3 * - update png to 1.5.10dinoex2012-06-011-0/+1 * - Adjust BOINC_* variables to be consistent with new system in boinc-clientpav2012-05-165-19/+19 * Update to 6.01.rene2012-04-245-14/+13 * - update fftw3* to 3.3 [1], and adjust dependent portsbf2011-10-171-1/+1 * Fix freshports sanity test failure.wxs2011-03-181-5/+4 * Add archivers/xz as a build dependency on systems which do not have itrene2011-03-181-0/+5 * - Fix m4 script so that shells/bash is no longer required.rene2011-03-142-4/+12 * - Update astro/boinc-setiathome-enhanced to 6.12 (SVN r1008)rene2011-03-135-262/+11 * Fix directory location for the setiathome patch dependency andrene2011-02-071-3/+2 * Prevent building this port on the cluster, tinderbox does not understandrene2011-02-051-0/+2 * - Improve Makefile logic: instead of breaking the port whenrene2011-02-011-9/+5 * SETI - Search for Extra-Terrestrial Intelligence -- AstroPulserene2011-01-24