lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since a716a75 was a000878c, checked in by Martin Decky <martin@…>, 15 years ago |
make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only
|
-
Property mode
set to
100644
|
File size:
384 bytes
|
Rev | Line | |
---|
[216d6fc] | 1 | #ifndef ERRSTR_H
|
---|
| 2 | #define ERRSTR_H
|
---|
| 3 |
|
---|
| 4 | /* Simple array to translate error codes to meaningful strings */
|
---|
| 5 |
|
---|
[a000878c] | 6 | static const char *cl_errors[] = {
|
---|
[216d6fc] | 7 | "Success",
|
---|
| 8 | "Failure",
|
---|
| 9 | "Busy",
|
---|
| 10 | "No Such Entry",
|
---|
| 11 | "Not Enough Memory",
|
---|
| 12 | "Permission Denied",
|
---|
| 13 | "Method Not Supported",
|
---|
| 14 | "Bad command or file name",
|
---|
| 15 | "Entry already exists",
|
---|
[e2ea8d7e] | 16 | "Object too large",
|
---|
[216d6fc] | 17 | NULL
|
---|
| 18 | };
|
---|
| 19 |
|
---|
[a000878c] | 20 | static const char *err2str(int);
|
---|
[e2ea8d7e] | 21 |
|
---|
[216d6fc] | 22 | #endif
|
---|
| 23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.