* Convert the given string of object classes to a string of default object * symbols. */
| 8059 | * symbols. |
| 8060 | */ |
| 8061 | void |
| 8062 | oc_to_str(char *src, char *dest) |
| 8063 | { |
| 8064 | int i; |
| 8065 | |
| 8066 | while ((i = (int) *src++) != 0) { |
| 8067 | if (i < 0 || i >= MAXOCLASSES) |
| 8068 | impossible("oc_to_str: illegal object class %d", i); |
| 8069 | else |
| 8070 | *dest++ = def_oc_syms[i].sym; |
| 8071 | } |
| 8072 | *dest = '\0'; |
| 8073 | } |
| 8074 | |
| 8075 | /* |
| 8076 | * Add the given mapping to the menu command map list. Always keep the |
no test coverage detected