21 static const char *
name = NULL;
23 static const char *
lang = NULL;
27 { NULL,
'n', POPT_ARG_STRING, &
name, 0, NULL, NULL},
28 { NULL,
'l', POPT_ARG_STRING, &
lang, 0, NULL, NULL},
29 { 0, 0, 0, 0, 0, NULL, NULL}
43 const char **argv = NULL;
44 poptContext optCon = NULL;
48 {
char * se = strchr(spec->
line,
'#');
51 while (--se >= spec->
line && strchr(
" \t\n\r", *se) != NULL)
56 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
58 spec->
lineNum, poptStrerror(rc));
64 optCon = poptGetContext(NULL, argc, argv,
optionsTable, 0);
65 while ((arg = poptGetNextOpt(optCon)) > 0)
73 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
78 if (poptPeekArg(optCon)) {
80 name = poptGetArg(optCon);
81 if (poptPeekArg(optCon)) {
131 #if defined(SUPPORT_I18NSTRING_TYPE)
148 optCon = poptFreeContext(optCon);