ossp-pkg/rc/rc.c 1.24 -> 1.25
--- rc.c 2002/04/25 16:17:57 1.24
+++ rc.c 2002/05/13 16:57:00 1.25
@@ -41,7 +41,7 @@
int main(int argc, char *argv[])
{
ex_t Except;
- rc_t *pRc = NULL;
+ rc_proc_t *pProc = NULL;
ex_try {
configNew(); /* Construct a new configuration */
@@ -49,15 +49,15 @@
configDebug(); /* FIXME Remove FIXME */
configVerify(); /* Test for usage, help, and version options */
- pRc = procNew();
- procReadtmp(pRc, configGetval(RC_TMP_VAL));
-/* procReadfuncs(pRc, configGetval(RC_FNC_VAL));
- procReadrc(pRc, configGetrcfile());
- for (i = 0; i < clioptGetseclen; procSection(pRc, configGetsec(i++)));
- procParse(pRc); /- Script generation -/
- procRun(pRc);*/ /* [Execute|Evaluate|Print] script */
+ pProc = procNew();
+ procReadtmp(pProc, configGetval(RC_TMP_VAL));
+/* procReadfuncs(pProc, configGetval(RC_FNC_VAL));
+ procReadrc(pProc, configGetrcfile());
+ for (i = 0; i < clioptGetseclen; procSection(pProc, configGetsec(i++)));
+ procParse(pProc); /- Script generation -/
+ procRun(pProc);*/ /* [Execute|Evaluate|Print] script */
- procDelete(pRc);
+ procDelete(pProc);
configDelete();
}
ex_catch(Except) {
|
|