--- 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);
|