#include #include /* command-line stuff for xpp */ #include #define NCMD 10 /* add new commands as needed */ #define MAKEC 0 #define XORFX 1 #define SILENT 2 #define CONVERT 3 #define NOICON 4 #define NEWSEED 5 #define ALLWIN 6 #define SETFILE 7 #define MSSTYLE 8 #define PWHITE 9 extern int PaperWhite; extern int MSStyle; extern int got_file; char setfilename[100]; int loadsetfile=0; extern char this_file[100]; extern int XPPBatch; extern int xorfix; extern int newseeed; extern int silent; extern int allwinvis; extern int ConvertStyle; int noicon=1; int newseed=0; typedef struct { char name[10]; int len; } VOCAB; VOCAB my_cmd[NCMD]= { "-m",2, "-xorfix",7, "-silent",7, "-convert",8, "-iconify",7, "-newseed",7, "-allwin",6, "-setfile",7, "-ee",8, "-white", 6, }; do_comline(argc,argv) char **argv; int argc; { int i,k; silent = 0; got_file=0; xorfix=1; PaperWhite=0; setfilename[0]=0; for(i=1;i \n"); exit(0); } else { strcpy(this_file,com); got_file=1; } } return 0; }