static FILE *actualcmdfile=NULL ;
static char *actualcmds=NULL;
-
+static int stopcmdlist;
/*-----------------------------------------------------------------*/
/* getNextCmdLine get additional lines used by special commands */
/*-----------------------------------------------------------------*/
actualcmds = cmds;
}
+void stopCommandList()
+{
+ stopcmdlist = 1;
+}
+
/*-----------------------------------------------------------------*/
/* commandLoop - the main command loop or loop over command file */
/*-----------------------------------------------------------------*/
{
strcpy(cmdbuff,actualcmds);
actualcmds = NULL;
+ stopcmdlist= 0;
for ( line = cmdbuff; *line ; line = s )
{
if ( (s=strchr(line ,'\n')))
break;
}
*s = save_ch;
+ if ( stopcmdlist )
+ break;
}
}
}
char *searchDirsFname (char *);
char *getNextCmdLine(void );
void setCmdLine( char * );
+void stopCommandList( void );
#endif