Home | History | Annotate | Download | only in dist

Lines Matching defs:spm

1788 	struct status_prompt_menu	*spm = data;
1789 struct client *c = spm->c;
1794 idx += spm->start;
1795 if (spm->flag == '\0')
1796 s = xstrdup(spm->list[idx]);
1798 xasprintf(&s, "-%c%s", spm->flag, spm->list[idx]);
1809 for (i = 0; i < spm->size; i++)
1810 free(spm->list[i]);
1811 free(spm->list);
1821 struct status_prompt_menu *spm;
1830 spm = xmalloc(sizeof *spm);
1831 spm->c = c;
1832 spm->size = size;
1833 spm->list = list;
1834 spm->flag = flag;
1841 spm->start = size - height;
1844 for (i = spm->start; i < size; i++) {
1846 item.key = '0' + (i - spm->start);
1863 status_prompt_menu_callback, spm) != 0) {
1865 free(spm);
1878 struct status_prompt_menu *spm;
1887 spm = xmalloc(sizeof *spm);
1888 spm->c = c;
1889 spm->flag = flag;
1894 spm->start = 0;
1927 free(spm);
1938 free(spm);
1944 spm->size = size;
1945 spm->list = list;
1959 status_prompt_menu_callback, spm) != 0) {
1961 free(spm);