ossp-pkg/rc/rc_proc.c 1.9 -> 1.10
--- rc_proc.c 2002/06/28 18:23:10 1.9
+++ rc_proc.c 2002/07/01 15:03:33 1.10
@@ -166,11 +166,15 @@
************************************************/
rc_return_t procRun(rc_proc_t *pRc)
{
- if (configGetval(RC_DBG_VAL)) /* Dump the running config table */
- configDebug(); /* if debug switch is turned on */
-
- /* This will print the script to a hardcoded dump device, probably stderr */
- scriptDump(pRc->m_pScript);
+ /* This will evaluate, execute, or print the script to stdout */
+ if (configGetval(RC_EVL_VAL)) /* Evaluate */
+ fprintf(stderr, "Error: Evaluate is not implemented yet.\n"); /* FIX */
+ else if (configGetval(RC_EXC_VAL)) /* Execute */
+ fprintf(stderr, "Error: Execute is not implemented yet.\n"); /* FIX */
+ else if (configGetval(RC_PRN_VAL)) /* Print */
+ scriptDump(pRc->m_pScript);
+ else
+ return(RC_THROW(RC_ERR_INT)); /* Not reached */
return(RC_THROW(RC_OK));
}
|
|