Lines Matching refs:opt_info
76 options = opt_info.arg;
79 errormsg(SH_DICT,2, "%s", opt_info.arg);
82 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg);
85 argv += opt_info.index;
86 argc -= opt_info.index;
103 opt_info.index = shp->st.optindex;
104 opt_info.offset = shp->st.optchar;
120 opt_info.disc = &disc.hdr;
121 switch(opt_info.index>=0 && opt_info.index<=argc?(opt_info.num= LONG_MIN,flag=optget(argv,options)):0)
125 errormsg(SH_DICT,ERROR_usage(2), "%s", opt_info.arg);
126 opt_info.option[1] = '?';
129 key[0] = opt_info.option[1];
130 if(strmatch(opt_info.arg,"*unknown*"))
133 opt_info.arg = key;
136 errormsg(SH_DICT,2, "%s", opt_info.arg);
137 opt_info.arg = 0;
142 if (opt_info.offset != 0 && !argv[opt_info.index][opt_info.offset])
144 opt_info.offset = 0;
145 opt_info.index++;
154 flag = opt_info.index;
155 opt_info.index = 0;
157 opt_info.index = flag;
161 opt_info.arg = 0;
165 opt_info.offset = 0;
168 options = opt_info.option + (*opt_info.option!='+');
173 shp->st.optindex = opt_info.index;
174 shp->st.optchar = opt_info.offset;
178 if(opt_info.num == LONG_MIN)
179 nv_putval(np, opt_info.arg, NV_RDONLY);
180 else if (opt_info.arg && opt_info.num > 0 && isalpha((char)opt_info.num) && !isdigit(opt_info.arg[0]) && opt_info.arg[0] != '-' && opt_info.arg[0] != '+')
182 key[0] = (char)opt_info.num;
189 d = opt_info.number;
193 nv_putval(np, opt_info.arg, NV_RDONLY);
196 opt_info.disc = 0;