=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/glob.c,v retrieving revision 1.64 retrieving revision 1.66 diff -u -p -r1.64 -r1.66 --- OpenXM_contrib2/asir2000/parse/glob.c 2006/02/10 23:56:44 1.64 +++ OpenXM_contrib2/asir2000/parse/glob.c 2006/09/25 04:57:54 1.66 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/parse/glob.c,v 1.63 2006/02/08 04:33:50 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/glob.c,v 1.65 2006/02/24 01:15:57 noro Exp $ */ #include "ca.h" #include "al.h" @@ -156,7 +156,7 @@ char asirname[BUFSIZ]; char displayname[BUFSIZ]; int Verbose; -int do_quiet; +int do_quiet, do_batch; void glob_init() { int i; @@ -391,6 +391,8 @@ void process_args(int ac,char **av) paristack = atoi(*(av+1)); av += 2; ac -= 2; #endif + } else if ( !strcmp(*av,"-batch") ) { + do_batch = 1; av++; ac--; } else { fprintf(stderr,"%s : unknown option.\n",*av); asir_terminate(1); @@ -537,6 +539,8 @@ void int_handler(int sig) fgets(buf,BUFSIZ,stdin); if ( !strncmp(buf,"y",1) ) { fprintf(stderr,"Bye\n"); + /* for terminating myself */ + asir_infile = 0; asir_terminate(1); } else if ( !strncmp(buf,"n",1) ) { restore_handler();