Lines Matching defs:fm
3858 struct format_modifier *fm;
3861 fm = &(*list)[(*count)++];
3863 memcpy(fm->modifier, c, n);
3864 fm->modifier[n] = '\0';
3865 fm->size = n;
3867 fm->argv = argv;
3868 fm->argc = argc;
3995 format_match(struct format_modifier *fm, const char *pattern, const char *text)
4001 if (fm->argc >= 1)
4002 s = fm->argv[0];
4025 format_sub(struct format_modifier *fm, const char *text, const char *pattern,
4031 if (fm->argc >= 3 && strchr(fm->argv[2], 'i') != NULL)
4041 format_search(struct format_modifier *fm, struct window_pane *wp, const char *s)
4046 if (fm->argc >= 1) {
4047 if (strchr(fm->argv[0], 'i') != NULL)
4049 if (strchr(fm->argv[0], 'r') != NULL)
4430 struct format_modifier **sub = NULL, *mexp = NULL, *fm;
4440 fm = &list[i];
4442 format_log(es, "modifier %u is %s", i, fm->modifier);
4443 for (j = 0; j < fm->argc; j++) {
4445 j, fm->argv[j]);
4448 if (fm->size == 1) {
4449 switch (fm->modifier[0]) {
4453 cmp = fm;
4456 search = fm;
4459 if (fm->argc < 2)
4462 sub[nsub++] = fm;
4465 if (fm->argc < 1)
4467 limit = strtonum(fm->argv[0], INT_MIN, INT_MAX,
4471 if (fm->argc >= 2 && fm->argv[1] != NULL)
4472 marker = fm->argv[1];
4475 if (fm->argc < 1)
4477 width = strtonum(fm->argv[0], INT_MIN, INT_MAX,
4486 if (fm->argc < 1 || fm->argc > 3)
4488 mexp = fm;
4510 if (fm->argc < 1)
4512 if (strchr(fm->argv[0], 'p') != NULL)
4514 else if (fm->argc >= 2 &&
4515 strchr(fm->argv[0], 'f') != NULL)
4516 time_format = format_strip(fm->argv[1]);
4519 if (fm->argc < 1)
4521 else if (strchr(fm->argv[0], 'e') != NULL ||
4522 strchr(fm->argv[0], 'h') != NULL)
4532 if (fm->argc < 1 ||
4533 strchr(fm->argv[0], 'w') != NULL)
4535 else if (strchr(fm->argv[0], 's') != NULL)
4551 } else if (fm->size == 2) {
4552 if (strcmp(fm->modifier, "||") == 0 ||
4553 strcmp(fm->modifier, "&&") == 0 ||
4554 strcmp(fm->modifier, "==") == 0 ||
4555 strcmp(fm->modifier, "!=") == 0 ||
4556 strcmp(fm->modifier, ">=") == 0 ||
4557 strcmp(fm->modifier, "<=") == 0)
4558 cmp = fm;