Lines Matching defs:spm
1782 struct status_prompt_menu *spm = data;
1783 struct client *c = spm->c;
1788 idx += spm->start;
1789 if (spm->flag == '\0')
1790 s = xstrdup(spm->list[idx]);
1792 xasprintf(&s, "-%c%s", spm->flag, spm->list[idx]);
1803 for (i = 0; i < spm->size; i++)
1804 free(spm->list[i]);
1805 free(spm->list);
1815 struct status_prompt_menu *spm;
1824 spm = xmalloc(sizeof *spm);
1825 spm->c = c;
1826 spm->size = size;
1827 spm->list = list;
1828 spm->flag = flag;
1835 spm->start = size - height;
1838 for (i = spm->start; i < size; i++) {
1840 item.key = '0' + (i - spm->start);
1857 status_prompt_menu_callback, spm) != 0) {
1859 free(spm);
1872 struct status_prompt_menu *spm;
1881 spm = xmalloc(sizeof *spm);
1882 spm->c = c;
1883 spm->flag = flag;
1888 spm->start = 0;
1921 free(spm);
1932 free(spm);
1938 spm->size = size;
1939 spm->list = list;
1953 status_prompt_menu_callback, spm) != 0) {
1955 free(spm);