pform even on parse errors.

This commit is contained in:
steve 1999-07-10 23:29:21 +00:00
parent aa938a309d
commit e9f4e01da8
1 changed files with 8 additions and 5 deletions

13
main.cc
View File

@ -19,7 +19,7 @@ const char COPYRIGHT[] =
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT)
#ident "$Id: main.cc,v 1.18 1999/06/19 03:46:42 steve Exp $"
#ident "$Id: main.cc,v 1.19 1999/07/10 23:29:21 steve Exp $"
#endif
const char NOTICE[] =
@ -184,10 +184,6 @@ int main(int argc, char*argv[])
map<string,PUdp*> primitives;
int rc = pform_parse(argv[optind], modules, primitives);
if (rc) {
return rc;
}
if (pf_path) {
ofstream out (pf_path);
out << "PFORM DUMP MODULES:" << endl;
@ -204,6 +200,10 @@ int main(int argc, char*argv[])
}
}
if (rc) {
return rc;
}
if (start_module == "") {
for (map<string,Module*>::iterator mod = modules.begin()
; mod != modules.end()
@ -272,6 +272,9 @@ int main(int argc, char*argv[])
/*
* $Log: main.cc,v $
* Revision 1.19 1999/07/10 23:29:21 steve
* pform even on parse errors.
*
* Revision 1.18 1999/06/19 03:46:42 steve
* Add the -v switch.
*