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}
42 const char **argv = NULL;
43 poptContext optCon = NULL;
46 {
char * se = strchr(spec->
line,
'#');
49 while (--se >= spec->
line && strchr(
" \t\n\r", *se) != NULL)
54 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
56 spec->
lineNum, poptStrerror(rc));
62 optCon = poptGetContext(NULL, argc, argv,
optionsTable, 0);
63 while ((arg = poptGetNextOpt(optCon)) > 0)
71 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
76 if (poptPeekArg(optCon)) {
78 name = poptGetArg(optCon);
79 if (poptPeekArg(optCon)) {
93 {
HE_t he = memset(
alloca(
sizeof(*he)), 0,
sizeof(*he));
138 optCon = poptFreeContext(optCon);