Lines Matching refs:aptr
135 XF86ConfAdjacencyPtr aptr; in xf86parseLayoutSection() local
138 aptr = calloc(1, sizeof(XF86ConfAdjacencyRec)); in xf86parseLayoutSection()
139 aptr->list.next = NULL; in xf86parseLayoutSection()
140 aptr->adj_scrnum = -1; in xf86parseLayoutSection()
141 aptr->adj_where = CONF_ADJ_OBSOLETE; in xf86parseLayoutSection()
142 aptr->adj_x = 0; in xf86parseLayoutSection()
143 aptr->adj_y = 0; in xf86parseLayoutSection()
144 aptr->adj_refscreen = NULL; in xf86parseLayoutSection()
146 aptr->adj_scrnum = xf86_lex_val.num; in xf86parseLayoutSection()
151 free(aptr); in xf86parseLayoutSection()
154 aptr->adj_screen_str = xf86_lex_val.str; in xf86parseLayoutSection()
159 aptr->adj_where = CONF_ADJ_RIGHTOF; in xf86parseLayoutSection()
162 aptr->adj_where = CONF_ADJ_LEFTOF; in xf86parseLayoutSection()
165 aptr->adj_where = CONF_ADJ_ABOVE; in xf86parseLayoutSection()
168 aptr->adj_where = CONF_ADJ_BELOW; in xf86parseLayoutSection()
171 aptr->adj_where = CONF_ADJ_RELATIVE; in xf86parseLayoutSection()
174 aptr->adj_where = CONF_ADJ_ABSOLUTE; in xf86parseLayoutSection()
178 free(aptr); in xf86parseLayoutSection()
185 aptr->adj_where = CONF_ADJ_OBSOLETE; in xf86parseLayoutSection()
187 aptr->adj_where = CONF_ADJ_ABSOLUTE; in xf86parseLayoutSection()
189 switch (aptr->adj_where) { in xf86parseLayoutSection()
194 aptr->adj_x = xf86_lex_val.num; in xf86parseLayoutSection()
197 free(aptr); in xf86parseLayoutSection()
200 aptr->adj_y = xf86_lex_val.num; in xf86parseLayoutSection()
204 free(aptr); in xf86parseLayoutSection()
218 free(aptr); in xf86parseLayoutSection()
221 aptr->adj_refscreen = xf86_lex_val.str; in xf86parseLayoutSection()
222 if (aptr->adj_where == CONF_ADJ_RELATIVE) { in xf86parseLayoutSection()
225 free(aptr); in xf86parseLayoutSection()
228 aptr->adj_x = xf86_lex_val.num; in xf86parseLayoutSection()
231 free(aptr); in xf86parseLayoutSection()
234 aptr->adj_y = xf86_lex_val.num; in xf86parseLayoutSection()
239 aptr->adj_top_str = xf86_lex_val.str; in xf86parseLayoutSection()
243 free(aptr); in xf86parseLayoutSection()
246 aptr->adj_bottom_str = xf86_lex_val.str; in xf86parseLayoutSection()
250 free(aptr); in xf86parseLayoutSection()
253 aptr->adj_left_str = xf86_lex_val.str; in xf86parseLayoutSection()
257 free(aptr); in xf86parseLayoutSection()
260 aptr->adj_right_str = xf86_lex_val.str; in xf86parseLayoutSection()
264 xf86addListItem((glp) ptr->lay_adjacency_lst, (glp) aptr); in xf86parseLayoutSection()
315 XF86ConfAdjacencyPtr aptr; in xf86printLayoutSection() local
327 for (aptr = ptr->lay_adjacency_lst; aptr; aptr = aptr->list.next) { in xf86printLayoutSection()
329 if (aptr->adj_scrnum >= 0) in xf86printLayoutSection()
330 fprintf(cf, "%2d", aptr->adj_scrnum); in xf86printLayoutSection()
333 fprintf(cf, " \"%s\"", aptr->adj_screen_str); in xf86printLayoutSection()
334 switch (aptr->adj_where) { in xf86printLayoutSection()
336 fprintf(cf, " \"%s\"", aptr->adj_top_str); in xf86printLayoutSection()
337 fprintf(cf, " \"%s\"", aptr->adj_bottom_str); in xf86printLayoutSection()
338 fprintf(cf, " \"%s\"", aptr->adj_right_str); in xf86printLayoutSection()
339 fprintf(cf, " \"%s\"\n", aptr->adj_left_str); in xf86printLayoutSection()
342 if (aptr->adj_x != -1) in xf86printLayoutSection()
343 fprintf(cf, " %d %d\n", aptr->adj_x, aptr->adj_y); in xf86printLayoutSection()
348 fprintf(cf, " RightOf \"%s\"\n", aptr->adj_refscreen); in xf86printLayoutSection()
351 fprintf(cf, " LeftOf \"%s\"\n", aptr->adj_refscreen); in xf86printLayoutSection()
354 fprintf(cf, " Above \"%s\"\n", aptr->adj_refscreen); in xf86printLayoutSection()
357 fprintf(cf, " Below \"%s\"\n", aptr->adj_refscreen); in xf86printLayoutSection()
360 fprintf(cf, " Relative \"%s\" %d %d\n", aptr->adj_refscreen, in xf86printLayoutSection()
361 aptr->adj_x, aptr->adj_y); in xf86printLayoutSection()