Some code semantics refactoring.
This commit is contained in:
parent
de403b37d7
commit
0f04e056b2
42 changed files with 3374 additions and 1357 deletions
|
|
@ -9,17 +9,28 @@ struct xtc_app {
|
|||
const char *xtc_result_string(xtc_result result)
|
||||
{
|
||||
switch (result) {
|
||||
case XTC_OK: return "success";
|
||||
case XTC_ERR_INVALID_ARGUMENT: return "invalid argument";
|
||||
case XTC_ERR_OUT_OF_MEMORY: return "out of memory";
|
||||
case XTC_ERR_NOT_FOUND: return "not found";
|
||||
case XTC_ERR_INVALID_STATE: return "invalid state";
|
||||
case XTC_ERR_IO: return "I/O error";
|
||||
case XTC_ERR_UNSUPPORTED: return "unsupported operation";
|
||||
case XTC_ERR_CAPACITY: return "capacity exceeded";
|
||||
case XTC_ERR_FORMAT: return "malformed project data";
|
||||
case XTC_ERR_GRAPH_CYCLE: return "graph contains a cycle";
|
||||
default: return "unknown error";
|
||||
case XTC_OK:
|
||||
return "success";
|
||||
case XTC_ERR_INVALID_ARGUMENT:
|
||||
return "invalid argument";
|
||||
case XTC_ERR_OUT_OF_MEMORY:
|
||||
return "out of memory";
|
||||
case XTC_ERR_NOT_FOUND:
|
||||
return "not found";
|
||||
case XTC_ERR_INVALID_STATE:
|
||||
return "invalid state";
|
||||
case XTC_ERR_IO:
|
||||
return "I/O error";
|
||||
case XTC_ERR_UNSUPPORTED:
|
||||
return "unsupported operation";
|
||||
case XTC_ERR_CAPACITY:
|
||||
return "capacity exceeded";
|
||||
case XTC_ERR_FORMAT:
|
||||
return "malformed project data";
|
||||
case XTC_ERR_GRAPH_CYCLE:
|
||||
return "graph contains a cycle";
|
||||
default:
|
||||
return "unknown error";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue