ossp-pkg/rc/rc.c 1.37 -> 1.38
--- rc.c 2002/07/01 15:03:32 1.37
+++ rc.c 2002/07/05 14:10:24 1.38
@@ -68,23 +68,23 @@
{
ex_t Except;
- try { /* Configuration block */
- configNew(); /* Construct a new configuration */
- configLoad(argc, (const char **)argv); /* Load cli, env, and conf */
- configVerify(); /* Test for usage, help and version options */
+ try { /* Configuration block */
+ configNew(); /* Construct a new config, add default values */
+ configLoad(argc, (const char **)argv); /* Load cli, env, and conf */
+ configVerify(); /* Test for usage, help and version options */
}
- catch(Except) /* Exceptions of the configuration block */
+ catch(Except) /* Exceptions of the configuration block */
rcError(Except);
- try { /* Main processing block, script built here */
+ try { /* Main processing block, script built here */
rc_proc_t *pProc = NULL;
- pProc = procNew(); /* Construct a new processor, build script */
- procPopulate(pProc); /* Populate with run commands */
- procRun(pProc); /* [Execute|Evaluate|Print] script */
- procDelete(pProc); /* Destroy the processor */
- configDelete(); /* Destroy the configuration */
+ pProc = procNew(); /* Construct a new processor, build script */
+ procPopulate(pProc); /* Populate with run commands */
+ procRun(pProc); /* [Execute|Evaluate|Print] script */
+ procDelete(pProc); /* Destroy the processor */
+ configDelete(); /* Destroy the configuration */
}
- catch(Except) /* Exception thrown while script processing */
+ catch(Except) /* Exception thrown while script processing */
rcError(Except);
exit(0); /* Return success */
|
|