phoneme: pass the feature enum value to phoneme_add_feature.

This commit is contained in:
Reece H. Dunn
2017-01-26 19:58:23 +00:00
parent 926303c095
commit b3a1bcda4b
5 changed files with 15 additions and 44 deletions
-24
View File
@@ -74,27 +74,6 @@ create_version_mismatch_error_context(espeak_ng_ERROR_CONTEXT *context,
return ENS_VERSION_MISMATCH;
}
espeak_ng_STATUS
create_name_error_context(espeak_ng_ERROR_CONTEXT *context,
espeak_ng_STATUS status,
const char *name)
{
if (context) {
if (*context) {
free((*context)->name);
} else {
*context = malloc(sizeof(espeak_ng_ERROR_CONTEXT_));
if (!*context)
return ENOMEM;
}
(*context)->type = ERROR_CONTEXT_NAME;
(*context)->name = strdup(name);
(*context)->version = 0;
(*context)->expected_version = 0;
}
return status;
}
#pragma GCC visibility push(default)
ESPEAK_NG_API void
@@ -182,9 +161,6 @@ espeak_ng_PrintStatusCodeMessage(espeak_ng_STATUS status,
fprintf(out, "Error: %s at '%s' (expected 0x%x, got 0x%x).\n",
error, context->name, context->expected_version, context->version);
break;
case ERROR_CONTEXT_NAME:
fprintf(out, "Error: %s (got \"%s\").\n", error, context->name);
break;
}
} else
fprintf(out, "Error: %s.\n", error);