Index: ossp-pkg/rc/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/rc/Makefile.in,v rcsdiff -q -kk '-r1.14' '-r1.15' -u '/v/ossp/cvs/ossp-pkg/rc/Makefile.in,v' 2>/dev/null --- Makefile.in 2002/02/12 17:59:50 1.14 +++ Makefile.in 2002/02/13 19:19:28 1.15 @@ -102,8 +102,8 @@ $(RM) rc_pcre.gen $(PROG_NAME): $(OBJS) -# $(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) - $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) +# $(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) rc.1: rc.pod VS=`$(SHTOOL) version -lc -dshort rc_version.c`; \ Index: ossp-pkg/rc/aclocal.m4 RCS File: /v/ossp/cvs/ossp-pkg/rc/aclocal.m4,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/rc/aclocal.m4,v' 2>/dev/null --- aclocal.m4 2002/02/06 16:56:33 1.6 +++ aclocal.m4 2002/02/13 19:19:28 1.7 @@ -136,7 +136,8 @@ *-pipe* ) ;; * ) AC_COMPILER_OPTION(pipe, -pipe, -pipe, CFLAGS="$CFLAGS -pipe") ;; esac - AC_COMPILER_OPTION(ggdb3, -ggdb3, -ggdb3, CFLAGS="$CFLAGS -ggdb3") + AC_COMPILER_OPTION(defdbg, -DDEBUG, -DDEBUG, CFLAGS="$CFLAGS -DDEBUG") +dnl AC_COMPILER_OPTION(ggdb3, -ggdb3, -ggdb3, CFLAGS="$CFLAGS -ggdb3") CFLAGS="$CFLAGS -pedantic" CFLAGS="$CFLAGS -Wall" WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline" Index: ossp-pkg/rc/rc.c RCS File: /v/ossp/cvs/ossp-pkg/rc/rc.c,v rcsdiff -q -kk '-r1.12' '-r1.13' -u '/v/ossp/cvs/ossp-pkg/rc/rc.c,v' 2>/dev/null --- rc.c 2002/02/08 18:36:40 1.12 +++ rc.c 2002/02/13 19:19:28 1.13 @@ -46,8 +46,8 @@ } ex_catch(Except) { bCaught = 1; - fprintf(stderr, "Class '%s' threw exception %s in %s:%s():%d.\n",\ - (char *)Except.ex_class, *(int *)Except.ex_value,\ + fprintf(stderr, "Class '%s' threw exception %d in %s:%s():%d.\n",\ + (char *)Except.ex_class, (int)Except.ex_value,\ Except.ex_file, Except.ex_func, Except.ex_line); exit(1); /* Failure */ } Index: ossp-pkg/rc/rc_config.c RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_config.c,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/rc/rc_config.c,v' 2>/dev/null --- rc_config.c 2002/02/08 18:36:40 1.1 +++ rc_config.c 2002/02/13 19:19:28 1.2 @@ -29,7 +29,6 @@ #include #include -#include #include "rc.h" #include "rc_private.h" Index: ossp-pkg/rc/rc_option.c RCS File: /v/ossp/cvs/ossp-pkg/rc/Attic/rc_option.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/rc/Attic/rc_option.c,v' 2>/dev/null --- rc_option.c 2002/02/08 18:36:40 1.2 +++ rc_option.c 2002/02/13 19:19:28 1.3 @@ -72,7 +72,6 @@ int nBufpos = 0; /* For tracking options */ char cOpt = 0; /* For argument parsing */ char *szCLIBuf = NULL; - char *szFuncfile = NULL; /* Rc.func file name and location */ int nIter = 0; popt_context optCon; /* Context for parsing options */ @@ -94,10 +93,7 @@ /* Single argument long options with short keys */ {RC_LOC_NAME, 'L', POPT_ARG_STRING, 0, RC_LOC_VAL, RC_LOC_DESC, "regx"}, {RC_CNF_NAME, 'c', POPT_ARG_STRING, 0, RC_CNF_VAL, RC_CNF_DESC, "path"}, - - {RC_FNC_NAME, 'f', POPT_ARG_STRING, &szFuncfile,\ - RC_FNC_VAL, RC_FNC_DESC, "path"}, - + {RC_FNC_NAME, 'f', POPT_ARG_STRING, 0, RC_FNC_VAL, RC_FNC_DESC, "path"}, {RC_QRY_NAME, 'q', POPT_ARG_STRING, 0, RC_QRY_VAL, RC_QRY_DESC, "varx"}, {RC_TMP_NAME, 't', POPT_ARG_STRING, 0, RC_TMP_VAL, RC_TMP_DESC, "path"}, @@ -163,8 +159,6 @@ fprintf(stderr, "Options chosen: "); for (nIter = 0; nIter < nBufpos ; nIter++) fprintf(stderr, "-%c ", pcBuf[nIter]); - if (szFuncfile) - fprintf(stderr, "-f %s ", szFuncfile); fprintf(stderr, "\nRun these commands: %s\n", szCLIBuf); popt_freecontext(optCon); Index: ossp-pkg/rc/rc_private.h RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_private.h,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/rc/rc_private.h,v' 2>/dev/null --- rc_private.h 2002/02/11 12:34:29 1.2 +++ rc_private.h 2002/02/13 19:19:28 1.3 @@ -51,7 +51,7 @@ /* Define the ability to throw OSSP ex exceptions */ #include "ex.h" /* OSSP ex exception handling library */ #define RC_THROW(rv) \ - ( (rv) != RC_OK && (ex_catching && !ex_shielding) \ + ((rv) != RC_OK && (ex_catching && !ex_shielding) \ ? (ex_throw(ossprc_id, NULL, (rv)), (rv)) : (rv)) #include "val.h" Index: ossp-pkg/rc/rc_util.c RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_util.c,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/rc/rc_util.c,v' 2>/dev/null --- rc_util.c 2002/02/08 18:36:40 1.1 +++ rc_util.c 2002/02/13 19:19:28 1.2 @@ -30,6 +30,7 @@ #include "rc.h" /* Error definitions */ #include "rc_const.h" /* String definitions */ + /* Translate an error code to a string */ char *strErr(rc_return_t rv) {