unsigned int i;
for (i = 0; name[i]; i++) {
- if (isalnum(name[i]))
+ if (cisalnum(name[i]))
name[i] = toupper(name[i]);
else
name[i] = '_';
if (!get_token(&line, "#"))
abort();
if (!get_token(&line, "define")) {
- char *str = talloc_asprintf(score,
- "expected '#define %s'",
- line_info[i].cond->symbol);
- score_file_error(score, f, i+1, str);
+ score_file_error(score, f, i+1,
+ "expected '#define %s'",
+ line_info[i].cond->symbol);
return;
}
sym = get_symbol_token(f, &line);
if (!sym || !streq(sym, line_info[i].cond->symbol)) {
- char *str = talloc_asprintf(score,
- "expected '#define %s'",
- line_info[i].cond->symbol);
- score_file_error(score, f, i+1, str);
+ score_file_error(score, f, i+1,
+ "expected '#define %s'",
+ line_info[i].cond->symbol);
return;
}
{
struct ccan_file *f;
+ /* We don't fail ccanlint for this. */
+ score->pass = true;
+
list_for_each(&m->h_files, f, list) {
check_idem(f, score);
}
if (!score->error) {
- score->pass = true;
score->score = score->total;
}
}