Lines Matching refs:on_off
48 t_complementary *on_off;
72 on_off = complementary;
73 memset(on_off, 0, sizeof(complementary));
81 on_off->opt = *s;
82 on_off->switch_on = (1 << c);
84 on_off->optarg = va_arg(p, void **);
87 on_off++;
118 for (on_off = complementary; on_off->opt != 0; on_off++)
119 if (on_off->opt == l_o->val)
122 on_off->opt = l_o->val;
123 on_off->switch_on = (1 << c);
125 on_off->optarg = va_arg(p, void **);
165 for (on_off = complementary; on_off->opt; on_off++)
166 if (on_off->opt == *s)
169 on_off->list_flg++;
173 requires |= on_off->switch_on;
177 flags |= on_off->switch_on;
178 on_off->incongruously |= on_off->switch_on;
183 on_off->counter = va_arg(p, int *);
186 pair = on_off;
197 for (on_off = complementary; on_off->opt; on_off++)
198 if (on_off->opt == *s) {
199 *pair_switch |= on_off->switch_on;
232 for (on_off = complementary; on_off->opt != c; on_off++) {
234 if (on_off->opt == 0 && c != 0)
237 if (flags & on_off->incongruously)
239 trigger = on_off->switch_on & on_off->switch_off;
240 flags &= ~(on_off->switch_off ^ trigger);
241 flags |= on_off->switch_on ^ trigger;
243 if (on_off->counter)
244 (*(on_off->counter))++;
245 if (on_off->list_flg) {
246 llist_add_to_end((llist_t **)(on_off->optarg), optarg);
247 } else if (on_off->optarg) {
248 *(char **)(on_off->optarg) = optarg;
274 for (on_off = complementary; on_off->opt; on_off++) {
275 if (on_off->requires && (flags & on_off->switch_on) &&
276 (flags & on_off->requires) == 0)