Lines Matching refs:tok
1591 int sort_dimension__add(const char *tok) in sort_dimension__add() argument
1598 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1634 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
1643 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1659 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
1722 char *tmp, *tok, *str; in __setup_sorting() local
1749 for (tok = strtok_r(str, ", ", &tmp); in __setup_sorting()
1750 tok; tok = strtok_r(NULL, ", ", &tmp)) { in __setup_sorting()
1751 ret = sort_dimension__add(tok); in __setup_sorting()
1753 error("Invalid --sort key: `%s'", tok); in __setup_sorting()
1756 error("Unknown --sort key: `%s'", tok); in __setup_sorting()
1858 static int output_field_add(char *tok) in output_field_add() argument
1865 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
1874 if (strncasecmp(tok, hd->name, strlen(tok))) in output_field_add()
1883 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
1892 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
1925 char *tmp, *tok, *str, *strp; in __setup_output_field() local
1945 for (tok = strtok_r(strp, ", ", &tmp); in __setup_output_field()
1946 tok; tok = strtok_r(NULL, ", ", &tmp)) { in __setup_output_field()
1947 ret = output_field_add(tok); in __setup_output_field()
1949 error("Invalid --fields key: `%s'", tok); in __setup_output_field()
1952 error("Unknown --fields key: `%s'", tok); in __setup_output_field()