OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc.c versions 1.23 and 1.24
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc.c 1.23 -> 1.24

--- rc.c 2002/04/25 09:51:29     1.23
+++ rc.c 2002/04/25 16:17:57     1.24
@@ -35,29 +35,6 @@
 
 
 /************************************************
-* rcIntro(void)                                 *
-* Introduction to rc: help, usage, or version   *
-************************************************/
-rc_return_t rcIntro(void)
-{
-    ex_t Except;
-
-    ex_try { /* Basic checks of version, usage, and help options */
-        if (configGetval(RC_VER_VAL))
-            fprintf(stdout, "OSSP rc %s\n", RC_VERSION);
-        if (configGetval(RC_USE_VAL))
-            clioptPrintusage();
-        if (configGetval(RC_HLP_VAL))
-            clioptPrintusage(); /* FIXME Replace with real help FIXME */
-    }
-    ex_catch(Except) {
-        rethrow;
-    }
-
-    return(RC_THROW(RC_OK));
-}
-
-/************************************************
 * main(int, char **)                            *
 * Main rc control block                         *
 ************************************************/
@@ -72,15 +49,15 @@
         configDebug();          /* FIXME Remove FIXME */
         configVerify();         /* Test for usage, help, and version options  */
 
-/*        pRc = procNew();
-        procReadrc(pRc);
-        procReadfuncs(pRc);
-        procReadtmp(pRc);
-        for (i = 0; i < clioptGetseclen; procSection(pRc, configGetsec(i)));
+        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 -/
+        procRun(pRc);*/           /* [Execute|Evaluate|Print] script */
 
-        procDelete(pRc);*/
+        procDelete(pRc);
         configDelete();
     }
     ex_catch(Except) {

CVSTrac 2.0.1