| 878 | const char *tf_current_suite = NULL; |
| 879 | |
| 880 | static bool tf_only_name_valid(const char *name, size_t length) { |
| 881 | for (size_t i = 0; i < length; i++) { |
| 882 | if (!isalnum((unsigned char)name[i]) && name[i] != '_') { |
| 883 | return false; |
| 884 | } |
| 885 | } |
| 886 | return length > 0; |
| 887 | } |
| 888 | |
| 889 | /* Adds the token in text[0..length). Surrounding whitespace is not part of it |
| 890 | * (the CR of a CRLF file included), and an empty span is not a token. */ |