/* Program main.cc (FastPicTeX) */ /* By Harald Stauss */ /* Last change January 12, 2008 */ #include #include "fastpictex.h" #ifdef DUMA #include #include "../../duma/duma.h" #include "../../duma/dumapp.h" #endif /* global variables */ #define VERSION "0.9" FASTPICTEX fpt; main(int argc, char *argv[]) { int rc=0; /* hello world */ std::cout << "FastPicTeX by Harald M. Stauss, Ver. " << VERSION << "\n"; /* allocate memory */ /* get command line parameters */ if (argc!=3) { rc=1; std::cout << "number of parameters wrong! \n"; std::cout << "usage: fastpictex fin fout \n"; goto ende; } fpt.Read(argv[1]); fpt.Write(argv[2]); ende: return(rc); } /* Ende von main */