ossp-pkg/rc/rc.c 1.20 -> 1.21
--- rc.c 2002/04/22 12:16:39 1.20
+++ rc.c 2002/04/22 15:22:39 1.21
@@ -34,10 +34,6 @@
#include "rc_const.h"
#include "rc_private.h"
-/* FIXME BEGIN DEBUG */
-#include "rc_config.h"
-#include <string.h>
-/* FIXME END DEBUG */
int main(int argc, char *argv[])
{
@@ -64,29 +60,8 @@
exit(1); /* Failure */
}
-/* FIXME BEGIN DEBUG */
-{
-int i = 0;
-int bCaught = FALSE;
-while (!bCaught) {
- ex_try {
- if (configGetval(i)) {
- fprintf(stderr, "D Option %s: ", configGetname(i));
- if (!(strcmp(configGetval(i), "1")))
- fprintf(stderr, "on\n");
- else
- fprintf(stderr, "%s\n", configGetval(i));
- }
- }
- ex_catch(Except) { /* Breaks the otherwise endless while loop above */
- bCaught = TRUE;
- }
- i++;
-}
-}
-/* FIXME END DEBUG */
-
-configDestruct();/* FIXME Remove, allow first scope */
+fprintf(stderr, configSummarize());
+configDestruct(); /* FIXME Remove, allow first scope */
TRACE("No exceptions caught\n");
exit(0); /* Success */
}
|
|